Post a reply

Write your message and submit

Click in the dark area of the image to send your post.

Go back

Topic review (newest first)

Linty
2024-12-20 12:06:32

aberkvam wrote:

How do we get this fix?  Is there a new release (15.2.1) coming out?

Hello,

A new version of Piwigo is available with the following fixes topic:34069

sandor
2024-12-20 11:22:40

This is a good time to mention that the self_hosted version should allow a "php version" setting in the config file. On my server I have all the php versions installed from 7.1 to 8.4...

aberkvam
2024-12-20 07:29:14

How do we get this fix?  Is there a new release (15.2.1) coming out?

Linty
2024-12-20 00:28:45

Hello/Good evening,

First of all, I want to apologize for the inconvenience caused to users on PHP 7 with the latest version of Piwigo. Let me explain the issue and the solution.

In this update, I aimed to prevent a potential error that could occur for users on PHP 8.4, as described in this [Github] Piwigo issue #2294 . To address this, I had to reorganize certain session management functions by encapsulating them in a class that implements the SessionHandlerInterface.

Unfortunately, in PHP 7, this implementation causes a fatal error:

Code:

"Fatal error: Declaration of PwgSession::open must be compatible with SessionHandlerInterface::open".

This issue arises because, in versions of PHP prior to 8.0, the SessionHandlerInterface does not allow strict types (e.g., string, bool) in the method.

To resolve this and maintain compatibility with PHP 7, I created two separate files:
- pwgsession.class.php for PHP 8+ environments, with the required strict types.
- pwgsession_php7.class.php for PHP 7 environments, where the strict types have been removed from the method.

A php version check ensures that the correct file is loaded.

Please note that this is a temporary solution. Once PHP 8 becomes the minimum supported version for Piwigo, we will remove the PHP 7-specific implementation to simplify the codebase.

Thanks for your patience, feel free to ask if anything’s unclear!

plg
2024-12-19 22:27:29

plg wrote:

2) changed the required PHP version to 8.1 in the update system (will be back to 7.1 if we find the solution)

If you're in 15.1.0, this is what you will get if you open the update manager

https://sandbox.piwigo.com/i?/uploads/4/y/1/4y1zzhnrnw//2024/12/19/20241219222600-f3e7dac0-la.png

It will avoid many users to update and get stuck.

plg
2024-12-19 20:51:21

I confirm Piwigo 15.2.0 is broken with PHP 7.4. I have done 2 things for now:

1) notified Linty :-)
2) changed the required PHP version to 8.1 in the update system (will be back to 7.1 if we find the solution)

plg
2024-12-19 20:40:29

aberkvam wrote:

Getting the following error after updating:

Code:

Fatal error: Declaration of PwgSession::open(string $path, string $name): bool must be compatible with SessionHandlerInterface::open($save_path, $session_name) in include/functions_session.inc.php on line 15

Updated from 15.1.0 to 15.2.0.

This is related to [Github] Piwigo issue #2294 : the sessions mechanism was broken in PHP 8.4 and upcoming 9. I'm going to test it on PHP 7.4.

windracer
2024-12-19 20:19:37

Upgraded via admin console ... no issues.

Piwigo 15.2.0
Installed on 30 January 2017, 7 years 10 months 2 weeks 5 days ago
Operating system: Linux
PHP: 8.3.11 (Show info) [2024-12-19 14:19:03]
MySQL: 11.6.2-MariaDB-ubu2404 [2024-12-19 14:19:03]
Graphics Library: External ImageMagick 7.1.1-29
Cache size 48.78 Mo   calculated 1 year ago

aberkvam
2024-12-19 20:05:25

Getting the following error after updating:

Code:

Fatal error: Declaration of PwgSession::open(string $path, string $name): bool must be compatible with SessionHandlerInterface::open($save_path, $session_name) in /home/joyce/public_html/gallery/include/functions_session.inc.php on line 15

Updated from 15.1.0 to 15.2.0.

Used manual update process of changed files only.

Debian 11, PHP 7.4.33

Tried to go back to 15.1.0 using the changed files only package.  Didn’t work.  Had to delete the 15.2.0 completely (except the excluded directories) and install from piwigo-15.1.0.zip.  That got rid of the error.  Tried deleting and installing from piwigo-15.2.0.zip.  The error reappeared.

plg
2024-12-19 17:44:18

Second update for Piwigo 15. Many small bugs were fixed, including a deeper improvement on the user activation system by email. Now you can have longer validation period for user activation (3 days) compared to password reset (1 hour). And also... 22 languages were updated!

Warning added after first feedbacks: do not manually update to 15.2.0 if you're not on PHP 8 yet. On his side, the auto update manager will prevent you from updating.

Just so you know, more than 18k installations of Piwigo are running version 15. It's really time for you to update if you haven't done it yet.

https://sandbox.piwigo.com/i?/uploads/4/y/1/4y1zzhnrnw//2024/07/09/20240709141131-3103f0be-la.jpg
Background image by Harry Cooke on Pexels

Piwigo 15.2.0 release note

Board footer

Powered by FluxBB

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