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 (http://forum.coppermine-gallery.net/index.php?topic=16604.0), and none gave me the answer I am seeking. Any clues what's wrong?
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');
That did it!
Thanks.