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: Hubo un error al procesar la consulta.  (Read 3909 times)

0 Members and 1 Guest are viewing this topic.

locoman

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Hubo un error al procesar la consulta.
« on: October 17, 2008, 07:07:34 am »

Hola
hace un par de dias empezó a salir este error en mi galeria

Error crítico
Hubo un error al procesar la consulta.

no puedo hacer nada en mi galeria lo unico que pude hacer es activar el modo debug y ver que errores son los que me estan causando esto, aqui les dejo:

Code: [Select]
While executing query "SELECT count(cpg14x_albums.aid) FROM cpg14x_pictures,cpg14x_albums WHERE cpg14x_pictures.aid = cpg14x_albums.aid AND approved = 'YES' AND cpg14x_pictures.aid NOT IN ('61','40','62','34','77','76','45','58','105','59','42','41','43','44','116','117','74','75','48','113','63','52','86','35','108','33','83','110','67','79','32','30','46','111','53','56','55','70','115','80','78','13','29','66','20','54','22','23','64','2) GROUP  BY cpg14x_pictures.aid" 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 ''2) GROUP  BY cpg14x_pictures.aid' at line 1

INFORMACION DE DEBUG:

Code: [Select]
USER:
------------------
Array
(
    [ID] => b5b38878bb495860a5612724b2d0d2e1
    [am] => 1
    [lang] => spanish
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 2
    [user_name] => Klo
    [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 cpg14x_filetypes; (0s)
    [1] => select * from cpg14x_plugins order by priority asc; (0s)
    [2] => delete from `coper`.cpg14x_sessions where time<1224215678 and remember=0; (0s)
    [3] => delete from `coper`.cpg14x_sessions where time<1223009678; (0s)
    [4] => select user_id from `coper`.cpg14x_sessions where session_id=md5("435d14761e11bc24a4a9d5701dac6e0ac868ce99ca98342914066591fe5d786b"); (0s)
    [5] => select user_id as id, user_password as password from `coper`.cpg14x_users where user_id=2 (0s)
    [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 `coper`.cpg14x_users AS u INNER JOIN `coper`.cpg14x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='2' (0s)
    [7] => SELECT user_group_list FROM `coper`.cpg14x_users AS u WHERE user_id='2' and user_group_list <> ''; (0s)
    [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 cpg14x_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg14x_usergroups WHERE group_id= 1 (0s)
    [10] => update `coper`.cpg14x_sessions set time='1224219278' where session_id=md5('435d14761e11bc24a4a9d5701dac6e0ac868ce99ca98342914066591fe5d786b'); (0s)
    [11] => SELECT user_favpics FROM cpg14x_favpics WHERE user_id = 2 (0s)
    [12] => DELETE FROM cpg14x_banned WHERE expiry < '2008-10-17 04:54:38' (0s)
    [13] => SELECT * FROM cpg14x_banned WHERE (ip_addr='190.42.173.130' OR ip_addr='190.42.173.130' OR user_id=2) AND brute_force=0 (0s)
    [14] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = ''  ORDER BY pos (0.001s)
    [15] => SELECT aid FROM cpg14x_albums WHERE category = 2 (0s)
    [16] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 2 (0s)
    [17] => SELECT count(*) FROM cpg14x_albums as a WHERE category = '2' (0s)
    [18] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_albums as a LEFT JOIN cpg14x_pictures as p ON a.thumb=p.pid WHERE category=2 ORDER BY a.pos LIMIT 0,16 (0s)
    [19] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg14x_albums AS a  LEFT JOIN cpg14x_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (112, 107, 106, 102, 103, 100, 98, 101, 99, 96, 94, 71, 88, 1, 89, 118)GROUP BY a.aid (0s)
    [20] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='2186' (0s)
    [21] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='2056' (0s)
    [22] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='2023' (0s)
    [23] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='1971' (0s)
    [24] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='1812' (0s)
    [25] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='1738' (0s)
    [26] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='1080' (0s)
    [27] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='1477' (0s)
    [28] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='26' (0s)
    [29] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='1700' (0s)
    [30] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = '2'  ORDER BY pos (0s)
    [31] => SELECT aid FROM cpg14x_albums WHERE category = 3 (0s)
    [32] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 3 (0s)
    [33] => SELECT count(*) FROM cpg14x_albums as a WHERE category = '3' (0s)
    [34] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_albums as a LEFT JOIN cpg14x_pictures as p ON a.thumb=p.pid WHERE category=3 ORDER BY a.pos LIMIT 0,16 (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 cpg14x_albums AS a  LEFT JOIN cpg14x_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (114, 109, 104, 97, 95, 93, 87, 85, 84, 73, 72, 68, 65, 60, 57, 49)GROUP BY a.aid (0s)
    [36] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='1864' (0s)
    [37] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='1414' (0s)
    [38] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='1380' (0s)
    [39] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='1232' (0s)
    [40] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='1141' (0s)
    [41] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='993' (0s)
    [42] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='916' (0s)
    [43] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='805' (0s)
    [44] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='720' (0s)
    [45] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='625' (0s)
    [46] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = '3'  ORDER BY pos (0s)
    [47] => SELECT aid FROM cpg14x_albums WHERE category = 4 (0s)
    [48] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 4 (0s)
    [49] => SELECT count(*) FROM cpg14x_albums as a WHERE category = '4' (0s)
    [50] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_albums as a LEFT JOIN cpg14x_pictures as p ON a.thumb=p.pid WHERE category=4 ORDER BY a.pos LIMIT 0,4 (0s)
    [51] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg14x_albums AS a  LEFT JOIN cpg14x_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (51, 4, 16, 69)GROUP BY a.aid (0s)
    [52] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='129' (0s)
    [53] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg14x_pictures WHERE pid='316' (0s)
    [54] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = '4'  ORDER BY pos (0s)
    [55] => SELECT aid FROM cpg14x_albums as a WHERE category>=10000 (0s)
    [56] => SELECT count(*) FROM cpg14x_pictures as p, cpg14x_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0s)
    [57] => SELECT cid, name, description, thumb FROM cpg14x_categories WHERE parent = '1'  ORDER BY pos (0s)
    [58] => SELECT aid FROM cpg14x_albums as a WHERE category = '0' (0s)
    [59] => SELECT count(*) FROM cpg14x_albums as a WHERE 1 (0s)
    [60] => SELECT count(*) FROM cpg14x_pictures as p LEFT JOIN cpg14x_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0s)
    [61] => SELECT count(*) FROM cpg14x_comments as c LEFT JOIN cpg14x_pictures as p ON c.pid=p.pid LEFT JOIN cpg14x_albums as a ON a.aid=p.aid WHERE 1 (0s)
    [62] => SELECT count(*) FROM cpg14x_categories WHERE 1 (0s)
    [63] => SELECT sum(hits) FROM cpg14x_pictures as p LEFT JOIN cpg14x_albums as a ON p.aid=a.aid WHERE 1 (0s)
    [64] => SELECT COUNT(*) FROM cpg14x_pictures WHERE approved = 'NO' (0s)
    [65] => SELECT count(cpg14x_albums.aid) FROM cpg14x_pictures,cpg14x_albums WHERE cpg14x_pictures.aid = cpg14x_albums.aid AND approved = 'YES' AND cpg14x_pictures.aid NOT IN ('61','40','62','34','77','76','45','58','105','59','42','41','43','44','116','117','74','75','48','113','63','52','86','35','108','33','83','110','67','79','32','30','46','111','53','56','55','70','115','80','78','13','29','66','20','54','22','23','64','2) GROUP  BY cpg14x_pictures.aid (0s)
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.4.7 - OK
------------------
mySQL version: 5.0.45-log
------------------
Coppermine version: 1.4.16(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
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 4.1.11
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.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/local/lib/php-4.4.7/lib/php | .:/usr/local/lib/php-4.4.7/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | wwwuser@cgi.yourhostingaccount.com | wwwuser@cgi.yourhostingaccount.com
sendmail_path | /usr/sbin/sendmail -t -i  | /usr/sbin/sendmail -t -i
SMTP | mail.yourhostingaccount.com | mail.yourhostingaccount.com
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 | 10M | 10M
post_max_size | 11M | 11M
==========================
Page generated in 0.381 seconds - 66 queries in 0.001 seconds - Album set : AND aid NOT IN ('61','40','62','34','77','76','45','58','105','59','42','41','43','44','116','117','74','75','48','113','63','52','86','35','108','33','83','110','67','79','32','30','46','111','53','56','55','70','115','80','78','13','29','66','20','54','22','23','64','2); Meta set: AND cpg14x_pictures.aid NOT IN ('61','40','62','34','77','76','45','58','105','59','42','41','43','44','116','117','74','75','48','113','63','52','86','35','108','33','83','110','67','79','32','30','46','111','53','56','55','70','115','80','78','13','29','66','20','54','22','23','64','2);

Espero que alguien pueda darme una mano con este problema
se lo agradecere.
saludos
Logged

Fabricio Ferrero

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 1996
  • From San Juan, Argentina, to the World!
    • http://fabricioferrero.com/
Re: Hubo un error al procesar la consulta.
« Reply #1 on: October 17, 2008, 05:03:45 pm »

Logged
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.