plugin update through UI may perform the plugin update action of the previous version #2213

Closed
opened 2026-10-05 01:09:59 +02:00 by adam · 0 comments
Owner

Related to https://fr.piwigo.org/forum/viewtopic.php?id=31122

Let's take an example : you're running plugin SmartAlbums 14.a and you update it to 16.c with the Piwigo provided UI.

Image

Unfortunately we have discovered and understood that a powerful magic behind the opcache system prevents PHP from reloading the new maintain.class.php provided in the zip file. The result is that even after extracting SmartAlbums 16.c files (including the new maintain.class.php) the update action from the 14.a is actually performed 😢

We need to force Piwigo to reload it before using it.

Related to https://fr.piwigo.org/forum/viewtopic.php?id=31122 Let's take an example : you're running plugin SmartAlbums 14.a and you update it to 16.c with the Piwigo provided UI. <img width="912" height="368" alt="Image" src="https://github.com/user-attachments/assets/40fdd749-5312-4de0-ab24-eca9c2b9d556" /> Unfortunately we have discovered and understood that a powerful magic behind the opcache system prevents PHP from reloading the new `maintain.class.php` provided in the zip file. The result is that even after extracting SmartAlbums 16.c files (including the new `maintain.class.php`) the update action from the 14.a is actually performed 😢 We need to force Piwigo to reload it before using it. <!-- github-sync-id:4344013820 -->
adam closed this issue 2026-10-05 01:09:59 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#2213