Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: critical error on lastcomm, mostview ecc  (Read 4706 times)

0 Members and 1 Guest are viewing this topic.

technozeus

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
    • ilfra.it
critical error on lastcomm, mostview ecc
« on: January 17, 2008, 01:20:20 pm »

Hi to all, I have a critical error display most viewed images, last commented, mostrated ecc...

Code: [Select]
While executing query "SELECT c.name as cname
FROM cpg14x_categories c
WHERE c.cid = " 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 3

I don't know how cid is empty ???

this is the debug information

Code: [Select]
USER:
------------------
Array
(
    [ID] => 00ced696a084cc1f75d3038eee65e28a
    [am] => 1
    [lang] => italian
    [liv] => Array
        (
            [0] => 1126
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => ***
    [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; (0.002s)
    [1] => select * from cpg14x_plugins order by priority asc; (0.001s)
    [2] => delete from `***`.cpg14x_sessions where time<1200568456 and remember=0; (0.002s)
    [3] => delete from `***`.cpg14x_sessions where time<1199362456; (0.001s)
    [4] => select user_id from `***`.cpg14x_sessions where session_id=md5("***"); (0.001s)
    [5] => select user_id as id, user_password as password from `my0118`.cpg14x_users where user_id=1 (0.001s)
    [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 `***`.cpg14x_users AS u INNER JOIN `***`.cpg14x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.002s)
    [7] => SELECT user_group_list FROM `***`.cpg14x_users AS u WHERE user_id='***' and user_group_list <> ''; (0.001s)
    [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) (0.001s)
    [9] => SELECT group_name FROM  cpg14x_usergroups WHERE group_id= 1 (0.001s)
    [10] => update `***`.cpg14x_sessions set time='1200572056' where session_id=md5('***'); (0.001s)
    [11] => SELECT description from cpg14x_albums WHERE aid='toprated' (0.001s)
    [12] => SELECT user_favpics FROM cpg14x_favpics WHERE user_id = 1 (0.002s)
    [13] => DELETE FROM cpg14x_banned WHERE expiry < '2008-01-17 12:14:17' (0.001s)
    [14] => SELECT * FROM cpg14x_banned WHERE (ip_addr='62.101.98.214' OR ip_addr='62.101.98.214' OR user_id=1) AND brute_force=0 (0.001s)
    [15] => SELECT c.name as cname
FROM cpg14x_categories c
WHERE c.cid =  (0s)
    [16] => SELECT COUNT(*) FROM cpg14x_pictures WHERE approved = 'NO' (0.004s)
)

==========================
GET :
------------------
Array
(
    [album] => toprated
)

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

==========================
VERSION INFO :
------------------
PHP version: 5.1.6 - OK
------------------
mySQL version: 5.0.27
------------------
Coppermine version: 1.4.13(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:
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 5.0.27
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
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/share/pear | .:/usr/share/pear
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 | 8M | 8M
post_max_size | 8M | 8M
==========================
Page generated in 1.108 seconds - 17 queries in 0.023 seconds - Album set : ; Meta set: ;
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: critical error on lastcomm, mostview ecc
« Reply #1 on: January 17, 2008, 05:45:45 pm »

Post a link to your gallery for a start...
Logged

technozeus

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
    • ilfra.it
Re: critical error on lastcomm, mostview ecc
« Reply #2 on: January 17, 2008, 05:51:51 pm »

ok, sorry, I've the link in the personal info...
http://www.ilfra.it/photo/thumbnails.php?album=lastcom&cat=0 if you need, I do the debug option even for the user...
thanks.
Logged

technozeus

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
    • ilfra.it
Re: critical error on lastcomm, mostview ecc
« Reply #3 on: January 18, 2008, 04:15:38 pm »

I realize this thing: the problem there is only if i click on the mostview/lastcom/etc from the home page.
From the thumb page or displayimage page no problem.
So, the problem could be in the home page.
Could be a problem of Chaoticsoul theme? someone else that has this template has the same problem?
thanks.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: critical error on lastcomm, mostview ecc
« Reply #4 on: January 19, 2008, 01:26:46 pm »

Could be a problem of Chaoticsoul theme?
No, happens for the classic theme as well - see for yourself: http://www.ilfra.it/photo/thumbnails.php?album=toprated&cat=0&theme=classic
Logged

technozeus

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
    • ilfra.it
Re: critical error on lastcomm, mostview ecc
« Reply #5 on: January 19, 2008, 09:56:58 pm »

ok thanks, just view...
I think could be some mod of the page like the 3 last albums modified, but I don't know how ???
Logged

Nibbler

  • Guest
Re: critical error on lastcomm, mostview ecc
« Reply #6 on: January 19, 2008, 10:13:55 pm »

Almost certainly a mod/plugin, that code is not a part of Coppermine naturally. Review your changes.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.