Critical error - There was an error while processing a database query. Critical error - There was an error while processing a database query.
 

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]

Main Menu

Critical error - There was an error while processing a database query.

Started by chris556, October 21, 2006, 05:23:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

chris556

My gallery was working fine until http://www.freemysql.net/ went offline. They are back online, and all my sites that used databases on that server are working except for coppermine. Under "There was an error while processing a database query" is shows:
While executing query "SELECT * FROM cpg149_pictures WHERE approved = 'YES' AND aid IN (6)  ORDER BY RAND() LIMIT 8" on 0

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


Here is the Debug Info:
USER:
------------------
Array
(
    [ID] => e19994193f0f8ff88608015d1aad0f0a
    [am] => 1
    [lang] => english
    [theme] => classic
    [liv] => Array
        (
            [0] => 49
            [1] => 50
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => chris
    [groups] => Array
        (
            [0] => 1
        )

    [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] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg149_filetypes; (0.029s)
    [1] => select * from cpg149_plugins order by priority asc; (0.028s)
    [2] => delete from `christian`.cpg149_sessions where time<1161396743 and remember=0; (0.029s)
    [3] => delete from `christian`.cpg149_sessions where time<1160190743; (0.029s)
    [4] => select user_id from `christian`.cpg149_sessions where session_id=md5("d1d7ffde6373b20c4800d766a825686616b7dedb0f874a4203ffd0e689c32f7c"); (0.027s)
    [5] => select user_id as id, user_password as password from `christian`.cpg149_users where user_id=1 (0.029s)
    [6] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `christian`.cpg149_users AS u INNER JOIN `christian`.cpg149_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.029s)
    [7] => SELECT user_group_list FROM `christian`.cpg149_users AS u WHERE user_id='1' and user_group_list <> ''; (0.029s)
    [8] => 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 cpg149_usergroups WHERE group_id in (1) (0.03s)
    [9] => SELECT group_name FROM  cpg149_usergroups WHERE group_id= 1 (0.027s)
    [10] => update `christian`.cpg149_sessions set time='1161400343' where session_id=md5('d1d7ffde6373b20c4800d766a825686616b7dedb0f874a4203ffd0e689c32f7c'); (0.032s)
    [11] => SELECT user_favpics FROM cpg149_favpics WHERE user_id = 1 (0.03s)
    [12] => DELETE FROM cpg149_banned WHERE expiry < '2006-10-21 03:12:23' (0.027s)
    [13] => SELECT * FROM cpg149_banned WHERE (ip_addr='24.167.238.226' OR ip_addr='24.167.238.226' OR user_id=1) AND brute_force=0 (0.027s)
    [14] => SELECT aid FROM cpg149_albums WHERE category = 4 (0.028s)
    [15] => SELECT cid FROM cpg149_categories WHERE parent = '4' (0.028s)
    [16] => SELECT name, parent FROM cpg149_categories WHERE cid = '4' (0.027s)
    [17] => SELECT cid, name, parent FROM cpg149_categories WHERE cid = '3' (0.027s)
    [18] => SELECT cid, name, description, thumb FROM cpg149_categories WHERE parent = '4'  ORDER BY pos (0.028s)
    [19] => SELECT aid FROM cpg149_albums as a WHERE category = '4' (0.031s)
    [20] => SELECT COUNT(*) FROM cpg149_pictures WHERE approved = 'NO' (0.029s)
    [21] => SELECT count(*) FROM cpg149_albums as a WHERE category = '4' (0.027s)
    [22] => SELECT a.aid, a.title, a.description, category, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg149_albums as a LEFT JOIN cpg149_pictures as p ON a.thumb=p.pid WHERE category=4 ORDER BY a.pos LIMIT 0,1 (0.038s)
    [23] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg149_albums AS a  LEFT JOIN cpg149_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (6)GROUP BY a.aid (0.031s)
    [24] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg149_pictures WHERE pid='60' (0.034s)
    [25] => SELECT COUNT(*) from cpg149_pictures WHERE approved = 'YES' AND aid IN (6)  (0.029s)
    [26] => SELECT * FROM cpg149_pictures WHERE approved = 'YES' AND aid IN (6)  ORDER BY RAND() LIMIT 8 (0.028s)
)

==========================
GET :
------------------
Array
(
    [cat] => 4
)

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

==========================
VERSION INFO :
------------------
PHP version: 5.1.6 - OK
------------------
mySQL version: 4.1.21-standard
------------------
Coppermine version: 1.4.9(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.21
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.1.2
Linked Version 1.2.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
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 | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 102M | 102M
post_max_size | 102M | 102M
==========================
Page generated in 1.24 seconds - 27 queries in 0.787 seconds - Album set : AND aid IN (6) ; Meta set: AND aid IN (6) ;


Here are the notices:
/include/functions.inc.php
Warning line 483: sprintf() [function.sprintf]: Too few arguments


Could someone tell me why I get the "There was an error while processing a database query" error? Thanks!

Joachim Müller

Don't post debug_output unless requested. Don't enable notices_display unless you know what notices mean - they are a feature meant for devs only.
The error message you got comes from your mysql database, it's not a coppermine error. Ask the people who host your database. The error message usually means that there's no space left on the device. Details: http://dev.mysql.com/doc/refman/4.1/en/cannot-create.html