@tuxmaster opened this issue on February 12th 2017

PHP 7.1 using FPM. OS CentOS 7.3 After update the ReferrersManager plugin to 3.0.2 open the plugin page the follow warning was shown:

WARNING: /var/www/piwik/html/vendor/piwik/decompress/libs/PclZip/pclzip.lib.php(1797): Notice - A non well formed numeric value encountered - Piwik 3.0.1 - Please report this message in the Piwik forums: http://forum.piwik.org (please do a search first as it might have been reported already)

@Findus23 commented on February 12th 2017

As the error seems to occur in this line: https://github.com/piwik/component-decompress/blob/master/libs/PclZip/pclzip.lib.php#L1797 : What does PHP return for ini_get('memory_limit') on your server?

@tuxmaster commented on February 12th 2017


@Findus23 commented on February 12th 2017

I think I found the problem: $v_memory_limit is a string similar to "128M". $last is then the last character in lowercase (so in this case m). But in line 1797 the string "128M" (instead of the integer 128) is multiplied with 1048576 to convert it to bytes. This works, but since PHP 7.1 results in the notice A non well formed numeric value encountered.

See https://3v4l.org/bQpGA

@Findus23 commented on February 12th 2017

And it seems like I am not the first to notice https://github.com/piwik/component-decompress/pull/9

@mattab commented on February 20th 2017

fixed in piwik/component-decompress#9

This issue was closed on February 20th 2017
Powered by GitHub Issue Mirror