Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: There was an error while processing a database query.  (Read 3465 times)

0 Members and 1 Guest are viewing this topic.

Quinn

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 20
  • Things go better with Quinn!
    • Raven
There was an error while processing a database query.
« on: September 07, 2005, 03:38:06 am »

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

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

While adding several boards to the site using a common database, I renamed the phpbb_session, phpbb_user, phpbb_groups tables to "session" "users" "groups" Setting constants.php to read the new table names.

Now the CPG doesn't work complaining about the table not existing... If I rename the tables it works but the other boards relying on the tables break.

Is there an easy  way to configure CPG look for the renamed tables too?
« Last Edit: September 07, 2005, 08:20:12 am by GauGau »
Logged

Azrayen

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 87
    • azrayen.net
Re: There was an error while processing a database query.
« Reply #1 on: September 07, 2005, 05:34:11 am »

Hum hum,

You're on the standalone version support board... :-\\

My CPG isn't bridged with any board, so I didn't test this solution, bu if it may help :
In phpbb.inc.php search
Code: [Select]
define('PHPBB_TABLE_PREFIX', 'phpbb_'); // The prefix used for the DB tables
and replace it by
Code: [Select]
define('PHPBB_TABLE_PREFIX', ''); // The prefix used for the DB tables
since you don't have table prefix anymore.

Azy

PS : Let me (us) know if it's OK  ;)
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: There was an error while processing a database query.
« Reply #2 on: September 07, 2005, 07:15:24 am »

moving this thread accordingly...
Logged

Quinn

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 20
  • Things go better with Quinn!
    • Raven
Re: There was an error while processing a database query. (solved)
« Reply #3 on: September 07, 2005, 08:08:05 am »

Hum hum,

You're on the standalone version support board... :-\\

My CPG isn't bridged with any board, so I didn't test this solution, bu if it may help :
In phpbb.inc.php search
Code: [Select]
define('PHPBB_TABLE_PREFIX', 'phpbb_'); // The prefix used for the DB tables
and replace it by
Code: [Select]
define('PHPBB_TABLE_PREFIX', ''); // The prefix used for the DB tables
since you don't have table prefix anymore.

Azy

PS : Let me (us) know if it's OK  ;)

Thanks, Azy... that fixed it!  ;)

Code: [Select]
// Prefix and names for the database tables
define('PHPBB_TABLE_PREFIX', ''); // 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

sorry about posting in the wrong forum... GauGau

Azrayen

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 87
    • azrayen.net
Re: There was an error while processing a database query. (solved)
« Reply #4 on: September 08, 2005, 03:46:40 pm »

Thanks, Azy... that fixed it!  ;)

OK, cool ! ;)
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 15 queries.