ErrorException: A non-numeric value encountered - library/XenForo/Input.php:244
While this was triggered by an add-on; it is a change in behaviour from php 7.1 which affects XenForo_Input;
This is the cause;
The relevant line is;
Wrapping strval in intval, or replacing strval for intval fixes this.
Code:
#0 /var/www/html/library/XenForo/Input.php(244): XenForo_Application::handlePhpError(2, 'A non-numeric v...', '/var/www/html/...', 244, Array)
#1 /var/www/html/library/XenForo/Input.php(212): XenForo_Input::_doClean('unum', Array, '', 0)
#2 /var/www/html/library/XenForo/Input.php(411): XenForo_Input->filterSingle('renew_price', 'unum')
#3 /var/www/html/library/XenProduct/ControllerPublic/Product.php(669): XenForo_Input->filter(Array)
...
While this was triggered by an add-on; it is a change in behaviour from php 7.1 which affects XenForo_Input;
This is the cause;
Code:
["renew_price"] => string(0) ""
The relevant line is;
Code:
$data = strval($data) + 0;
Wrapping strval in intval, or replacing strval for intval fixes this.