News:

Wondering if this will always be free?  See why free is better.

Main Menu

BlogBridger - wrong database

Started by JerzyLS, November 07, 2016, 09:46:42 AM

Previous topic - Next topic

JerzyLS

Hey,

I just downloaded the SMF WP-Bridge from here:
https://github.com/SimpleMachines/bridges

Earlier it was working from me.

But now when I'm going to users role setup I see the error:

QuoteTable 'dbex_forum.wp_options' doesn't exist
File: pathtomyforum/Sources/WordpressBridge.php
Line: 619

I see that the database name is wrong, it should be dbex_wordpress, not dbex_forum...
The username is the same.

Content of the file on line 619:

        // Get the WP roles
        
$request $smcFunc['db_query']('''
	
	
	
SELECT option_value
	
	
	
FROM {raw:wp_prefix}options
	
	
	
WHERE option_name LIKE {string:wp_roles}'
,
                array(
                    
'wp_prefix' => $this->db_prefix,
                    
'wp_roles' => 'wp_user_roles',
                ),
                
$this->db_connection);
        list(
$wp_roles) = $smcFunc['db_fetch_row']($request);
        
$smcFunc['db_free_result']($request);
        
$context['wpRoles'] = unserialize($wp_roles);


In packages this modifications is called as "BlogBridger" and working with emulation of SMF 2.0 RC5.



vbgamer45

I would check the word press settings inside SMF
It runs this code.
  if (empty($modSettings['wordpress_path']) || !is_readable($modSettings['wordpress_path'] . '/wp-config.php'))


This wordpress_path in SMF must be set to path of wordpress.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Advertisement: