databse error with phpbb2 bridging databse error with phpbb2 bridging
 

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

databse error with phpbb2 bridging

Started by richards, September 17, 2004, 10:07:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

richards

I did do a search and came up with resualts simualr to mine but didnt get an answer that sixed my problem so here i go.

Fatal error

While executing query "SELECT user_id, username as user_name, user_level FROM `phpBB`.phpbb_sessions INNER JOIN `phpBB`.phpbb_users ON session_user_id = user_id WHERE session_id='12cd24101ee07bbb4eccd318338aaa43' AND session_user_id ='2' AND user_active='1'" on 0

mySQL error: Table 'phpBB.phpbb_sessions' doesn't exist


I followed the instructions pretty good i think. I installed on the same DB as the phpBB.

php.inc.php

// database configuration
define('PHPBB_DB_NAME', 'phpBB'); // The name of the database used by the board
define('PHPBB_BD_HOST', 'localhost'); // The name of the database server
define('PHPBB_DB_USERNAME', 'richard'); // The username to use to connect to the database
define('PHPBB_DB_PASSWORD', '******'); // The password to use to connect to the database

// The web path to your phpBB directory
// If your URL to your board is for example 'http://yoursite_name.com/phpBB2/',
// you'll have to set the below var to '/phpBB2/'.
define('PHPBB_WEB_PATH', '/forum/');
// Logout Flag
// the value of this boolean constant depends on your phpBB version:
// If your version of phpBB is 2.0.4 or lower - change the value to FALSE;
// if your version of phpBB is 2.0.5 or newer - leave it as TRUE
define('PHPBB_LOGOUT_GET', TRUE);
// ------------------------------------------------------------------------- //
// You can keep the default values below if your instalation is standard
// ------------------------------------------------------------------------- //
// The prefix for the phpBB cookies
define('PHPBB_COOKIE_PREFIX', 'phpbb2mysql'); // The prefix used for board cookies

// Prefix and names for the database tables
define('PHPBB_TABLE_PREFIX', 'phpbb_'); // The prefix used for the DB tables
define('PHPBB_USER_TABLE', 'users'); // The members table
define('PHPBB_SESSION_TABLE', 'sessions'); // The session table
define('PHPBB_GROUP_TABLE', 'groups'); // The groups table
define('PHPBB_UGROUP_TABLE', 'user_group'); // The group/user table

cpg_redir.php

<?php
if (!$_SERVER['HTTP_HOST']) {
  
$cpg_host=$HTTP_SERVER_VARS['HTTP_HOST'];
} else {
  
$cpg_host=$_SERVER['HTTP_HOST'];
}
$cpg_path='/gallery';
header("Location: http://".$cpg_host.$cpg_path);
exit;
?>


richards


Nibbler

mySQL error: Table 'phpBB.phpbb_sessions' doesn't exist

so, is your databsae called phpBB - with that capitalisation?
and is there a table there named phpbb_sessions ?

richards

wow i cant belive i missed on the capps. ok now there is a new problem. When i click login it goes to my phpbb board. Im already logged in...... so therw fore  im not loggin in the gallery. The debug thing says

USER:
------------------
Array
(
    [ID] => 1df550899c31121e40677cb3ec56ac68
    [am] => 1
    [liv] => Array
        (
           
  • => 3
                [1] => 7
                [2] => 5
                [3] => 4
                [4] => 1
            )

        [search] => ###dood
    )

    ==========================
    USER DATA:
    ------------------
    Array
    (
        [disk_max] => 0
        [disk_min] => 0
        [can_rate_pictures] => 1
        [can_send_ecards] => 0
        [ufc_max] => 0
        [ufc_min] => 0
        [custom_user_upload] => 0
        [num_file_upload] => 5
        [num_URI_upload] => 3
        [can_post_comments] => 0
        [can_upload_pictures] => 0
        [can_create_albums] => 0
        [has_admin_access] => 0
        [pub_upl_need_approval] => 1
        [priv_upl_need_approval] => 1
        [group_name] => Anonymous
        [upload_form_config] => 0
        [group_quota] => 0
        [can_see_all_albums] => 0
        [group_id] => 3
        [groups] => Array
            (
               
  • => 3
            )

    )

    ==========================
    Queries:
    ------------------
    Array
    (
       
  • => SELECT extension, mime, content FROM cpg132_filetypes;
        [1] => SELECT user_id, username as user_name, user_level FROM `phpbb`.phpbb_users WHERE user_id='2' AND user_password='' AND user_active='1'
        [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 (3)
        [3] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 3
        [4] => DELETE FROM cpg132_banned WHERE expiry < 1096008399
        [5] => SELECT * FROM cpg132_banned WHERE ip_addr='24.251.206.60' OR ip_addr='24.251.206.60' OR user_id=0
        [6] => SELECT aid FROM cpg132_albums WHERE visibility != '0' AND visibility !='10000' AND visibility NOT IN (3)
        [7] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = ''  ORDER BY pos
        [8] => SELECT aid FROM cpg132_albums as a WHERE category>=10000
        [9] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category >= 10000
        [10] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '1'  ORDER BY pos
        [11] => SELECT aid FROM cpg132_albums as a WHERE category = '0'
        [12] => SELECT count(*) FROM cpg132_albums as a WHERE 1
        [13] => SELECT count(*) FROM cpg132_pictures as p LEFT JOIN cpg132_albums as a ON a.aid=p.aid WHERE 1
        [14] => SELECT count(*) FROM cpg132_comments as c LEFT JOIN cpg132_pictures as p ON c.pid=p.pid LEFT JOIN cpg132_albums as a ON a.aid=p.aid WHERE 1
        [15] => SELECT count(*) FROM cpg132_categories WHERE 1
        [16] => SELECT sum(hits) FROM cpg132_pictures as p LEFT JOIN cpg132_albums as a ON p.aid=a.aid WHERE 1
        [17] => SELECT count(*) FROM cpg132_albums as a WHERE category = '0'
        [18] => SELECT COUNT(*) from cpg132_pictures WHERE approved = 'YES'
        [19] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, aid FROM cpg132_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8
        [20] => SELECT COUNT(*) from cpg132_pictures WHERE approved = 'YES'
        [21] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid,title, caption, owner_id, owner_name, aid FROM cpg132_pictures WHERE approved = 'YES'  ORDER BY pid DESC  LIMIT 0 ,8
    )

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

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

    ==========================
    Page generated in 0.041 seconds - 22 queries in 0.004 seconds - Album set :

Joachim Müller

check your cookie paths. Probably the phpbb cookie isn't readible for coppermine. Post a link and test user account (non-admin) for details.

Joachim


Nibbler

You havent set your cookie prefix properly, it looks like it should be set to 'shad_phpbb'.

richards

it is set to that on my board, do i set it to the same for the gallery?

richards

I think i figured it out. Thank you. The support here is past my expectations.