forum.coppermine-gallery.net

Dev Board => cpg1.4 Testing/Bugs => cpg1.4 Testing/Bugs: FIXED/CLOSED => Topic started by: donnoman on March 11, 2005, 07:15:26 am

Title: Failed opening required 'udb_base.inc.php' with SMF bridge
Post by: donnoman on March 11, 2005, 07:15:26 am
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.

Code: [Select]
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

Code: [Select]
Your bridge settings
Forum URL:  http://cpg-contrib.org/board  
Relative path to your BBS's config file:  board/  
Use post-based groups?:  1  
Title: Re: Failed opening required 'udb_base.inc.php' with SMF bridge
Post by: Nibbler on March 11, 2005, 01:45:56 pm
Did you try:

Code: [Select]
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
Title: Re: Failed opening required 'udb_base.inc.php' with SMF bridge
Post by: Joachim Müller on April 09, 2005, 01:17:31 pm
*bump*
Title: Re: Failed opening required 'udb_base.inc.php' with SMF bridge
Post by: donnoman on April 09, 2005, 08:15:04 pm
Code: [Select]
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' ?
Title: Re: Failed opening required 'udb_base.inc.php' with SMF bridge
Post by: Joachim Müller on April 10, 2005, 10:52:36 am
yes, please go ahead.

Joachim
Title: Re: Failed opening required 'udb_base.inc.php' with SMF bridge
Post by: donnoman on April 10, 2005, 07:03:33 pm
committed, marking fixed.