Announcement

#1 2022-09-19 19:38:39

grantiago
Member
2022-04-04
14

php 8.1 errors.

Hello,

I'm not complaining. I appreciate all your hard work. I am looking for a php 8.1 roadmap for piwigo.

I'm getting ready for the end of life for php 7.4. I have a copy of  Piwigo 13.0.0RC3 installed on my production server using 7.4 for testing. All well, other than many of the extensions give a fatal error. Lightbox for instance.

I installed a second copy of 13.0.0RC3 on my dev. server running php 8.1.

Code:

Piwigo 13.0.0RC3 Check for upgrade
Installed on 17 September 2022, 1 day ago
Operating system: Linux ubunutu 20
PHP: 8.1.10 (Show info) [2022-09-19 11:02:43]
MySQL: 8.0.30-0ubuntu0.20.04.2 [2022-09-19 11:02:43]
Graphics Library: ImageMagick 6.9.10-23
Cache size N/A   never calculated Refresh
Activated plugin list4
Admin Tools
Language Switch
LocalFiles Editor
VideoJS

I can't upload photos as admin.

Code:

Undefined array key 0 in /include/ws_functions/pwg.images.php on line 1480

from my apache log.

The upload window never finishes. The select album field doesn't fill
All the photos end up as orphans.

From the orphan page if I select a photo -> add to album
the album field select or type doesn't fill. I type in an existing album.
-> apply action - results in:

Code:

Fatal error: Uncaught mysqli_sql_exception: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND (storage_category_id IS NULL OR storage_category_id != category_id)' at line 6 in /include/dblayer/functions_mysqli.inc.php:132 Stack trace: #0 /include/dblayer/functions_mysqli.inc.php(132): mysqli->query() #1 /admin/include/functions.php(2138): pwg_query() 
#2 /admin/batch_manager_global.php(179): move_images_to_categories() #3 /admin/batch_manager.php(814): include('...') 
#4 /admin.php(320): include('...') #5 {main} thrown in /include/dblayer/functions_mysqli.inc.php on line 132

here is a pastebin from my apache log.
[link]https://pastebin.com/C1qK7hf8[/link]

I already see lots of webhosts are advising users of the upcoming switch to php  8.1. It's less than two months away :-()

Hope we are on our way to solving this. Thank you.

Offline

 

#2 2022-09-19 21:52:03

erAck
Only trying to help
2015-09-06
2026

Re: php 8.1 errors.

Does it work with PHP 8.0? PHP 8.1 imposes further breaking changes. PHP 8.0 will get security support until November 2023, see https://www.php.net/supported-versions.php


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

Offline

 

#3 2022-09-20 02:06:43

grantiago
Member
2022-04-04
14

Re: php 8.1 errors.

Thank you for the quick reply. My dev server didn't like the quick switch to php 8.0 at all. I'm travelling for the next three days. When I return and have some localhost time, I will go through enabling 8.0 and trying piwigo 13 again. thank you.

Offline

 

#4 2022-09-20 17:13:37

grantiago
Member
2022-04-04
14

Re: php 8.1 errors.

Good morning. Piwigo 13.0.0RC3 runs fine on php 8.0.
is there a roadmap for 13.0.0RC3? It would save others some time.

with php8.0 I'm still seeing some (minor) errors:

With the lightbox plugin v12a enabled the following fatal error when viewing photos.

Code:

Fatal error: Uncaught TypeError: implode(): Argument #1 ($pieces) must be of type array, string given in /plugins/lightbox/lightbox.php:31 Stack trace: 
#0 /plugins/lightbox/lightbox.php(31): implode() 
#1 /plugins/lightbox/main.inc.php(18): include('...') 
#2 /include/functions_plugins.inc.php(214): lightbox_plugin() 
#3 /include/category_default.inc.php(146): trigger_change() 
#4 /index.php(306): include('...') 
#5 {main} thrown in /plugins/lightbox/lightbox.php on line 31

It is 2022 and the world is expecting a lightbox.

without the lightbox, viewing albums, I get the warning:

Code:

Warning: Undefined array key "IS_IN_CADDIE" in /_data/templates_c/m1cwcz^1d54a4466e4abcf9a99f903cff09ea1ca388ec12_0.file.public_controller.tpl.php on line 174

another reminder you are going to have to install the gd library for the new php 8.0 version. -> "GD library is missing"

Thanks.

Offline

 

#5 2023-10-31 10:38:43

TheDoc
Member
Munich / Germany
2015-10-18
173

Re: php 8.1 errors.

And now we have reached end of life for PHP 8.0...

Since this is the only thread the search function brought up: Would it be trail & error to upgrade my PHP Version or are there already any experiences with 8.x?

Thanks!
Thomas

Offline

 

#6 2023-10-31 11:00:17

gueba
Member
2021-12-31
55

Re: php 8.1 errors.

TheDoc wrote:

And now we have reached end of life for PHP 8.0...

and we have Piwigo 13.8.0 :-)

Runs without Errors, Warnings etc. :

Server-Umgebung

    Piwigo 13.8.0 Prüfen, ob eine neue Version verfügbar ist.
    Installiert auf 28 Januar 2017, vor 6 Jahre 9 Monate 2 Tage
    Betriebssystem: Linux
    PHP: 8.1.22 (Info anzeigen) [2023-10-31 10:53:10]
    MySQL: 10.5.22-MariaDB-1:10.5.22+maria~ubu2004-log [2023-10-31 10:53:10]
    Grafikbibliothek: ImageMagick 6.9.10-23
    Größe des Cache 0 Mo   berechnet vor 1 Monat Aktualisieren

Liste der aktivierten Plugins 8

    Export Data
    LocalFiles Editor
    OpenStreetMap
    Panoramas
    Show Photo Identifier
    Tag Groups
    Take A Tour of Your Piwigo
    VideoJS


There may still be problems with various plugins, though ....

hth

Offline

 

#7 2023-10-31 16:06:39

reox
Member
2023-03-06
11

Re: php 8.1 errors.

for me, 13.8 works with PHP 8.2 - if you allow for some deprecation warnings.
I quickly tested the Beta of 14 and there no more deprecation warnings are visible. But I haven't tested with the full sprectrum of plugins.

Offline

 

#8 2023-10-31 23:22:29

krist
Member
2016-01-30
53

Re: php 8.1 errors.

I tested 14.0 beta3 on php8.2, but needs to resort photo order for it to work.

Offline

 

#9 2023-11-01 11:13:48

erAck
Only trying to help
2015-09-06
2026

Re: php 8.1 errors.

That is neither a problem specific to Piwigo 14 nor PHP 8, but due to rank being a keyword now since MySQL 8.


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

Offline

 

Board footer

Powered by FluxBB

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