Hello,
admin area stopped working after upgrade to version 14.0
browser shows
Parse error: syntax error, unexpected '?', expecting variable (T_VARIABLE) in /volume1/web/include/smarty/libs/plugins/modifier.number_format.php on line 22
Do you have any idea?
Thanks
Martin
Offline
Hi marfig,
Can you tell us what is your PHP version?
Offline
Smarty (the template engine Piwigo uses) uses the "nullable types" feature of PHP, introduced in PHP 7.1. If you have PHP 7.0 it can explain the problem.
In the mean time Piwigo 14.0.0 says the minimum required PHP version is 7.0 which seems to be wrong right now.
Offline
I just pushed a new requirement for the upgrade system saying upgrading to Piwigo 14 requires PHP 7.1 :
$conf['required_php_versions_for'] = array( '14' => '7.1', '12' => '7.0', '2.10' => '5.3', '2.7' => '5.2', '1.4' => '5.0', '1.0' => '4.0', );
Offline
Hi plg,
thank you for a quick response, hm.. surprise (for me) it's
Current PHP version: 7.0.33
In the meantime I started a backup restore, which will take some time. After this, I will upgrade php and can try again.
Thanks
Martin
Offline
Thank you for reporting this bug. I guess you're still on Debian 9
Offline
You're welcome and thanks for a such quick reaction. I's actually running on Synology NAS, where somehow php version is defined manually, what I found so far.
Offline
@plg thank you so much!! My lovely gallery is back again
Offline
After some investigation, I realized keeping the compatibility with PHP 7.0 was quite easy, so I made it [Github] Piwigo commit ef5e2a68
In the future, maybe for Piwigo 15, we will certainly increase the minimum PHP required version to 8.0 but for Piwigo 14, let's keep 7.0 only.
Offline