Announcement

#1 2021-03-07 02:31:37

Serge D
Member
US
2014-07-15
383

Piwigo and PHP 8 testing

Hello

I am testing my sites for PHP 8

Problem 1. First immediate problem is reliance on get_magic_quotes_gpc in include/common.inc.php on line 20. This function was deprecated as of php 7.4 (https://www.php.net/manual/en/function. … es-gpc.php) and is first thing to consider for fixing.

Fix: adjust above line with
if( !function_exists("get_magic_quotes_gpc") )

Last edited by Serge D (2021-03-07 02:55:23)

Offline

 

#2 2021-03-07 02:53:39

Serge D
Member
US
2014-07-15
383

Re: Piwigo and PHP 8 testing

Problem 2: fatal error: uncaught typeerror: unsupported operand types: string - int in include/template.class.php:1635
deeper in is reference to include/template.class.php(842): scriptloader->get_footer_scripts()

it is caused by {get_combined_scripts load='footer'} in theme's footer.tpl

Offline

 

#3 2021-03-07 12:10:21

erAck
Only trying to help
2015-09-06
2075

Re: Piwigo and PHP 8 testing

There are multiple threads about PHP 8 and this was mentioned some times already. Piwigo isn't PHP 8 ready yet.


Running Piwigo at https://erack.net/gallery/

Offline

 

#4 2021-03-07 22:15:59

Serge D
Member
US
2014-07-15
383

Re: Piwigo and PHP 8 testing

@erAck, I understand that it is not officially supported.
Being PWG user for many many years, I am able to fix issues as they come. But I do simply look for help with some of them like inside Smarty or it's plugins which is beyond my comfort level.
PHP 8 is out in the wild and more and more hosting providers offer it as a choice.
WordPress migration went without any issues other day. I am half way through with PWG, I think.

Search is not always works in the forum but I am glad to look more. If you know a place where issue 2 is mentioned, I will gladly follow your link.

Offline

 

#5 2021-03-08 13:34:45

flop25
Piwigo Team
2006-07-06
7037

Re: Piwigo and PHP 8 testing

hi all

thanks for the feedback Serge! Could you please write your findings in our github, so we can discuss/track them etc? Thank you very much


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#6 2021-03-08 18:08:47

Serge D
Member
US
2014-07-15
383

Re: Piwigo and PHP 8 testing

@flop25
I do see issue 1 is actually was fixed back in Jan. Who knows what else is cooking.
As we are pursuing PHP 8, can such changes be promoted and released more proactively?

https://github.com/Piwigo/Piwigo/pull/1282/commits

Offline

 

#7 2021-03-16 19:35:54

Serge D
Member
US
2014-07-15
383

Re: Piwigo and PHP 8 testing

Hi
Any thoughts on my last comment before we invest more time into compatibility validation?
If it would be in 11.4, when do you plan to release it?

Offline

 

#8 2021-08-14 17:33:25

xuo
Member
2021-08-14
10

Re: Piwigo and PHP 8 testing

Hi,

Do you have any idea when Piwigo will be php8 compatible. As I'm using Mageia8, I can't use it anymore. I've switched to Lychee but I feel Piwigo easier to use.

Regards.

Xuo.

Offline

 

#9 2021-08-14 18:28:50

erAck
Only trying to help
2015-09-06
2075

Re: Piwigo and PHP 8 testing

[Forum, topic 31410] Piwigo 12.0.0beta2 says version 12 will be PHP 8 compatible.


Running Piwigo at https://erack.net/gallery/

Offline

 

#10 2021-08-14 18:39:05

xuo
Member
2021-08-14
10

Re: Piwigo and PHP 8 testing

Hi,

Thank you for the answer. I didn't find this post. I'll wait for version 12 then.

Regards.

Xuo.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact