Album page not showing when not logged in using php 7.3 Album page not showing when not logged in using php 7.3
 

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

Album page not showing when not logged in using php 7.3

Started by Iamhere, November 06, 2019, 02:21:13 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Iamhere

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

Iamhere


ron4mac

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.

Iamhere

Quote from: ron4mac on November 06, 2019, 02:57:58 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

Iamhere

Quote from: Iamhere on November 06, 2019, 03:22:32 PM

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

Thanks

I say crud because my old one was mobile friendly

Thanks again

ron4mac

You can fix the old one. In the theme.php file for the theme, replace all mysql_xxx with cpg_db_xxx.

Iamhere

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_

ron4mac

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.

Iamhere

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

ron4mac

The issue is in the simple (not sample) theme that you are/were using.

Iamhere

Sigh ... yep, that may be the issue

Thanks a again and again.

Iamhere