coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 (BBS) Integration / Bridging => Topic started by: martinp on October 25, 2004, 01:49:26 PM

Title: coppermine - smf RC2 / Problem with settings.php
Post by: martinp on October 25, 2004, 01:49:26 PM
Hi there!
I think I did ev'rything as it is said in the bridge-manual but I dont succeed. smf and coppermine are both working well, but I cant bridge them. I get the message:
Warning: main(/Settings.php): failed to open stream: No such file or directory in /home/httpd/blah-blah/blah-blah.de/www/coppermine/bridge/smf.inc.php on line 77

Fatal error: main(): Failed opening required '/Settings.php' (include_path='/:.:/php/includes:/home/httpd/stroemfd/php/include') in /home/httpd/blah-blah/blah-blah.de/www/coppermine/bridge/smf.inc.php on line 77

If I comment the // define('UDB_INTEGRATION', 'smf'); in init.inc.php out, I can't access coppermine anymore (guess, that's somehow a good sign...?)

smf and coppermine are on the same server under the same domain. They use the same mysql-database.

I'm not very used to php and stuff... (and the english language)

any help would be apprechiated.

Martin


My smf.inc.php looks like that (and, yes, the directory is called 'yabb-se'):
...
// Set this to the location of your Settings file:
$path = '../yabb-se';

// Comment this out if you want to default user's group to 'Registered'
// rather than using Post Count based groups.
//define('USE_POST_GROUPS', 1);

// Set the names of implied groups here
define('CM_ADMIN_GROUP_NAME', 'Administrator');
define('CM_MEMBERS_GROUP_NAME', 'intern');
define('CM_GUEST_GROUP_NAME', 'allgemein');
define('CM_BANNED_GROUP_NAME', 'Banned');
define('CM_GMOD_GROUP_NAME', 'Global Moderator');

// ------------------------------------------------------------------------- //
// Nothing to edit below this line
// ------------------------------------------------------------------------- //

// Otherwise, try to autodetect SMF path if not set:
if (substr($path, -1) == '/')
        $path = substr($path, 0, -1);

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

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

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

define ('SMF', 1);
...



Here's my debug-info:

USER:
------------------
Array
(
    [ID] => dbc5d551d16495722597fc3589349cf6
    [am] => 1
    [liv] => Array
        (
           
Title: Re: coppermine - smf RC2 / Problem with settings.php
Post by: Nibbler on October 25, 2004, 02:07:12 PM
Link please. Also try a full path like /home/httpd/blah-blah/blah-blah.de/www/yabb-se.
Title: Re: coppermine - smf RC2 / Problem with settings.php
Post by: martinp on October 25, 2004, 02:49:55 PM
I tried the full path.
Now I get a new message:
Fatal error: session_start(): Failed to initialize storage module: user (path: /tmp) in /home/httpd/blahblah/art-up.de/www/coppermine/bridge/smf.inc.php on line 148

If I leave smf commented in init.inc.php I can access coppermine but get the following Notice: Undefined index: offline in /home/httpd/mplass/art-up.de/www/coppermine/include/init.inc.php on line 381

Here's the link:
http://www.art-up.de/coppermine

(smf is commented in init.inc.php)