Announcement

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

grantiago
Member
2022-04-04
12

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
1575

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
12

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
12

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

 

Board footer

Powered by FluxBB

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