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: error while processing a database query.  (Read 3666 times)

0 Members and 1 Guest are viewing this topic.

domestictuner

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
error while processing a database query.
« on: September 02, 2010, 05:54:19 am »

Hello, my Coppermine gallery has been working flawlessly up until today when I noticed this error,

There was an error while processing a database query.
Quote
While executing query "SELECT * FROM cpg_pictures WHERE approved = 'YES' ORDER BY RAND() LIMIT 8" on 0 mySQL error:
File: /home/domestic/public_html/ccclassics.org/gallery/include/functions.inc.php - Line: 250

I read through this thread and while not exactly the same, I wondered due to the randomness of it (i have not changed anything in monthes), if you would recommend the same fix...to contact my host.

Thanks, and here is my debug.

Code: [Select]
USER:
------------------
Array
(
    [ID] => 61edf9304b580d01a8dad898aeb17b62
    [am] => 1
    [lang] => english
)

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

    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 0
    [ufc_max] => 1
    [ufc_min] => 1
    [custom_user_upload] => 0
    [num_file_upload] => 10
    [num_URI_upload] => 0
    [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] => 1
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg_filetypes; (0s)
    [1] => select * from cpg_plugins order by priority asc; (0s)
    [2] => SELECT * FROM cpg_bridge (0s)
    [3] => SELECT user_id, user_password FROM `domestic_ccforum`.phpbb_sessions INNER JOIN `domestic_ccforum`.phpbb_users ON session_user_id = user_id WHERE session_id='6adfc4a8699aac5e0789c777fc7d2c58'; (0s)
    [4] => SELECT u.user_id AS id, u.username AS username, u.user_password AS password, u.group_id+100 AS group_id FROM `domestic_ccforum`.phpbb_users AS u INNER JOIN `domestic_ccforum`.phpbb_groups AS g ON u.group_id=g.group_id WHERE u.user_id='2' (0s)
    [5] => 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 cpg_usergroups WHERE group_id in (1) (0s)
    [6] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1 (0s)
    [7] => SELECT user_favpics FROM cpg_favpics WHERE user_id = 2 (0s)
    [8] => DELETE FROM cpg_banned WHERE expiry < '2010-09-01 23:41:24' (0s)
    [9] => SELECT * FROM cpg_banned WHERE (ip_addr='209.193.99.158' OR ip_addr='209.193.99.158' OR user_id=2) AND brute_force=0 (0s)
    [10] => SELECT cid, name, description, thumb FROM cpg_categories WHERE parent = ''  ORDER BY pos (0s)
    [11] => SELECT aid FROM cpg_albums as a WHERE category>=10000 (0s)
    [12] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0s)
    [13] => SELECT aid FROM cpg_albums WHERE category = 3 (0s)
    [14] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 3 (0s)
    [15] => SELECT count(*) FROM cpg_albums as a WHERE category = '3' (0s)
    [16] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=3 ORDER BY a.pos LIMIT 0,7 (0s)
    [17] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (30, 31, 14, 17, 15, 18, 16)GROUP BY a.aid (0.002s)
    [18] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='660' (0s)
    [19] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='674' (0s)
    [20] => SELECT aid FROM cpg_albums WHERE category = 6 (0s)
    [21] => SELECT count(*) FROM cpg_pictures as p, cpg_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 6 (0s)
    [22] => SELECT count(*) FROM cpg_albums as a WHERE category = '6' (0s)
    [23] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=6 ORDER BY a.pos LIMIT 0,2 (0s)
    [24] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (20, 29)GROUP BY a.aid (0.001s)
    [25] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg_pictures WHERE pid='432' (0s)
    [26] => SELECT aid FROM cpg_albums as a WHERE category = '0' (0s)
    [27] => SELECT count(*) FROM cpg_albums as a WHERE 1 (0s)
    [28] => SELECT count(*) FROM cpg_pictures as p LEFT JOIN cpg_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0s)
    [29] => SELECT count(*) FROM cpg_comments as c LEFT JOIN cpg_pictures as p ON c.pid=p.pid LEFT JOIN cpg_albums as a ON a.aid=p.aid WHERE 1 (0s)
    [30] => SELECT count(*) FROM cpg_categories WHERE 1 (0s)
    [31] => SELECT sum(hits) FROM cpg_pictures as p LEFT JOIN cpg_albums as a ON p.aid=a.aid WHERE 1 (0.001s)
    [32] => SELECT COUNT(*) FROM cpg_pictures WHERE approved = 'NO' (0s)
    [33] => SELECT count(*) FROM cpg_albums as a WHERE category = '0' (0s)
    [34] => SELECT a.aid, a.title, a.description, category, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg_albums as a LEFT JOIN cpg_pictures as p ON a.thumb=p.pid WHERE category=0 ORDER BY a.pos LIMIT 0,2 (0s)
    [35] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg_albums AS a  LEFT JOIN cpg_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (1, 41)GROUP BY a.aid (0s)
    [36] => SELECT * FROM cpg_pictures WHERE approved = 'YES'  ORDER BY RAND() LIMIT 8 (0s)
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 5.2.14 - OK
------------------
mySQL version: 5.0.91-community
------------------
Coppermine version: 1.4.25(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.34 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
------------------
module doesn't exist
==========================
Module: zlib
------------------
module doesn't exist
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |
==========================
email
------------------
Directive | Local Value | Master Value |  |  |  |  |  |  |  |
==========================
Size and Time
------------------
Directive | Local Value | Master Value |  |  |  |  |  |  |  |
==========================
Page generated in 0.056 seconds - 37 queries in 0.004 seconds - Album set : ; Meta set: ;
« Last Edit: September 02, 2010, 01:21:54 pm by Jeff Bailey »
Logged

domestictuner

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: error while processing a database query.
« Reply #1 on: September 02, 2010, 05:55:36 am »

I apologize, here is the thread I read regarding another's issue.
http://forum.coppermine-gallery.net/index.php/topic,53645.msg260997.html
Logged

Nibbler

  • Guest
Re: error while processing a database query.
« Reply #2 on: September 02, 2010, 10:03:06 am »

There have been some improvements in Coppermine 1.5 that should help with this issue. Upgrading may well solve the problem.
Logged

domestictuner

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: error while processing a database query.
« Reply #3 on: September 03, 2010, 12:39:15 am »

problem solved, it was on the host end. I know I should update but am worried about losing photos. I haven't sat down and read through everything that i would need to do. can you link me a place to start?
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 21 queries.