coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: Flipper01 on January 23, 2004, 06:48:04 PM

Title: There was an error while processing a database query
Post by: Flipper01 on January 23, 2004, 06:48:04 PM
When I want to upload my images to a specified album I get the error:
There was an error while processing a database query

Does anyone know what my problem is and how to solve it??
Title: There was an error while processing a database query
Post by: Nibbler on January 23, 2004, 07:12:43 PM
That is a very general message, we need more information before we can help you. Please turn on debug mode in the config, repeat the error and post the full error message. It is also a good idea to give us a link, and also a test account with which we can duplicate the problem for ourselves. If you do this you will get a much better response and your problem will be resolved more quickly.

Thankyou.
Title: Error mesage:
Post by: Flipper01 on January 23, 2004, 07:27:50 PM
While executing query "SELECT DISTINCT a.aid as aid, a.title as title, c.name as cname FROM cpg11d_albums as a, cpg11d_categories as c WHERE a.category = c.cid AND a.category < '10000' ORDER BY title" on 0

mySQL error: Can't create/write to file '/root/tmp/#sql_80c_0.MYI' (Errcode: 13)


File: /home/ibn/website/fotoalbum/cpg1.2.0final/include/functions.inc.php - Line: 105
Title: There was an error while processing a database query
Post by: Joachim Müller on January 24, 2004, 11:10:42 AM
turn silly_safe_mode on for a start (refer to the documentation that comes with coppermine how to do this).

GauGau
Title: There was an error while processing a database query
Post by: Flipper01 on January 24, 2004, 02:10:24 PM
I've tried a lot of things, but I keep getting an error :(

Only this time:
QuoteWhile executing query "SELECT aid, IF(user_name IS NOT NULL, CONCAT('(', user_name, ') ', title), CONCAT(' - ', title)) AS title FROM cpg11d_albums AS a LEFT JOIN cpg11d_users AS u ON category = (10000 + user_id) ORDER BY title"

mySQL error: Can't create/write to file '/root/tmp/#sql_80c_0.MYI' (Errcode: 13)
Title: There was an error while processing a database query
Post by: Joachim Müller on January 24, 2004, 02:16:56 PM
"MYI" is the actual file name of your mySQL database (do not try to fiddle with the file unless you really know what you're doing).
Instead, take a look at the repair tools of mySQL, seems as if your mySQL database is broken: http://www.mysql.com/doc/search.php?q=repair&from=%2Fdoc%2Fen%2Findex.html&lang=en

GauGau
Title: There was an error while processing a database query
Post by: Flipper01 on January 24, 2004, 03:25:31 PM
I think I found the problem... I didn't install GD on my server  :oops:

I'll ask the administrator if he can do this and then I'll trie it again..
Title: Error after adding 2nd album
Post by: Flipper01 on January 28, 2004, 05:41:33 PM
I'm totally confused, I've tried to install coppermine several times, but it keeps getting jammed.. :(

The last thing I tried was installing cpg1.2, I created 1 album and uploaded some pictures, no problem. Then I created a 2nd album en tried to batch upload some more pics, but then I got this error:
QuoteWhile executing query "SELECT DISTINCT a.aid as aid, a.title as title, c.name as cname FROM cpg11d_albums as a, cpg11d_categories as c WHERE a.category = c.cid AND a.category < '10000' ORDER BY title" on 0

mySQL error: Can't create/write to file '/root/tmp/#sql_80c_0.MYI' (Errcode: 13)

I really hope someone can help me with this cause I've spend lots of hours to install GD, imagemagick and cpg and really want it to work with me now.
Title: There was an error while processing a database query
Post by: Joachim Müller on January 28, 2004, 08:39:50 PM
you asked the very same question on another thread, so I moved your new thread to the existing one.

GauGau
Title: There was an error while processing a database query
Post by: hyperion on January 28, 2004, 11:25:22 PM
Have you verified that MySQL is functioning correctly outside of CPG?
Title: There was an error while processing a database query
Post by: Flipper01 on January 28, 2004, 11:43:15 PM
Quote from: "hyperion"Have you verified that MySQL is functioning correctly outside of CPG?
I am running phpBB (http://w3.frw.rug.nl/ibn/leden/phpBB2/) and that seems to work fine, I also have some other programs using MySQL on my website (http://w3.frw.rug.nl/ibn/index.php) and they work fine to..
Title: There was an error while processing a database query
Post by: Joachim Müller on January 29, 2004, 07:58:11 AM
did you try the repair commands?

GauGau
Title: There was an error while processing a database query
Post by: Flipper01 on January 29, 2004, 10:56:19 AM
Quote from: "gaugau"did you try the repair commands?

GauGau
Yes I did. but it didn't work..