Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP7 error: Notice - A non well formed numeric value encountered #11603

Closed
canajun2eh opened this issue Apr 9, 2017 · 3 comments
Closed

PHP7 error: Notice - A non well formed numeric value encountered #11603

canajun2eh opened this issue Apr 9, 2017 · 3 comments

Comments

@canajun2eh
Copy link

See this forum topic:
[(https://forum.piwik.org/t/non-well-formed-numeric-value-encountered-upon-upgrading-to-3-0-2/23314)]

When using PHP7, the above error is posted. The incorrect code exists even in Piwik 2.14.3 .

The fix, which works for all versions of PHP, is to add the following line
$v_memory_limit = substr($v_memory_limit, 0, -1); // drop G, M, or K suffix

In Piwik 2.14.3, the above line should be added following line 1838 of vendor/piwik/decompress/libs/PclZip/pclzip.lib.php

In Piwik 2.17.1 and later versions, the above line should be added following line 1789 of vendor/piwik/decompress/libs/PclZip/pclzip.lib.php

I can't tell you where the line should be added in Piwik versions between 2.14.3 and 2.17.1

@sgiehl
Copy link
Member

sgiehl commented Apr 9, 2017

We recommend to update to Piwik 3. This error should be fixed there.

@Findus23
Copy link
Member

Findus23 commented Apr 9, 2017

It was fixed in matomo-org/component-decompress#9 and was also mentioned in #11335
See also #11351

@sgiehl
Copy link
Member

sgiehl commented Apr 9, 2017

@canajun2eh feel free to create a PR for 2.x-dev so it would be fixed in a new release of 2.x LTS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants