"There was an error while processing a database query." "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

"There was an error while processing a database query."

Started by LightShow, September 03, 2006, 05:29:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LightShow

I accidently click on 'restore defaults' in the admin menu but then got this error (There was an error while processing a database query.).  I can no longer access anything.  I turned on the debug and got the following:

'Critical Error
While executing query "DELETE FROM cpg149_mod_online WHERE last_action < NOW() - INTERVAL  MINUTE" 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 '' at line 1



'Debug Info
USER:
------------------
Array
(
    [ID] => 2cfb2d8cdb52c3d5cd7aad1007ee06bf
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [0] => 2
        )

    [theme] => mac_ox_x
    [sort] => pd
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 0
    [user_name] => Guest
    [groups] => Array
        (
            [0] => 3
        )

    [group_quota] => 0
    [can_rate_pictures] => 0
    [can_send_ecards] => 0
    [can_post_comments] => 0
    [can_upload_pictures] => 0
    [can_create_albums] => 0
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [upload_form_config] => 0
    [num_file_upload] => 0
    [num_URI_upload] => 0
    [custom_user_upload] => 0
    [disk_max] => 0
    [disk_min] => 0
    [ufc_max] => 0
    [ufc_min] => 0
    [has_admin_access] => 0
    [group_name] => Guests
    [can_see_all_albums] => 0
    [group_id] => 3
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg149_filetypes; (0s)
    [1] => select * from cpg149_plugins order by priority asc; (0s)
    [2] => delete from `gallery2006`.cpg149_sessions where time<1157250225 and remember=0; (0s)
    [3] => delete from `gallery2006`.cpg149_sessions where time<1156044225; (0s)
    [4] => select user_id from `gallery2006`.cpg149_sessions where session_id=md5("86282e81e350314d5de6b563161ebd4a41b1e0ef92f37f418c5de5beb53af0e3"); (0s)
    [5] => SELECT session_id FROM `gallery2006`.cpg149_sessions WHERE session_id=MD5('137340fa7c9062c79ac4dadb33f36ab441b1e0ef92f37f418c5de5beb53af0e3') (0.002s)
    [6] => insert into `gallery2006`.cpg149_sessions (session_id, user_id, time, remember) values ("4dc37fa964650500ea3e602dd7b65f4c", 0, "1157253825", 0); (0.001s)
    [7] => 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 (3) (0s)
    [8] => SELECT group_name FROM  cpg149_usergroups WHERE group_id= 3 (0s)
    [9] => update `gallery2006`.cpg149_sessions set time='1157253825' where session_id=md5('137340fa7c9062c79ac4dadb33f36ab441b1e0ef92f37f418c5de5beb53af0e3'); (0s)
    [10] => DELETE FROM cpg149_mod_online WHERE last_action < NOW() - INTERVAL  MINUTE (0s)
)

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

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

==========================
Page generated in 0.085 seconds - 11 queries in 0.003 seconds - Album set : ; Meta set: ;

LightShow

I forgot to add.  Im using 1.4.9, and only mod installed was 'onstats'.  Site: http://www.imemoriesonline.com/gallery/

Sami

Run this query under phpmyadmin:

INSERT IGNORE INTO cpg149_config (name, value) VALUES ('mod_updates_duration', '10')

10 is interval in Minutes for onlinestat plugin (Duration to keep users listed as online for before they are assumed to have gone )
‍I don't answer to PM with support question
Please post your issue to related board