Announcement

#1 2022-07-20 17:49:06

GregP
Member
2021-07-24
8

PHP errors with 8.0 or 8.1, works with PHP 7.4

Good morning!

I have been running Pwigo for years with no problems under PHP 7.4.
My provider just let me know that it is approaching end-of-life later this year, and that I should upgrade to a more current version.  I have done no customization, it is a stock Pwigo system.

I have tried both PHP 8.0 and 8.1, and I get all sorts of error messages like this:

-------------------------------------------
Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /webroot/g/r/gregp001/pyros/www/gallery/include/functions_html.inc.php on line 534

(this message repeats about 100 times)

Warning: Cannot modify header information - headers already sent by (output started at /webroot/g/r/gregp001/pyros/www/gallery/include/functions_html.inc.php:534) in /webroot/g/r/gregp001/pyros/www/gallery/include/page_header.php on line 94

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /webroot/g/r/gregp001/pyros/www/gallery/include/template.class.php on line 911
-----------------------------

Environment
    Piwigo 12.3.0 Check for upgrade
    Operating system: Linux
    PHP: 7.4.27 (Show info) [2022-07-20 08:38:26]
    MySQL: 5.5.5-10.4.22-MariaDB-1:10.4.22+maria~buster [2022-07-20 15:38:26]
    Graphics Library: ImageMagick 6.9.12-34
    Cache size 1523.05 Mo   calculated 2 minutes ago Refresh

-----------------------------
Piwigo URL: https://www.pyros.com/gallery
-----------------------------

Is this a known issue?  Any ideas as to how to fix it?  I went back to PHP 7.4 until we can get this figured out!

Thanks for any ideas,
Greg

Offline

 

#2 2022-07-20 18:03:07

erAck
Only trying to help
2015-09-06
2031

Re: PHP errors with 8.0 or 8.1, works with PHP 7.4

Yes it's known, the forum is full of those if you searched. Yours are deprecated messages only though, but anyway, PHP 8.1 won't work and 8.0 sometimes doesn't. Use PHP 7.4, it's still supported with security fixes until end of November, see https://www.php.net/supported-versions.php


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

Offline

 

#3 2022-07-20 18:29:11

GregP
Member
2021-07-24
8

Re: PHP errors with 8.0 or 8.1, works with PHP 7.4

Thank you!  At least I'm not alone!
Hopefully this will get fixed before the end of November!  :^)
Greg

Offline

 

#4 2022-07-26 10:18:31

Matthieulp
Piwigo Team
2021-04-30
15

Re: PHP errors with 8.0 or 8.1, works with PHP 7.4

Hello,

We are currently working of php8 and php8.1 compatibility for Piwigo 13
see->[Github] Piwigo issue #1693

Have a good day :)

Offline

 

#5 2022-07-26 17:08:43

GregP
Member
2021-07-24
8

Re: PHP errors with 8.0 or 8.1, works with PHP 7.4

Thank you for letting me know - I'm looking forward to the release!
I appreciate all your hard work on Piwigo,
Greg

Offline

 

Board footer

Powered by FluxBB

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