[英]vtiger php errors on ubuntu 16.04
I am getting a tons of warnings in vtiger on php7.0 on ubuntu 16.04我在 ubuntu 16.04 上的 php7.0 上的 vtiger 中收到大量警告
I was thinking to disable the warnings via /etc/php/7.0/apache2/php.ini, but it does not make any difference我正在考虑通过 /etc/php/7.0/apache2/php.ini 禁用警告,但它没有任何区别
error_reporting = E_ALL & ~E_USER_WARNING & ~E_WARNING & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
here the errors which I still get:这里我仍然得到的错误:
Warning: Declaration of Portal_Module_Model::saveRecord($recordId, $bookmarkName, $bookmarkUrl) should be compatible with Vtiger_Module_Model::saveRecord(Vtiger_Record_Model $recordModel) in /var/www/vtigercrm/modules/Portal/models/Module.php on line 0
Warning: Declaration of Portal_Module_Model::deleteRecord($recordId) should be compatible with Vtiger_Module_Model::deleteRecord(Vtiger_Record_Model $recordModel) in /var/www/vtigercrm/modules/Portal/models/Module.php on line 0
Warning: Declaration of EmailTemplates_Module_Model::saveRecord(EmailTemplates_Record_Model $recordModel) should be compatible with Vtiger_Module_Model::saveRecord(Vtiger_Record_Model $recordModel) in /var/www/vtigercrm/modules/EmailTemplates/models/Module.php on line 0
Warning: Declaration of EmailTemplates_Module_Model::deleteRecord(EmailTemplates_Record_Model $recordModel) should be compatible with Vtiger_Module_Model::deleteRecord(Vtiger_Record_Model $recordModel) in /var/www/vtigercrm/modules/EmailTemplates/models/Module.php on line 0
Any idea how to fix it?知道如何解决吗?
Change error reporting in config.inc.php file更改 config.inc.php 文件中的错误报告
ini_set('display_errors','on'); version_compare(PHP_VERSION, '5.5.0') <= 0 ? error_reporting(E_WARNING & ~E_NOTICE & ~E_DEPRECATED) : error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT); // DEBUGGI
you can modify error_reporting via config.inc.php please check the following link.您可以通过 config.inc.php 修改 error_reporting 请检查以下链接。
vtiger 7.1 installation error Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP vtiger 7.1 安装错误 已弃用:与 class 同名的方法在 PHP 的未来版本中将不再是构造函数
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.