•  » Announcements
  •  » Piwigo 15.2.0 : better user activation and many fixes

#1 2024-12-19 17:44:18

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13883

Piwigo 15.2.0 : better user activation and many fixes

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

Offline

#2 2024-12-19 20:05:25

aberkvam
Member
2018-03-07
13

Re: Piwigo 15.2.0 : better user activation and many fixes

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.

Offline

#3 2024-12-19 20:19:37

windracer
Member
St. Pete, FL
2014-12-28
503

Re: Piwigo 15.2.0 : better user activation and many fixes

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

Offline

#4 2024-12-19 20:40:29

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13883

Re: Piwigo 15.2.0 : better user activation and many fixes

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.

Offline

#5 2024-12-19 20:51:21

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13883

Re: Piwigo 15.2.0 : better user activation and many fixes

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)

Offline

#6 2024-12-19 22:27:29

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13883

Re: Piwigo 15.2.0 : better user activation and many fixes

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.

Offline

#7 2024-12-20 00:28:45

Linty
Piwigo Team
2023-11-03
14

Re: Piwigo 15.2.0 : better user activation and many fixes

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!


“An adventure between passion and logic.”

Offline

#8 2024-12-20 07:29:14

aberkvam
Member
2018-03-07
13

Re: Piwigo 15.2.0 : better user activation and many fixes

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

Offline

#9 2024-12-20 11:22:40

sandor
Member
2024-06-05
2

Re: Piwigo 15.2.0 : better user activation and many fixes

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...

Offline

#10 2024-12-20 12:06:32

Linty
Piwigo Team
2023-11-03
14

Re: Piwigo 15.2.0 : better user activation and many fixes

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 [Forum, topic 34069] Piwigo 15.3.0 : same as 15.2.0 but compatible with PHP 7

Last edited by Linty (2024-12-20 12:08:09)


“An adventure between passion and logic.”

Offline

  •  » Announcements
  •  » Piwigo 15.2.0 : better user activation and many fixes

Board footer

Powered by FluxBB

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