Bridging version 1.3.3 to SMF Bridging version 1.3.3 to SMF
 

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

Bridging version 1.3.3 to SMF

Started by jns, May 17, 2005, 03:38:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jns

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?

Nibbler

Removee all of this:

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

require_once('path/to/your/Settings.php');

jns

#2
That did it!

Thanks.