forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 upgrading => Topic started by: writingthefuture on March 22, 2019, 06:51:13 am

Title: Full size picture window error
Post by: writingthefuture on March 22, 2019, 06:51:13 am
Hi, when I click on a picture on my gallery site then click again to view the full size, I receive this message:
"ERROR
The selected album/file does not exist!

File: /home/arcticmo/public_html/themes/R3/theme.php - Line: 64"

If I open my theme.php script and go to line 64, I find this:
"            cpg_die(ERROR, $lang_errors['non_exist_ap'], __FILE__, __LINE__);"
Which I think is just code allowing my site to display an error message on full size pictures if needed to, and not an actual error (correct me if I'm wrong), because I haven't had this problem up until this week and I've had my site for exactly a year now, so it doesn't tell me the cause of the problem or a solution like it's supposed to.

I've looked through the FAQ, documentation, and forums, and I've tried adding "<script type="text/javascript" src="scripts.js"></script>" to the template script to see if it'd help because the script just had "{JAVASCRIPT}", I've tried viewing in an admin account, a guest account, and a test account (which I'll give information to below), I've tried viewing in another browser and computer, I've tried viewing multiple pictures within different albums, I've tried adding debug mode which told me to look at line 64 but I have no idea how to read the detailed debug info or if it helps, and I almost upgraded but then I saw my site did that automatically, yet I still receive the same error message. I don't know what else to do.

Can anyone tell me why I'm receiving this error message and how to resolve it? My site is http://www.arcticmonkeysandmore.com/, I have CPG version 1.6.05, if anyone needs a test account they can log in with the username and password "ffh" then with the username "testsunny" and password "test", I'm using Google Chrome on a Windows 10 computer, I have ad and pop-up blocking programs installed but they don't affect my site, and I have about 22.91gb left to use. I hope this is enough information. Thank you in advance.
Title: Re: Full size picture window error
Post by: ron4mac on March 22, 2019, 02:16:12 pm
Your theme is not compatible with CPG 1.6.x.  If it was completely working with 1.6.x, it must have gotten changed somehow.

In the theme.php file of your theme, replace any occurrence of mysql_xxx_xxx with cpg_db_xxx_xxx.

Title: Re: Full size picture window error
Post by: writingthefuture on March 23, 2019, 12:21:50 am
It worked! Thank you so much! ;D
Title: Re: Full size picture window error
Post by: Tano*87 on July 01, 2020, 09:53:45 pm
Guys I've upgraded to the latest version and now the fullsize pop up is not showing the real dimension.

It just sais :

Error
The selected file/albums doesn't exist.

I went to the theme.php to fix as suggested above but it doesn't have any of that, same for the other themes, even the upgraded ones.
Title: Re: Full size picture window error
Post by: ron4mac on July 01, 2020, 10:30:30 pm
It may be the fault of a plugin that is not compatible with CPG 1.6.  Go to the plugin manager and disable some plugins to see if any are causing the problem.
Title: Re: Full size picture window error
Post by: ron4mac on July 01, 2020, 10:35:37 pm
Checked your site ...
Seems to work okay with the water_drop theme
http://www.breatheonbritney.it/gallery/?theme=water_drop
Title: Re: Full size picture window error
Post by: ron4mac on July 02, 2020, 01:33:31 am
Could you please let others know how your problem was resolved?
Title: Re: Full size picture window error
Post by: Tano*87 on July 04, 2020, 06:51:42 pm
Actually I downgraded because there was no reason for it to not work properly.
Title: Re: Full size picture window error
Post by: phill104 on July 12, 2020, 05:52:51 pm
Please be aware that we can only support 1.6.x.