Highslide (Skip Intermediate Page and show full image ) - Page 12 Highslide (Skip Intermediate Page and show full image ) - Page 12
 

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

Highslide (Skip Intermediate Page and show full image )

Started by Sami, September 23, 2006, 05:10:47 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hein Traag

Post the info so i or a other supporter can take a look at it. Make sure to put *** in the places where you think database passwords are mentioned.

eka

Hi Hein,

Here's the critical error message:

"While executing query "SELECT * FROM cpg148_highslide_config" on 0

mySQL error: Table *****.cpg148_highslide_config' doesn't exist"


(I have used "*****" to represent my database password.)

Immediately following this message, there's mention of the file: "File: /home/photogr1/public_html/include/functions.inc.php - Line: 249 "



Also, the debug info that follows:

USER:
------------------
Array
(
    [ID] => 38a93fbde8bbbad25ce69026ba1284c4
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [0] => 1512
        )

)

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

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

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg148_filetypes; (0s)
    [1] => select * from cpg148_plugins order by priority asc; (0s)
    [2] => delete from `*****`.cpg148_sessions where time<1188620560 and remember=0; (0s)
    [3] => delete from `*****`.cpg148_sessions where time<1187414560; (0s)
    [4] => select user_id from `*****`.cpg148_sessions where session_id=md5("c1314f6216bec0106f042b43f954e1d2bcb8bea4b2a2ffef6400f82e0a963413"); (0s)
    [5] => SELECT session_id FROM `*****`.cpg148_sessions WHERE session_id=MD5('15c1fbe15aca5bd04c456f4ff0e0543ebcb8bea4b2a2ffef6400f82e0a963413') (0s)
    [6] => insert into `*****`.cpg148_sessions (session_id, user_id, time, remember) values ("858fbc0777b8c69e7a127cccc7955150", 0, "1188624160", 0); (0s)
    [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 cpg148_usergroups WHERE group_id in (3) (0s)
    [8] => SELECT group_name FROM  cpg148_usergroups WHERE group_id= 3 (0s)
    [9] => update `*****`.cpg148_sessions set time='1188624160' where session_id=md5('15c1fbe15aca5bd04c456f4ff0e0543ebcb8bea4b2a2ffef6400f82e0a963413'); (0s)
    [10] => SELECT * FROM cpg148_highslide_config (0s)
)

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

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

==========================
Page generated in 0.063 seconds - 11 queries in 0 seconds - Album set : ; Meta set: ;



Edit By Sami:
Put debug info to code block

eka

Hi Hein,

The error message mentioned cpg148.
Could this indicate the source of the problem ?
I had upgraded to 1.4.12 and it worked fine until I installed the highslide plug-in.


Just a thought...



Sami

did you using highslide before upgrade or this is the first time that you are using plugin ?
‍I don't answer to PM with support question
Please post your issue to related board

eka

Hi Sami,

I had uploaded Highslide, installed it, then uninstall, before I upgraded to cpg 1.4.12.


After upgrading to cpg 1.4.12, I tried to install the plugin again - and ran into the problem.





Sami

Okay then you didn't uninstall it properly at the first,
Use a mysql tool such as phpmyadmin and remove highslide_enable from XXX_config table of CPG
‍I don't answer to PM with support question
Please post your issue to related board

eka

Hi Sami,
OK.  I've removed the "highslide_enable" file from my ***_config table.

While doing this, I  noticed that all my tables has the prefix  cpg148.
Isn't this suppose to be cpg 1412  after upgrading?

After upgrading, I actually saw the "new" cpg files - I know because the theme colours were changed.
Isn't this an indication that the files were actually successfully uploaded?

Pse let me know what's next for me to do.

Thanks Sami for your help.




Sami

Your table prefix is fine , upgrade process doesn't need to change the table's prefix

Quote from: eka on September 01, 2007, 01:14:58 PM
After upgrading, I actually saw the "new" cpg files - I know because the theme colours were changed.
Isn't this an indication that the files were actually successfully uploaded?
if you were using a custom theme then yes , it means that you over write on your custom theme with original one that comes with CPG

Your next move would be
- Removing highslide from xxx_plugins table (by phpmyadmin)
- re-installing the plugin again
‍I don't answer to PM with support question
Please post your issue to related board

eka

Hi Sami,
You are a god-send!.
I followed your instructions and am now able to access all my cpg files.

Thank you once again !!

Now, I gotta go back to Vuud - I have a problem with cpmfetch - the image on my html page won't upload after I upgraded.


Thankssssss....


eka

Hi Sami,

I need help again.

I tried to reinstall the Highslide plugin via plugin manager.
A page appeared and said click button to install.
I did that and there was an error message.

When I tried to press "install" a second time, the same problem encountered earlier surfaced - there is this blank screen with the message:
"Critical error
There was an error while processing a database query"

What could be the problem? 

Sami

- First of all give me a link to your gallery
- Enable debug mode so you could see the actual DB error
‍I don't answer to PM with support question
Please post your issue to related board

