•  » Requests
  •  » [resolved] Fail safe mode for updates

#1 2025-11-23 19:36:16

moberley
Member
2025-11-10
90

[resolved] Fail safe mode for updates

I have a reference in my personal plugin to the path constant defined by another plugin (Community) and when I ran the update that recently appeared on my 16.0.0RC3 install the process failed due to a PHP error of that constant not being defined.

I could rewrite my personal plugin to check the plugins table first but I wonder if there is a way for the update process to run in a fail safe manner relative to the other plugins, or at least the personal plugin?

Offline

 

#2 2025-11-24 06:18:28

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7329

Re: [resolved] Fail safe mode for updates

Hi :-)

Piwigo RC versions are for testing purposes only.

The update process in RC is for developers. ;-)


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#3 2025-11-24 07:08:30

moberley
Member
2025-11-10
90

Re: [resolved] Fail safe mode for updates

I am using the RC version for testing. I am trying to determine if Piwigo can be configured or extended to satisfy a particular use case so its not yet deployed in production.

I had done some plugin updates before but I hadn't noticed that the plugin being updated would deactivate meaning that in the case I observed its path constant was temporarily unavailable.

Does your statement mean that in the regular release version the built-in update process does not temporarily deactivate the plugin?

I have already rewritten my local-only plugins and the code I have in the personal plugin where this was an issue, but if that is a unique artifact of the development version then its irrelevant.

Offline

 

#4 2025-11-24 17:15:55

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7329

Re: [resolved] Fail safe mode for updates

Hi :-)

Thank you for the feedback, it is appreciated.

In minor version upgrades, plugins are not disabled.

In major version upgrades, plugins are disabled. the personal plugin as well, normally


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 
  •  » Requests
  •  » [resolved] Fail safe mode for updates

Board footer

Powered by FluxBB

github linkedin newsletter Piwigo.org © 2002-2026 · Contact