Hi!
Great thanx for this plugin is realy awsome. But I've got problem. I don' use ENLARGE IT and when t pressed on photo i have error like this:
While executing query "SELECT * FROM cpg14x_pictures WHERE approved = 'YES' ORDER BY RAND() LIMIT -1" 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 '-1' at line 1
If anybody can help me to solve this problem?? Any ideas?? I thougt that is because of my hosting - mysql but i tried on another one and its the same.
USER:
------------------
Array
(
[ID] => d7204a2e98252c67fc3717083e4bfa6c
[am] => 1
[lang] => polish
[liv] => Array
(
[0] => 10
[1] => 8
[2] => 7
[3] => 6
)
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_name] => admin
[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] => SELECT * FROM cpg14x_plugins (0s)
[3] => SELECT * FROM cpg14x_mod_slider (0s)
[4] => SELECT * FROM cpg14x_plugins (0s)
[5] => SELECT * FROM cpg14x_mod_imageflow (0s)
[6] => SELECT * FROM cpg14x_plugins (0s)
[7] => SELECT * FROM cpg14x_plugin_enlargeit (0s)
[8] => delete from `114_galeria`.cpg14x_sessions where time<1245090566 and remember=0; (0s)
[9] => delete from `114_galeria`.cpg14x_sessions where time<1243884566; (0s)
[10] => select user_id from `114_galeria`.cpg14x_sessions where session_id = 'f0382ffc8165d602979757bf5891614e' (0s)
[11] => select user_id as id, user_password as password from `114_galeria`.cpg14x_users where user_id=1 (0s)
[12] => SELECT u.user_id AS id, u.user_name AS username, u.user_password AS password, u.user_group+100 AS group_id FROM `114_galeria`.cpg14x_users AS u INNER JOIN `114_galeria`.cpg14x_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
[13] => SELECT user_group_list FROM `114_galeria`.cpg14x_users AS u WHERE user_id='1' and user_group_list <> ''; (0s)
[14] => 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)
[15] => SELECT group_name FROM cpg14x_usergroups WHERE group_id= 1 (0s)
[16] => update `114_galeria`.cpg14x_sessions set time='1245094166' where session_id = 'f0382ffc8165d602979757bf5891614e' (0s)
[17] => SELECT user_favpics FROM cpg14x_favpics WHERE user_id = 1 (0s)
[18] => SELECT name, value FROM cpg14x_config where name REGEXP '^plugin_displayfields_' (0s)
[19] => SELECT 1 FROM cpg14x_pms WHERE owner=1 (0s)
[20] => SELECT 1 FROM cpg14x_pms WHERE owner=1 AND showed=0 (0s)
[21] => SELECT * FROM cpg14x_mark_users WHERE user_id = 1 (0s)
[22] => SELECT * FROM cpg14x_mark_config (0s)
[23] => SELECT aid from cpg14x_pictures WHERE pid='6' LIMIT 1 (0s)
[24] => SELECT title,keyword from cpg14x_albums WHERE aid='11' (0s)
[25] => SELECT COUNT(*) from cpg14x_pictures WHERE ((aid='11' ) ) (0s)
[26] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, keywords, title, caption,hits,owner_id,owner_name from cpg14x_pictures WHERE ((aid='11' ) ) ORDER BY filename ASC (0s)
[27] => SELECT title,keyword from cpg14x_albums WHERE aid='11' (0s)
[28] => SELECT COUNT(*) from cpg14x_pictures WHERE ((aid='11' ) ) (0s)
[29] => SELECT * from cpg14x_pictures WHERE ((aid='11' ) ) ORDER BY filename ASC LIMIT 2 ,1 (0s)
[30] => SELECT * FROM cpg14x_plugin_active_search (0s)
[31] => DELETE FROM cpg14x_banned WHERE expiry < '2009-06-15 21:29:27' (0s)
[32] => SELECT * FROM cpg14x_banned WHERE (ip_addr='89.76.70.93' OR ip_addr='89.76.70.93' OR user_id=1) AND brute_force=0 (0s)
[33] => SELECT aid from cpg14x_pictures WHERE pid='6' LIMIT 1 (0s)
[34] => SELECT title,keyword from cpg14x_albums WHERE aid='11' (0s)
[35] => SELECT COUNT(*) from cpg14x_pictures WHERE ((aid='11' ) ) (0s)
[36] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, keywords, title, caption,hits,owner_id,owner_name from cpg14x_pictures WHERE ((aid='11' ) ) ORDER BY filename ASC (0s)
[37] => SELECT title,keyword from cpg14x_albums WHERE aid='11' (0s)
[38] => SELECT COUNT(*) from cpg14x_pictures WHERE ((aid='11' ) ) (0s)
[39] => SELECT * from cpg14x_pictures WHERE ((aid='11' ) ) ORDER BY filename ASC LIMIT 2 ,1 (0s)
[40] => SELECT title, comments, votes, category, aid FROM cpg14x_albums WHERE aid='11' LIMIT 1 (0s)
[41] => SELECT * FROM cpg14x_pictures WHERE approved = 'YES' ORDER BY RAND() LIMIT -1 (0s)
[42] => SELECT COUNT(*) FROM cpg14x_pictures WHERE approved = 'NO' (0s)
)
==========================
GET :
------------------
Array
(
[album] => random
[cat] => 0
[pos] => -6
)
==========================
POST :
------------------
Array
(
)
==========================
VERSION INFO :
------------------
PHP version: 5.2.0-8+etch15 - OK
------------------
mySQL version: 5.0.32-Debian_7etch10-log
------------------
Coppermine version: 1.4.24(stable)
==========================
Module: GD
------------------
GD Version: 2.0 or higher
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support: 1
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XPM Support:
XBM Support:
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.327 seconds - 43 queries in 0 seconds - Album set : ; Meta set: ;