#1 2023-12-12 10:06:24

marfig
Member
2013-12-12
49

Admin area not working after upgrade

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

 

#2 2023-12-12 10:34:00

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

Re: Admin area not working after upgrade

Hi marfig,

Can you tell us what is your PHP version?

Offline

 

#3 2023-12-12 10:38:21

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

Re: Admin area not working after upgrade

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

 

#4 2023-12-12 10:40:23

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

Re: Admin area not working after upgrade

I just pushed a new requirement for the upgrade system saying upgrading to Piwigo 14 requires PHP 7.1 :

Code:

$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

 

#5 2023-12-12 10:43:06

marfig
Member
2013-12-12
49

Re: Admin area not working after upgrade

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

 

#6 2023-12-12 10:45:33

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

Re: Admin area not working after upgrade

Thank you for reporting this bug. I guess you're still on Debian 9

Offline

 

#7 2023-12-12 10:47:02

marfig
Member
2013-12-12
49

Re: Admin area not working after upgrade

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

 

#8 2023-12-12 12:24:38

marfig
Member
2013-12-12
49

Re: Admin area not working after upgrade

@plg thank you so much!! My lovely gallery is back again

Offline

 

#9 2023-12-13 15:10:34

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

Re: Admin area not working after upgrade

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

 

Board footer

Powered by FluxBB