码迷,mamicode.com
首页 > Web开发 > 详细

PHP 7.1.0安装Zabbix 3.0.7问题处理

时间:2017-01-11 14:51:03      阅读:365      评论:0      收藏:0      [点我收藏+]

标签:zabbix php 7.1.0

A non 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() in include/func.inc.php:410]

A non 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() in include/func.inc.php:410]

A non 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() in include/func.inc.php:410]


安装完成之后启动就出现这个问题,这个是因为PHP 7.1.0类型强化,处理方法也很简单找到Zabbix WEB目录下include/func.inc.php文件

sed -i ‘/$last = strtolower(substr($val, -1));/aval($val,0,strlen($val)-1);\‘ /home/www/zabbix/include/func.inc.php

注意一下文件路径即可。


本文出自 “枫林晚” 博客,请务必保留此出处http://fengwan.blog.51cto.com/508652/1890948

PHP 7.1.0安装Zabbix 3.0.7问题处理

标签:zabbix php 7.1.0

原文地址:http://fengwan.blog.51cto.com/508652/1890948

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!