News:

CPG Release 1.6.29
During HTML5 upload, keep pseudo blank code 200 messages from triggering error condition
added Russian language
correct failure to use theme menu icons in album manager
minor vulnerabilities mitigation

Main Menu

Converting MyBB to SMF

Started by Krash, September 13, 2026, 08:30:47 PM

Previous topic - Next topic

lurkalot and 1 Guest are viewing this topic.

Krash

Unable to start new topic in cpg1.6 bridging board, so I'm posting here.  Converted an old MyBB forum to SMF 2.1.7.  A major part of the forum content is in a Coppermine 1.6.03 install which was bridged to MyBB 1.8.12.  The Coppermine install includes bridge files for SMF 1.0 and 2.0, not 2.1.  Current Coppermine version is 1.6.29, haven't looked at it yet.

Before I spend a lot of time on this, is it possible to bridge Coppermine to SMF 2.1 if it's already been bridged to MyBB?


ron4mac

If you upgrade your gallery, AFAIK, you can bridge with SMF 2.1 regardless whether you've previously bridged with MyBB. Steps you should take: unbridge your current 1.6.03 gallery; use the installer_stub (found in this forum or with the Github release files) to upgrade your gallery to 1.6.29; establish the bridge to SMF 2.1.

Krash

Ok, here's the problem.  Forum has been converted from MyBB to SMF.  Coppermine is still bridged to MyBB.  When I run update.php it errors out with this -


Fatal error: Uncaught Error: Failed opening required '../inc/config.php' (include_path='.:/opt/alt/php80/usr/share/pear:/opt/alt/php80/usr/share/php:/usr/share/pear:/usr/share/php') in /home/u0fgcfwp0drf/domains/australian-coins.net/public_html/gallery/bridge/mybb.inc.php:56 Stack trace: #0 /home/u0fgcfwp0drf/domains/australian-coins.net/public_html/gallery/bridge/mybb.inc.php(213): cpg_udb->__construct() #1 /home/u0fgcfwp0drf/domains/australian-coins.net/public_html/gallery/include/init.inc.php(246): require_once('/home/u0fgcfwp0...') #2 /home/u0fgcfwp0drf/domains/australian-coins.net/public_html/gallery/update.php(23): include_once('/home/u0fgcfwp0...') #3 {main} thrown in /home/u0fgcfwp0drf/domains/australian-coins.net/public_html/gallery/bridge/mybb.inc.php on line 56


Can't load CM to get into bridge manager.  I need to change the bridge from MyBB to SMF by manually editing the files, but can't find it.



Krash

Quote from: Krash on Today at 04:15:35 AMOk, here's the problem.  Forum has been converted from MyBB to SMF.  Coppermine is still bridged to MyBB.  When I run update.php it errors out with this -


Fatal error: Uncaught Error: Failed opening required '../inc/config.php' (include_path='.:/opt/alt/php80/usr/share/pear:/opt/alt/php80/usr/share/php:/usr/share/pear:/usr/share/php') in /home/u0fgcfwp0drf/domains/australian-coins.net/public_html/gallery/bridge/mybb.inc.php:56 Stack trace: #0 /home/u0fgcfwp0drf/domains/australian-coins.net/public_html/gallery/bridge/mybb.inc.php(213): cpg_udb->__construct() #1 /home/u0fgcfwp0drf/domains/australian-coins.net/public_html/gallery/include/init.inc.php(246): require_once('/home/u0fgcfwp0...') #2 /home/u0fgcfwp0drf/domains/australian-coins.net/public_html/gallery/update.php(23): include_once('/home/u0fgcfwp0...') #3 {main} thrown in /home/u0fgcfwp0drf/domains/australian-coins.net/public_html/gallery/bridge/mybb.inc.php on line 56


Can't load CM to get into bridge manager.  Can't login to bridgemgr.php because original install was done years ago by another admin.  I need to change the bridge from MyBB to SMF by manually editing the files, but can't find it.




Krash

Ok, believe I've upgraded CM to current version 1.6.29 in the production forum.  The update failed, apparently because it was still bridged to MyBB.  Tried bridgemgr.php script but it requires login by whomever originally installed the gallery long ago.  So I hacked the code in smf21.inc.php, hacked the database, and it displayed update progress screen and showed it completed. 

Upgraded CM is apparently now bridged to SMF.  Everything seems to be working, database has been updated, gallery is intact, but we're back to the original problem, CM does not recognize SMF login.  I'm unable to login to CM to access bridge manager, members cannot login to CM.  The CM login redirects to SMF.

Had the same login problem on the acfsmf clone, fixed it by deleting and reinstalling CM, but every time I do something it's different.  Hesitate to try that in production with the hacks in place.

smf21.inc.php hack -


        function __construct()
        {
            global $BRIDGE;

            if (!USE_BRIDGEMGR) {
                require_once('../smf/Settings.php');
                $boardurl = 'http://www.mysite.com/board';
            } else {
            //  require_once($BRIDGE['relative_path_to_config_file'] . 'Settings.php');
                require_once('/home/u0fgcfwp0drf/domains/australian-coins.net/public_html/Settings.php');
            }


Database hack -


short_name    smf21