coppermine - smf RC2 / Problem with settings.php coppermine - smf RC2 / Problem with settings.php
 

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

coppermine - smf RC2 / Problem with settings.php

Started by martinp, October 25, 2004, 01:49:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

martinp

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
        (
           
  • => 205
                [1] => 206
                [2] => 207
                [3] => 208
                [4] => 209
            )

    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [user_id] => 1
        [user_group] => 1
        [user_active] => YES
        [user_name] => admin
        [user_password] => ********
        [user_lastvisit] => 2004-10-25 12:59:14
        [user_regdate] => 2004-10-04 14:22:33
        [user_group_list] =>
        [user_email] =>
        [user_website] =>
        [user_location] =>
        [user_interests] =>
        [user_occupation] =>
        [user_actkey] =>
        [disk_max] => 0
        [disk_min] => 0
        [can_rate_pictures] => 1
        [can_send_ecards] => 1
        [ufc_max] => 3
        [ufc_min] => 3
        [custom_user_upload] => 0
        [num_file_upload] => 5
        [num_URI_upload] => 3
        [can_post_comments] => 1
        [can_upload_pictures] => 1
        [can_create_albums] => 1
        [has_admin_access] => 1
        [pub_upl_need_approval] => 0
        [priv_upl_need_approval] => 0
        [group_name] => Administrator
        [upload_form_config] => 3
        [group_quota] => 0
        [can_see_all_albums] => 1
        [group_id] => 1
        [groups] => Array
            (
                [1] => 1
            )

    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg132_filetypes;
        [1] => SELECT * FROM cpg132_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '09bb63bf7635f9cfd50f022e7a3b0dba'
        [2] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg132_usergroups WHERE group_id in (1)
        [3] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1
        [4] => DELETE FROM cpg132_banned WHERE expiry < 1098702788
        [5] => SELECT * FROM cpg132_banned WHERE ip_addr='84.57.71.190' OR ip_addr='84.57.71.190' OR user_id=1
        [6] => SELECT aid, category, IF(user_name IS NOT NULL, CONCAT('(', user_name, ') ',title), CONCAT(' - ', title)) AS title FROM cpg132_albums AS a LEFT JOIN cpg132_users AS u ON category = (10000 + user_id) ORDER BY category, title
        [7] => SELECT name FROM cpg132_categories WHERE cid = 0
        [8] => SELECT name FROM cpg132_categories WHERE cid = 0
        [9] => SELECT name FROM cpg132_categories WHERE cid = 0
        [10] => SELECT name FROM cpg132_categories WHERE cid = 0
        [11] => SELECT name FROM cpg132_categories WHERE cid = 0
        [12] => SELECT name FROM cpg132_categories WHERE cid = 0
        [13] => SELECT name FROM cpg132_categories WHERE cid = 0
        [14] => SELECT name FROM cpg132_categories WHERE cid = 0
        [15] => SELECT name FROM cpg132_categories WHERE cid = 0
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

    ==========================
    POST :
    ------------------
    Array
    (
    )

    ==========================
    VERSION INFO :
    ------------------
    PHP version: 4.3.8 - OK
    ------------------
    mySQL version: 4.0.20-log
    ------------------
    Coppermine version: 1.3.2
    ==========================
    Module: gd
    ------------------
    GD Support enabled
    GD Version bundled (2.0.23 compatible)
    GIF Read Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled
    ==========================
    Module: mysql
    ------------------
    Active Persistent Links 0
    Active Links 1
    Client API version 4.0.20
    MYSQL_MODULE_TYPE external
    MYSQL_SOCKET /tmp/mysql.sock
    MYSQL_INCLUDE -I/usr/local/include/mysql
    MYSQL_LIBS -L/usr/local/lib/mysql -lmysqlclient 
    ==========================
    Module: zlib
    ------------------
    module doesn't exist
    ==========================
    Server restrictions (safe mode)?
    ------------------
    Directive | Local Value | Master Value
    safe_mode | Off | Off
    safe_mode_exec_dir | no value | no value
    safe_mode_gid | On | On
    safe_mode_include_dir | no value | no value
    safe_mode_exec_dir | no value | no value
    sql.safe_mode | Off | Off
    disable_functions | no value | no value
    file_uploads | On | On
    include_path | /:.:/php/includes:/home/httpd/stroemfd/php/include | /:.:/php/includes:/home/httpd/stroemfd/php/include
    open_basedir | no value | no value
    ==========================
    email
    ------------------
    Directive | Local Value | Master Value
    sendmail_from | me@localhost.com | me@localhost.com
    sendmail_path | /usr/sbin/sendmail -t -oi | /usr/sbin/sendmail -t -oi
    SMTP | localhost | localhost
    smtp_port | 25 | 25
    ==========================
    Size and Time
    ------------------
    Directive | Local Value | Master Value
    max_execution_time | 30 | 30
    max_input_time | -1 | -1
    upload_max_filesize | 8M | 8M
    post_max_size | 8M | 8M
    ==========================
    Page generated in 0.069 seconds - 16 queries in 0.004 seconds - Album set :

Nibbler

Link please. Also try a full path like /home/httpd/blah-blah/blah-blah.de/www/yabb-se.

martinp

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)