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: Fatal error :There was an error while processing a database query  (Read 6300 times)

0 Members and 1 Guest are viewing this topic.

Cool Surfer

  • Coppermine newbie
  • Offline Offline
  • Posts: 17

Hi all friends
I have installed coppermine 1.33, and previously had 1.31.

If I edit file > include/init.inc.php. and uncomment the invision line, I get the

Fatal error :
There was an error while processing a database query

and if i dont uncomment it, then the gallery works but does not pick up the members from
invision sql.

the other parameters and cookies are same for both coppermine and invsion2 forum .

Pl suggest me where I am faultering.

Regards

James
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Fatal error :There was an error while processing a database query
« Reply #1 on: May 25, 2005, 01:09:36 am »

Enable debug mode and post the actual error message you get.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Incite

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Fatal error :There was an error while processing a database query
« Reply #2 on: May 25, 2005, 09:04:26 am »

I am actually having the same problem, however with phpBB. I have read over to forums for about the past 5 hours.. and I think i may have found the problem. I have my phpBB and coppermine in different databases but on the same server, do they need to be in one DB? and is this possibly the reason for the error? My next question would be.. how do I integrate the DB's without loosing all my information on one or the other. I hope that I am being clear.. I appologise if it doesn't make sense.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Fatal error :There was an error while processing a database query
« Reply #3 on: May 25, 2005, 12:58:22 pm »

I am actually having the same problem, however with phpBB. I have read over to forums for about the past 5 hours.. and I think i may have found the problem. I have my phpBB and coppermine in different databases but on the same server, do they need to be in one DB? and is this possibly the reason for the error? My next question would be.. how do I integrate the DB's without loosing all my information on one or the other. I hope that I am being clear.. I appologise if it doesn't make sense.

Without the error message, I can't be certain you have the same problem.  You also must enable debug mode and post the error message.  Regarding databases, from the documentation:

5.2.5 Keep Coppermine and bbs tables in the same database
It is recommended that you use the same database for your board and Coppermine (in fact it is even mandatory!).

So, you must have your tables in the same database.  Either move your Coppermine tables to your forum database, or the other way around.  You just have to change Coppermine's config.inc.php to reflect the new database, username, and password, or you have to change your forum's configuration file.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Voltus

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Fatal error :There was an error while processing a database query
« Reply #4 on: May 26, 2005, 10:11:41 pm »

This is the exact error message that I got. Please help. All this are just confusing to me.  :-[

While executing query "
      SELECT variable, value
      FROM smf_settings" on 0

mySQL error: Table 'masaki04_phpbb1.smf_settings' doesn't exist
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Fatal error :There was an error while processing a database query
« Reply #5 on: May 27, 2005, 02:31:41 am »

Quote
5.2.5 Keep Coppermine and bbs tables in the same database
It is recommended that you use the same database for your board and Coppermine (in fact it is even mandatory!).

So, you must have your tables in the same database.  Either move your Coppermine tables to your forum database, or the other way around.  You just have to change Coppermine's config.inc.php to reflect the new database, username, and password, or you have to change your forum's configuration file.

So, do SMF and Coppermine share the same database?
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Incite

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Fatal error :There was an error while processing a database query
« Reply #6 on: May 28, 2005, 04:37:58 am »

While executing query "SELECT COUNT(*) FROM **ERROR**" on 0

mySQL error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near '**ERROR**' at line 1
 

This is the error MSG that I recieved.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Fatal error :There was an error while processing a database query
« Reply #7 on: May 28, 2005, 05:05:49 am »

Quote
5.2.5 Keep Coppermine and bbs tables in the same database
It is recommended that you use the same database for your board and Coppermine (in fact it is even mandatory!).

So, you must have your tables in the same database.  Either move your Coppermine tables to your forum database, or the other way around.  You just have to change Coppermine's config.inc.php to reflect the new database, username, and password, or you have to change your forum's configuration file.

So, do SMF and Coppermine share the same database?
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Nibbler

  • Guest
Re: Fatal error :There was an error while processing a database query
« Reply #8 on: May 28, 2005, 02:49:35 pm »

While executing query "SELECT COUNT(*) FROM **ERROR**" on 0

That means you are trying to use a mod written for unbridged coppermine with a bridged version of coppermine.
Logged

Incite

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Fatal error :There was an error while processing a database query
« Reply #9 on: May 28, 2005, 07:55:19 pm »

So I guess the best thing to do would be remove all the mods untill I find the one that doesn't work?
Logged

Incite

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Fatal error :There was an error while processing a database query
« Reply #10 on: May 29, 2005, 09:01:39 pm »

Ok, I upgraded from 1.3.1 to 1.3.3 and it seemed to be workinf ok, I tried to integrate again.. and this is the error MSG's I am recieving now.

While executing query "SELECT user_name, user_id, group_name, COUNT(*) AS numcom FROM cpg11d_comments, **ERROR**, cpg11d_usergroups WHERE user_id = author_id AND user_group = group_id GROUP BY author_id ORDER BY numcom DESC LIMIT 5" on 0

mySQL error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near '**ERROR**, cpg11d_usergroups WHERE user_id = author_id AND user
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Fatal error :There was an error while processing a database query
« Reply #11 on: May 30, 2005, 03:49:26 am »

You are trying to use mods written for an unbridged version of Coppermine in a bridged environment.  They obviously aren't working.  Reply to the mod threads with your problems.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Incite

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Fatal error :There was an error while processing a database query
« Reply #12 on: June 01, 2005, 06:49:15 am »

Ok, I have no switched my forum to IPB from phpBB.. However after bridging I am once again running into a database error. Sorry for the trouble, I just don't understand this stuff.. so your help is greatly appreciated  :)

here is the error msg I am getting in debug mode

Code: [Select]
While executing query "SELECT id as user_id, name as user_name, mgroup FROM `*****`.ibf_members WHERE id='2' AND password='******'" on 0

mySQL error: Unknown column 'password' in 'where clause'
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Fatal error :There was an error while processing a database query
« Reply #13 on: June 01, 2005, 09:03:49 am »

do as kegobeer suggested. There's nothing more to say in this thread. Locking it.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.