#1 2016-12-30 03:12:31

Serge D
Member
US
2014-07-15
384

PHP 7.1 and template.class.php error

Hi

I tried to enable PHP 7.1 today and run into problem in template.class.php

you would see something like

Warning: A non-numeric value encountered in .../include/template.class.php on line 1791

This version of PHP is more strict with left/right values math expressions.
Ex: '' + 0 would cause warning above

Fix is quite trivial and seems to work in my hotpatch

{code}    $ret = intval($s1->load_mode) - intval($s2->load_mode);
{/code}

Piwigo version: 2.8.4
PHP version: 7.1
MySQL version: 5.6

Last edited by Serge D (2016-12-30 21:43:30)

Offline

 

#2 2016-12-30 14:37:19

flop25
Piwigo Team
2006-07-06
7037

Re: PHP 7.1 and template.class.php error

Hi
thx Could you post on https://github.com/Piwigo/Piwigo/issues/ so we can remember that one, please?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2016-12-30 18:26:06

Serge D
Member
US
2014-07-15
384

Re: PHP 7.1 and template.class.php error

Offline

 

#4 2016-12-30 19:36:19

flop25
Piwigo Team
2006-07-06
7037

Re: PHP 7.1 and template.class.php error

Thx :)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

Board footer

Powered by FluxBB

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