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
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
There are multiple threads about PHP 8 and this was mentioned some times already. Piwigo isn't PHP 8 ready yet.
Offline
@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
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
Offline
@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
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
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
[Forum, topic 31410] Piwigo 12.0.0beta2 says version 12 will be PHP 8 compatible.
Offline
Hi,
Thank you for the answer. I didn't find this post. I'll wait for version 12 then.
Regards.
Xuo.
Offline