forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 miscellaneous => Topic started by: Iamhere on November 06, 2019, 02:21:13 pm

Title: Album page not showing when not logged in using php 7.3
Post by: Iamhere on November 06, 2019, 02:21:13 pm
My album thumbnail page is blank when I'm not logged in. When I'm logged in it works like a charm.

www.mywebsite.com/photographs/thumbnails.php?album=2

I see no errors on my error log.
Running php 7.3(when running 5.6 it works)
On coppermine 1.6.07

SJ
Title: Re: Album page not showing when not logged in using php 7.3
Post by: Iamhere on November 06, 2019, 02:27:43 pm
And I did a version check and there were no issues
Title: Re: Album page not showing when not logged in using php 7.3
Post by: ron4mac on November 06, 2019, 02:57:58 pm
The link to your site is not working.
It is very likely that you need to run the update.
<your_site_url>/update.php

[EDIT]
On second thought the issue is likely your theme. Try the included Curve theme to see if it behaves the same way.
Title: Re: Album page not showing when not logged in using php 7.3
Post by: Iamhere on November 06, 2019, 03:22:32 pm
On second thought the issue is likely your theme. Try the included Curve theme to see if it behaves the same way.


Crud, that's what it is. Works fine on curve.

Thanks
Title: Re: Album page not showing when not logged in using php 7.3
Post by: Iamhere on November 06, 2019, 03:23:58 pm

Crud, that's what it is. Works fine on curve.

Thanks

I say crud because my old one was mobile friendly

Thanks again
Title: Re: Album page not showing when not logged in using php 7.3
Post by: ron4mac on November 06, 2019, 03:42:36 pm
You can fix the old one. In the theme.php file for the theme, replace all mysql_xxx with cpg_db_xxx.
Title: Re: Album page not showing when not logged in using php 7.3
Post by: Iamhere on November 06, 2019, 04:02:03 pm
I'm using the plug in Theme switch (theme_switch): v1.0 on simple theme

I searched themes/simple/theme.php and couldn't find a mysql_ or mysqli_
Title: Re: Album page not showing when not logged in using php 7.3
Post by: ron4mac on November 06, 2019, 04:20:01 pm
The 2 variations of simple theme that I could find both had 2 occurrences of mysql_num_rows in their theme.php files. Those must be changed to cpg_db_num_rows.
Title: Re: Album page not showing when not logged in using php 7.3
Post by: Iamhere on November 06, 2019, 05:54:28 pm
I've searched theme.php several times and can't find mysql_

I must be doing something wrong, I'm looking in a down loaded yesterday cpg1.6.x-1.6.07/themes/sample/theme.php

I hate to ask this but at about what line number more or less in sample/theme.php?

Thanks again
Title: Re: Album page not showing when not logged in using php 7.3
Post by: ron4mac on November 06, 2019, 07:44:12 pm
The issue is in the simple (not sample) theme that you are/were using.
Title: Re: Album page not showing when not logged in using php 7.3
Post by: Iamhere on November 06, 2019, 08:26:48 pm
Sigh ... yep, that may be the issue

Thanks a again and again.
Title: Re: Album page not showing when not logged in using php 7.3
Post by: Iamhere on November 06, 2019, 08:35:47 pm
It works on mobile, thanks