美文网首页我爱编程
PHP 7.1.0安装Zabbix 3.0.7问题处理

PHP 7.1.0安装Zabbix 3.0.7问题处理

作者: 南山丶暮云 | 来源:发表于2018-04-07 18:28 被阅读0次

    Anon well formed numeric value encountered [zabbix.php:21→ require_once() →ZBase->run() →ZBase->processRequest() →CView->getOutput() → include() → make_status_of_zbx() →CFrontendSetup->checkRequirements() →CFrontendSetup->checkPhpMemoryLimit() → str2mem()ininclude/func.inc.php:410]Anon well formed numeric value encountered [zabbix.php:21→ require_once() →ZBase->run() →ZBase->processRequest() →CView->getOutput() → include() → make_status_of_zbx() →CFrontendSetup->checkRequirements() →CFrontendSetup->checkPhpPostMaxSize() → str2mem()ininclude/func.inc.php:410]Anon well formed numeric value encountered [zabbix.php:21→ require_once() →ZBase->run() →ZBase->processRequest() →CView->getOutput() → include() → make_status_of_zbx() →CFrontendSetup->checkRequirements() →CFrontendSetup->checkPhpUploadMaxFilesize() → str2mem()ininclude/func.inc.php:410]

    网上查了一下,这是因为PHP 7.1.7类型强化,处理方法是找到Zabbix WEB目录下include/func.inc.php文件,修改它

    sed-i'/$last= strtolower(substr($val, -1));/a$val= substr($val,0,-1);'func.inc.php

    问题依然未能解决,后来查看了一下func.inc.php代码,跳转到报错的位置#410,通过网上的解决方法分析,应该是val这个变量类型问题,在403行后添加一行$val = substr($val,0,-1); 保存修改后的文件,重新访问zabbix web界面即可

    相关文章

      网友评论

        本文标题:PHP 7.1.0安装Zabbix 3.0.7问题处理

        本文链接:https://www.haomeiwen.com/subject/vogyhftx.html