forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 bridging => Topic started by: egfg on April 05, 2012, 09:54:16 am

Title: Cannot redeclare class cpg_udb in /bridge/phpbb3.inc.php
Post by: egfg on April 05, 2012, 09:54:16 am
link to your site: http://www.egfg.org/photos/ (http://www.egfg.org/photos/)
a test user account: Guest
and what you have set in the bridge manager :

   short_name phpbb3
   full_forum_url http://www.egfg.org/phpBB3
   relative_path_to_config_file ../phpBB3/
   use_post_based_groups 0
   cookie_prefix phpbb3_qwroo
   use_standard_groups 1
   recovery_logon_failures 0
   recovery_logon_timestamp 2012-04-05 03:37:10

I've had nothing but trouble upgrading from phpBB2 to phpBB3. I have a new issue with bridging, although the bridge appears to work. When I execute bridge/phpbb3.inc.php I am able to Disable bridging just fine,however, when I Enable bridging for phpBB3, I get the following  error message...

Fatal error: Cannot redeclare class cpg_udb in {hidden puposely -egfg}/bridge/phpbb3.inc.php on line 41

Notes: I have edited phpbb3.inc.php to add    $this->admingroups = array(16); // mod cff3 for Coppermine to phpBB3 bridge.
          I had password trouble with MySQL and phpMyAdmin. I believe they are now in synch and I set them back to what Coppermine had originally.

UPDATE:
I did a bunch of testing tonight, learned some things, still not sure why it does that?!

- I made 2 brand new databases and propagated them with Coppermine database backups. One of them was from 3/17 (before doing the phpBB2 to phpBB3 upgrade). The other was from a backup of today's Coppermine data.

- I reapplied all the source files for Coppermine 1.5.20, then re-edited phpBB3.inc.php for $this->admingroups = array(16); // mod cff3 for Coppermine to phpBB3 bridge.

- I swapped databases through config.inc.php (several times).

- Then I tried all kinds of bridging enables, disables, etc...

Results: On two separate ocassions, the bridgemgr.php script ran completely without failing. I know the first time was when I used the 3/17 restored database. However, I can't repeat the results. Most of the time I get the error message about cpg_udb. Don't know what else I can do? Bridging works, but it just bugs me!
Title: Re: Cannot redeclare class cpg_udb in /bridge/phpbb3.inc.php
Post by: Αndré on April 05, 2012, 10:11:23 am
Please have a look at the following threads, maybe the solutions also work for you:
- http://forum.coppermine-gallery.net/index.php/topic,73048.msg351925.html#msg351925
- http://forum.coppermine-gallery.net/index.php/topic,70140.msg344436.html#msg344436
Title: Re: Cannot redeclare class cpg_udb in /bridge/phpbb3.inc.php
Post by: egfg on April 05, 2012, 11:36:11 am
Resolved. From the link posted above...
Quote
Did you clear everything out, all files except the albums folder, include/config.inc.php, anycontent.php and your custom theme before upgrading? I've seen instances similar where some old files have been left behind.

I renamed my Coppermine main directory and created a new, empty one.
Uploaded a fresh copy of version 1.5.20
Copied in config.inc.php
Edited phpBB3.inc.php for $this->admingroups = array(16);
and Moved my albums directory into the new directory.

Then I went in and tried bridgemgr.php and it worked.