eka

Hi Sami,

Here's the link to my website:  http://www.photograffs.com
(hope I understood what you mean).

Here's the debug info:

"USER:
------------------
Array
(
    [ID] => bc9c093262d726da656ddd2b1723978d
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [0] => 1686
            [1] => 1682
            [2] => 1684
            [3] => 1542
            [4] => 1535
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => photogr1
    [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 cpg148_filetypes; (0.084s)
    [1] => select * from cpg148_plugins order by priority asc; (0.003s)
    [2] => delete from `*****`.cpg148_sessions where time<1188736858 and remember=0; (0.001s)
    [3] => delete from `*****`.cpg148_sessions where time<1187530858; (0.006s)
    [4] => select user_id from `*****`.cpg148_sessions where session_id=md5("7a896934d7d8362dbccb725450f61ec4bcb8bea4b2a2ffef6400f82e0a963413"); (0.005s)
    [5] => select user_id as id, user_password as password from `*****`.cpg148_users where user_id=1 (0.013s)
    [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 `*****`.cpg148_users AS u INNER JOIN `*****`.cpg148_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0.021s)
    [7] => SELECT user_group_list FROM `*****`.cpg148_users AS u WHERE user_id='1' and user_group_list <> ''; (0.01s)
    [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 cpg148_usergroups WHERE group_id in (1) (0.006s)
    [9] => SELECT group_name FROM  cpg148_usergroups WHERE group_id= 1 (0.004s)
    [10] => update `*****`.cpg148_sessions set time='1188740458' where session_id=md5('7a896934d7d8362dbccb725450f61ec4bcb8bea4b2a2ffef6400f82e0a963413'); (0.006s)
    [11] => SELECT user_favpics FROM cpg148_favpics WHERE user_id = 1 (0.004s)
    [12] => DELETE FROM cpg148_banned WHERE expiry < '2007-09-02 21:40:59' (0.005s)
    [13] => SELECT * FROM cpg148_banned WHERE (ip_addr='165.21.155.76' OR ip_addr='116.14.84.102' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT COUNT(*) FROM cpg148_pictures WHERE approved = 'NO' (0s)
    [15] => SELECT value FROM cpg148_config WHERE name = 'theme' (0s)
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.4.1 - OK
------------------
mySQL version: 4.0.16
------------------
Coppermine version: 1.4.8(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.0.16
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/mysql/include/mysql
MYSQL_LIBS -L/usr/local/mysql/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
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/local/lib/php | .:/usr/local/lib/php
open_basedir | /home/photogr1/:/usr/lib/php:/usr/local/lib/php:/tmp:/var/tmp:/home/vdeck/tmp/:/usr/local/bin/mogrify:/usr/local/bin/convert:/usr/sbin/sendmail | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
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 | -1 | -1
upload_max_filesize | 5M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.282 seconds - 16 queries in 0.168 seconds - Album set : ; Meta set: ;"



Sami

- Post a test account so I could login
- I didn't ask for debug info , I said enable it so you could see the actual error instead of "There was an error while processing a database query"
‍I don't answer to PM with support question
Please post your issue to related board

eka

HI Sami,

Created test account:
username: ***
password: ***

I've enabled debug mode.

Thanks.

Edit by Sami:
Removed username/Password for security

Sami

Never post an admin account to public board !
You are using mysql 4.0.16 that doesn't support ENGINE option on table creation so you need to manually edit  schema.sql that comes with highslide package and remove ENGINE=MyISAM from creation query and then try to install the plugin
‍I don't answer to PM with support question
Please post your issue to related board

eka


eka

Hi Sami,

I did as you suggested, manually edited Schema.sql - deleted ENGINE=MyISAM - and then tried to install plugin.
It didn't work. Got the same error message   :(

Sami

‍I don't answer to PM with support question
Please post your issue to related board

eka

Sami,

I got this from the debug info:

USER:
------------------
Array
(
    [ID] => bc9c093262d726da656ddd2b1723978d
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [0] => 867
            [1] => 881
            [2] => 880
            [3] => 885
            [4] => 264
        )

)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => photogr1
    [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 cpg148_filetypes; (0s)
    [1] => select * from cpg148_plugins order by priority asc; (0s)
    [2] => delete from `*****`.cpg148_sessions where time<1188819725 and remember=0; (0.001s)
    [3] => delete from `*****`.cpg148_sessions where time<1187613725; (0.001s)
    [4] => select user_id from `*****`.cpg148_sessions where session_id=md5("993397a718ee53cb95c35f7aa5486157bcb8bea4b2a2ffef6400f82e0a963413"); (0s)
    [5] => select user_id as id, user_password as password from `*****`.cpg148_users where user_id=1 (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 `*****`.cpg148_users AS u INNER JOIN `*****`.cpg148_usergroups AS g ON u.user_group=g.group_id WHERE u.user_id='1' (0s)
    [7] => SELECT user_group_list FROM `*****`.cpg148_users AS u WHERE user_id='1' 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 cpg148_usergroups WHERE group_id in (1) (0s)
    [9] => SELECT group_name FROM  cpg148_usergroups WHERE group_id= 1 (0s)
    [10] => update `*****`.cpg148_sessions set time='1188823325' where session_id=md5('993397a718ee53cb95c35f7aa5486157bcb8bea4b2a2ffef6400f82e0a963413'); (0s)
    [11] => SELECT user_favpics FROM cpg148_favpics WHERE user_id = 1 (0s)
    [12] => DELETE FROM cpg148_banned WHERE expiry < '2007-09-03 20:42:05' (0s)
    [13] => SELECT * FROM cpg148_banned WHERE (ip_addr='165.21.155.69' OR ip_addr='116.14.67.135' OR user_id=1) AND brute_force=0 (0s)
    [14] => SELECT cid, name, description, thumb FROM cpg148_categories WHERE parent = ''  ORDER BY pos (0s)
    [15] => SELECT aid FROM cpg148_albums as a WHERE category>=10000 (0s)
    [16] => SELECT count(*) FROM cpg148_pictures as p, cpg148_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0s)
    [17] => SELECT cid, name, description, thumb FROM cpg148_categories WHERE parent = '1'  ORDER BY pos (0s)
    [18] => SELECT aid FROM cpg148_albums as a WHERE category = '0' (0s)
    [19] => SELECT count(*) FROM cpg148_albums as a WHERE 1 (0s)
    [20] => SELECT count(*) FROM cpg148_pictures as p LEFT JOIN cpg148_albums as a ON a.aid=p.aid WHERE 1 AND approved='YES' (0s)
    [21] => SELECT count(*) FROM cpg148_comments as c LEFT JOIN cpg148_pictures as p ON c.pid=p.pid LEFT JOIN cpg148_albums as a ON a.aid=p.aid WHERE 1 (0s)
    [22] => SELECT count(*) FROM cpg148_categories WHERE 1 (0s)
    [23] => SELECT sum(hits) FROM cpg148_pictures as p LEFT JOIN cpg148_albums as a ON p.aid=a.aid WHERE 1 (0s)
    [24] => SELECT COUNT(*) FROM cpg148_pictures WHERE approved = 'NO' (0s)
    [25] => SELECT count(*) FROM cpg148_albums as a WHERE category = '0' (0s)
    [26] => SELECT count(cpg148_albums.aid) FROM cpg148_pictures,cpg148_albums WHERE cpg148_pictures.aid = cpg148_albums.aid AND approved = 'YES'  GROUP  BY cpg148_pictures.aid (0s)
    [27] => SELECT *,cpg148_albums.title AS title,cpg148_albums.aid AS aid FROM cpg148_pictures,cpg148_albums WHERE cpg148_pictures.aid = cpg148_albums.aid AND approved = 'YES'  GROUP BY cpg148_pictures.aid ORDER BY cpg148_pictures.ctime DESC  LIMIT 0 ,9 (0s)
    [28] => SELECT count(*) from cpg148_comments where pid=1680 and msg_id!=0 (0s)
    [29] => SELECT count(*) from cpg148_comments where pid=1524 and msg_id!=0 (0s)
    [30] => SELECT count(*) from cpg148_comments where pid=1509 and msg_id!=0 (0s)
    [31] => SELECT count(*) from cpg148_comments where pid=1481 and msg_id!=0 (0s)
    [32] => SELECT count(*) from cpg148_comments where pid=1477 and msg_id!=0 (0s)
    [33] => SELECT count(*) from cpg148_comments where pid=1471 and msg_id!=0 (0s)
    [34] => SELECT count(*) from cpg148_comments where pid=1457 and msg_id!=0 (0s)
    [35] => SELECT count(*) from cpg148_comments where pid=1448 and msg_id!=0 (0s)
    [36] => SELECT count(*) from cpg148_comments where pid=1429 and msg_id!=0 (0s)
)

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

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

==========================
VERSION INFO :
------------------
PHP version: 4.4.1 - OK
------------------
mySQL version: 4.0.16
------------------
Coppermine version: 1.4.8(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.0.16
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/mysql/include/mysql
MYSQL_LIBS -L/usr/local/mysql/lib/mysql -lmysqlclient 
==========================
Module: zlib
------------------
ZLib Support enabled
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/local/lib/php | .:/usr/local/lib/php
open_basedir | /home/photogr1/:/usr/lib/php:/usr/local/lib/php:/tmp:/var/tmp:/home/vdeck/tmp/:/usr/local/bin/mogrify:/usr/local/bin/convert:/usr/sbin/sendmail | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
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 | -1 | -1
upload_max_filesize | 5M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.116 seconds - 37 queries in 0.002 seconds - Album set : ; Meta set: ;

eka

Hi Sami,
I tried again loading the higslide plugin.
It worked !

Thank you so much for the help and patience in setting things right.

Highslide is an excellent and wonderful feature, no doubt about it.

Thank you so much for that !!