help :( the bridge won't set itself up again :( help :( the bridge won't set itself up again :(
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

help :( the bridge won't set itself up again :(

Started by elwave, May 16, 2011, 05:48:32 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

elwave

Hi.. basically I wanted to re-establish the bridge because the groups were set up incorrectly the first time. So I intended to remove the bridge and then put it back again with the new setting, all using the Bridge Manager.

It removed it fine, but when I clicked the Manager again to recreate it, I got this error:

Fatal error: Cannot redeclare class coppermine_udb in Unknown on line 0


I'm kinda a bit worried about this as the gallery is a really important part of my forum and I hate to see it like, not integrated properly for a bit.

Could you help me please guys?

Thanks,

Elwave

Αndré

Quotein Unknown on line 0

Something is really wrong here. Usually 'Unknown' is a file and 'line' is greater than '0'. Hard to say what's going wrong, but I suggest to use phpMyAdmin to clear the bridge settings in your database and try again.

elwave

hm, no I clear the whole table in the db (the bridge one) and I still get the error :(

Thing is erm, this gallery was originally installed in about.. perhaps August '09 (and upgraded and stuff since then) so perhaps something got corrupt along the way (I guess it must have!)

I wonder how this can be fixed >.<

Αndré

Try to replace all files in the bridge folder, maybe one of that files got corrupted.

elwave

>.< now the whole gallery is down... I tried that and it worked, the bridge manager started and all the steps went past, although they nearly all said that no action was required, which seemed odd.

Then I got this error and a blank white screen when I refreshed the gallery:

Fatal error: require_once() [function.require]: Failed opening required 'bridge.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sonichen/public_html/gallery/include/init.inc.php on line 243


I'm gonna keep trying as well but >.<  I need a hand with this lol

elwave

I also just edited the mybb bridge file to make it read all the correct settings for my forum.. but man, still no change.. I'm really stumped :(

Αndré

Quote from: elwave on May 16, 2011, 12:08:21 PM
Fatal error: require_once() [function.require]: Failed opening required 'bridge.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sonichen/public_html/gallery/include/init.inc.php on line 243
Check if the file in bold letters exists and your PHP user is able to access it.

elwave

hm, I can't see it anywhere but then I also can't see it in the normal coppermine install package - where is it meant to be? In /include? I looked in several places (everywhere that seemed likely) but no sign of it o.O

Αndré

Sorry my mistake, that file indeed doesn't exist in cpg1.5.x. Make sure that you have only cpg1.5.x compatible bridge files in your bridge folder.

elwave

Yeah, I copied the bridge folder from a freshly unzipped cpg zip file earlier today when I was refreshing the files and database.

Do you reckon the problem is that not all the files are up to date? That WOULD make sense actually! However, I wonder what file is at fault and also I wonder how can save this, as perhaps the reason it broke is because some of the files involved in the bridging were old :(

elwave

oo, and just because I now realize I forgot to mention - this is the MyBB bridge, although it probs doesn't matter at this point >.<

elwave

Maybe I could try replacing init.inc.php with one that I know is Coppermine 1.5...

Αndré

You have to replace all Coppermine core files after to upgrade properly. Please read the upgrade docs.

elwave

Quote from: Αndré on May 16, 2011, 09:38:30 PM
You have to replace all Coppermine core files after to upgrade properly. Please read the upgrade docs.

Could I copy a new unzipped Coppermine folder over my old gallery to replace the files? Ugh and you know I kinda wish I never did this, it was working before :(

elwave

I decided to perform an upgrade again (I did it this way before), so I copied an entirely new coppermine unzip over my current gallery with the exception of anycontent.php and the albums directory, but the update.php script throws the same error as the main gallery :(

Maybe it's a database problem :(

Joe Carver

Please...
    - Post links as described in the board rules and here in Bridging support
    http://documentation.coppermine-gallery.net/en/bridging.htm#integrating_support_start
    - Read here:
    http://documentation.coppermine-gallery.net/en/bridging.htm#bridge_manager_recover_start
    - And here:
    http://documentation.coppermine-gallery.net/en/upgrading.htm#upgrade_any
    - Try to not make modifications until everything is tested and working
    - Backup early and often


elwave

Yes!

After doing that complete refresh of everything I accessed the bridgemgr.php file and disabled the bridging! Wow.. I've never had to do that before! hehe

Ok erm... now... o.O  *tries stuff! lol*

elwave

ok.. basically the current situation is the gallery is working 100% unbridged and has a clean bridge database entry and totally fresh, updated files.

However, whenever I try to bridge it, it gives me no options and throws that error (the fatal error about bridge.inc.php).

At least the gallery is up again, and now I guess it's just a matter of trying to work out what's going wrong when I try to bridge it!

Αndré

Quote from: elwave on May 16, 2011, 09:50:36 AM
I clear the whole table in the db (the bridge one)
Have you set all entries to '' or have you deleted all values? Please check again that table, as it seems that there's a row 'short_name' with the value 'bridge'.

elwave

Quote from: Αndré on May 17, 2011, 09:35:13 AM
Have you set all entries to '' or have you deleted all values? Please check again that table, as it seems that there's a row 'short_name' with the value 'bridge'.

that's it! you're a genius! haha :)

All I did, was I went into the DB and copied across the working settings in the bridge table from another WORKING forum I have, and THEN fired up the bridge manager, and it simply used the settings already in the DB and just activated the bridge!

IT WOOOOORRRRKKKSSS!! Yay!!!

Thank you so much guys! I need to do more for you to thank you in future (I did the review and that).. I'll donate as SOON as I have money! Hell, maybe before! hehe

Thanks again, and keep up the good work on such a wicked gallery! I'm so relieved this is all over! hehe :)

Elwave!