Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Failed opening required 'udb_base.inc.php' with SMF bridge  (Read 6527 times)

0 Members and 1 Guest are viewing this topic.

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Failed opening required 'udb_base.inc.php' with SMF bridge
« 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  
« Last Edit: April 10, 2005, 07:04:06 pm by donnoman »
Logged

Nibbler

  • Guest
Re: Failed opening required 'udb_base.inc.php' with SMF bridge
« Reply #1 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Failed opening required 'udb_base.inc.php' with SMF bridge
« Reply #2 on: April 09, 2005, 01:17:31 pm »

*bump*
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: Failed opening required 'udb_base.inc.php' with SMF bridge
« Reply #3 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' ?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Failed opening required 'udb_base.inc.php' with SMF bridge
« Reply #4 on: April 10, 2005, 10:52:36 am »

yes, please go ahead.

Joachim
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: Failed opening required 'udb_base.inc.php' with SMF bridge
« Reply #5 on: April 10, 2005, 07:03:33 pm »

committed, marking fixed.
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 18 queries.