vtiger 7.1安装错误已弃用:与类相同名称的方法在将来的PHP版本中将不再是构造函数 [英] vtiger 7.1 installation error Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP

查看:87
本文介绍了vtiger 7.1安装错误已弃用:与类相同名称的方法在将来的PHP版本中将不再是构造函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在vtiger 7.1安装中遇到问题在设置页面中插入,它显示包含此内容的错误页面

I am facing an issue in vtiger 7.1 installation insted of setup page , it shows error page with this content

已弃用:与类同名的方法在将来的PHP版本中将不再是构造函数;RecurringType在/home/domainname/domains/domainfolder/public_html/vtigercrm/include/utils/RecurringType.php中的第16行上有弃用的构造函数

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; RecurringType has a deprecated constructor in /home/domainname/domains/domainfolder/public_html/vtigercrm/include/utils/RecurringType.php on line 16

推荐答案

由于php.ini中无效的"error_reporting"变量而产生了错误

error is generating because of invalid "error_reporting" variable in php.ini

您可能知道,安装vtigercrm所需的error_reporting值为"E_WARNING&〜E_NOTICE&〜E_DEPRECATED&〜E_STRICT"

as you may know , the required value of error_reporting for installing vtigercrm is "E_WARNING & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT"

因此,如果当前值为E_All或其他值,请在php.ini中如下设置"error_reporting"

so if current value is E_All or something else , In php.ini set "error_reporting" as below

error_reporting = E_WARNING&〜E_NOTICE&〜E_DEPRECATED&〜E_STRICT

error_reporting = E_WARNING & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT

这篇关于vtiger 7.1安装错误已弃用:与类相同名称的方法在将来的PHP版本中将不再是构造函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