Solved XF::logError does not work in CLI

This topic has been solved
V

vbresults

Guest
It's expecting an IP that is not there during a CLI command run:

File: src/XF/Error.php:151
PHP:

$this->app->request()->getIp()

InvalidArgumentException: Invalid string IP: in */src/XF/Util/Ip.php:17
Stack trace:
#0 */src/XF/Error.php(151): XF\Util\Ip::stringToBinary('')
#1 */src/XF.php(261): XF\Error->logException(Object(ErrorException), false, '', true)
#2 /src/addons//XFRM/Job/*(24): XF::logException(Object(ErrorException), false, '', true)
#3...
Click to expand...

Read more

Continue reading...