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: Bridging version 1.3.3 to SMF  (Read 3909 times)

0 Members and 1 Guest are viewing this topic.

jns

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Bridging version 1.3.3 to SMF
« on: May 17, 2005, 03:38:08 pm »

I had been running the last release of YabbSE with Coppermine 1.3.2 bridged to run with it. Recently I upgraded YabbSE to SMF 1.0.3. I then upgraded Coppermine to version 1.3.3 and installed the SMF bridge.

At first I got the following errors:
Quote
Notice: Undefined offset: 7 in /var/www/html/gallery/bridge/smf.inc.php on line 73

Notice: Undefined offset: 7 in /var/www/html/gallery/bridge/smf.inc.php on line 77

Warning: main(/Settings.php): failed to open stream: No such file or directory in /var/www/html/gallery/bridge/smf.inc.php on line 77

Fatal error: main(): Failed opening required '/Settings.php' (include_path='.:/usr/share/pear') in /var/www/html/gallery/bridge/smf.inc.php on line 77

In the bridge I had set the path of the Settings file to the same path I used in the YabbSE bridge. In trying to track down the source of the problem I changed the path to the full path. That did not fix the problem. Then seeing the two other references to Settings.php on lines 73 and 77 of the bridge, I changed those to the full path of Settings.php.

Then Coppermine started working , but I continued to get the following error message at the top of the page:
Quote
Notice: Undefined offset: 7 in /var/www/html/gallery/bridge/smf.inc.php on line 73

Notice: Undefined offset: 7 in /var/www/html/gallery/bridge/smf.inc.php on line 77

I tried to find similar problems reported in this forum, but only found a couple, such as this one, and none gave me the answer I am seeking. Any clues what's wrong?
« Last Edit: May 18, 2005, 06:50:55 am by GauGau »
Logged

Nibbler

  • Guest
Re: Bridging version 1.3.3 to SMF
« Reply #1 on: May 17, 2005, 08:26:53 pm »

Removee all of this:

Code: [Select]
if (substr($path, -1) == '/')
        $path = substr($path, 0, -1);

$possible_paths = array($path, '..', '../forum', '../forums',
'../community', '../yabbse', '../smf');

$correct = 0;
while (!file_exists($possible_paths[$correct] . '/Settings.php') &&
count($possible_paths) > $correct)
        $correct++;

require_once($possible_paths[$correct] . '/Settings.php');

And just put in a simple require

Code: [Select]
require_once('path/to/your/Settings.php');
Logged

jns

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Bridging version 1.3.3 to SMF
« Reply #2 on: May 17, 2005, 09:15:13 pm »

That did it!

Thanks.
« Last Edit: May 17, 2005, 09:24:00 pm by Nibbler »
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.