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: Help needed third website COPPERMINE to PHP 8 fails  (Read 283 times)

0 Members and 1 Guest are viewing this topic.

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Help needed third website COPPERMINE to PHP 8 fails
« on: October 05, 2021, 06:38:16 pm »

Hi All,

I have migrated two websites to PHP 8.0 and changed some PHP files to be compatible with PHP 8.0
It works for  2 websites.

However on 1 website I have an issue.
As soon as I change the cage.php (remove the get_magic_quotes_gpc) the page is empty.
No errors nothing (PHP error are on)

But when logged in as admin (login.php) all works !!!!

I really hope someone is able to help me out on this one..
Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: Help needed third website COPPERMINE to PHP 8 fails
« Reply #1 on: October 05, 2021, 06:50:49 pm »

It seems that this code in the index.php

  if (MODERATOR_MODE && in_array($aid, $USER_DATA['allowed_albums'])) {

had to be changed to

if (defined('MODERATOR_MODE') && MODERATOR_MODE && in_array($aid, $USER_DATA['allowed_albums'])) {
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 1732
Re: Help needed third website COPPERMINE to PHP 8 fails
« Reply #2 on: October 05, 2021, 06:53:59 pm »

link to site, please
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 1732
Re: Help needed third website COPPERMINE to PHP 8 fails
« Reply #3 on: October 05, 2021, 06:57:00 pm »

Pretty annoying that you are pointing our errors when you are not using the latest CPG version. That has already been corrected.
Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: Help needed third website COPPERMINE to PHP 8 fails
« Reply #4 on: October 05, 2021, 07:08:34 pm »

Yes I know it was corrected.
For some reason the unmodified (pre PHP 8.0) code worked correctly on www.wildelife-photos.net and not on www.aviationix.nl

Sorry for the confusion.
Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: Help needed third website COPPERMINE to PHP 8 fails
« Reply #5 on: October 05, 2021, 07:12:12 pm »

Made typo's in the URL..
Can't modify my topic it seems..

Yes I know it was corrected.
For some reason the unmodified (pre PHP 8.0) code worked correctly on www.wildlife-photos.net and not on www.aviationpix.nl

Sorry for the confusion.
Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4822
    • Windsurf.me
Re: Help needed third website COPPERMINE to PHP 8 fails
« Reply #6 on: October 05, 2021, 10:19:06 pm »

So are you fixed then?
Logged
It is a mistake to think you can solve any major problems just with potatoes.

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254
Re: Help needed third website COPPERMINE to PHP 8 fails
« Reply #7 on: October 06, 2021, 10:46:41 am »

Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 20 queries.