Open csdougliss opened 7 years ago
I can't reproduce it but it's most likely that I can't guess right combination :) But I see that PhpMath class isn't used by Zend when bcmath extension is enabled, so enabling bcmath in php could maybe solve the problem?
Related to #97
I can replicate with a new install of CE 1.9.3.x with _InchooPHP7 2.2.0 on PHP 7.1.13:
admin > CMS > Pages > Edit Page 'Home page' >click Save button > Warning: A non-numeric value encountered in .../lib/Zend/Locale/Math/PhpMath.php on line 94
To fix this, I edited lib/Zend/Locale/Math/PhpMath.php
// at line 92, insert the following
if (empty($op2)) {
$op2 = 0;
}
As suggested by @ivanweiler, installing bcmath removed the error:
yum --enablerepo=remi-php71 install php-bcmath
So there is no need to mess with core file.
This is with Magneto EE 1.14.3.6 running PHP 7.1 with Inchoo PHP 7 module installed - creating a new CMS page in Magento.