Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Album page not showing when not logged in using php 7.3  (Read 9504 times)

0 Members and 1 Guest are viewing this topic.

Iamhere

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Posts: 11
    • Outdoor Update Pictures
Album page not showing when not logged in using php 7.3
« 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
Logged

Iamhere

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Posts: 11
    • Outdoor Update Pictures
Re: Album page not showing when not logged in using php 7.3
« Reply #1 on: November 06, 2019, 02:27:43 pm »

And I did a version check and there were no issues
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1445
Re: Album page not showing when not logged in using php 7.3
« Reply #2 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.
Logged

Iamhere

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Posts: 11
    • Outdoor Update Pictures
Re: Album page not showing when not logged in using php 7.3
« Reply #3 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
Logged

Iamhere

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Posts: 11
    • Outdoor Update Pictures
Re: Album page not showing when not logged in using php 7.3
« Reply #4 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
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1445
Re: Album page not showing when not logged in using php 7.3
« Reply #5 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.
Logged

Iamhere

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Posts: 11
    • Outdoor Update Pictures
Re: Album page not showing when not logged in using php 7.3
« Reply #6 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_
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1445
Re: Album page not showing when not logged in using php 7.3
« Reply #7 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.
« Last Edit: November 06, 2019, 04:29:39 pm by ron4mac »
Logged

Iamhere

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Posts: 11
    • Outdoor Update Pictures
Re: Album page not showing when not logged in using php 7.3
« Reply #8 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
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1445
Re: Album page not showing when not logged in using php 7.3
« Reply #9 on: November 06, 2019, 07:44:12 pm »

The issue is in the simple (not sample) theme that you are/were using.
« Last Edit: November 06, 2019, 08:03:11 pm by ron4mac »
Logged

Iamhere

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Posts: 11
    • Outdoor Update Pictures
Re: Album page not showing when not logged in using php 7.3
« Reply #10 on: November 06, 2019, 08:26:48 pm »

Sigh ... yep, that may be the issue

Thanks a again and again.
Logged

Iamhere

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Posts: 11
    • Outdoor Update Pictures
Re: Album page not showing when not logged in using php 7.3
« Reply #11 on: November 06, 2019, 08:35:47 pm »

It works on mobile, thanks
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 21 queries.