Help needed third website COPPERMINE to PHP 8 fails Help needed third website COPPERMINE to PHP 8 fails
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Help needed third website COPPERMINE to PHP 8 fails

Started by altenae, October 05, 2021, 06:38:16 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

altenae

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..

altenae

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'])) {

ron4mac


ron4mac

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

altenae

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.

altenae

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.

phill104

It is a mistake to think you can solve any major problems just with potatoes.