Failed opening required 'udb_base.inc.php' with SMF bridge Failed opening required 'udb_base.inc.php' with SMF bridge
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Failed opening required 'udb_base.inc.php' with SMF bridge

Started by donnoman, March 11, 2005, 07:15:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

donnoman

May be related to:
http://forum.coppermine-gallery.net/index.php?topic=15421.msg71842#msg71842

I was getting the following when trying to setup a bridge to SMF.


Fatal error: main() [function.require]: Failed opening required 'udb_base.inc.php' (include_path='.:/usr/lib/php') in /home/cpg-contrib/public_html/bridge/smf10.inc.php on line 26


PHP Version 5.0.3
register_long_arrays On On

I had to hard-code the location to udb_base.inc.php to get it to work.

require '/home/cpg-contrib/public_html/bridge/udb_base.inc.php';

Coppermine is setup in the root: /home/cpg-contrib/public_html

SMF is setup in a directory under the root: /home/cpg-contrib/public_html/board


Your bridge settings
Forum URL:  http://cpg-contrib.org/board  
Relative path to your BBS's config file:  board/  
Use post-based groups?:  1  


Nibbler

Did you try:

require 'bridge/udb_base.inc.php';

It works both ways for me, which is odd.

Also try var_dump(getcwd()); in the bridge file to check the cwd is as it should be.

CPG at localhost/devel
SMF at localhost/smf
PHP 5.1

Joachim Müller


donnoman

require 'bridge/udb_base.inc.php';

Works fine.

Looks like that is default in coppermine.inc.php.

Should I go through and update all of the bridge files to 'bridge/udb_base.inc.php' ?

Joachim Müller


donnoman