cilap
cilap

Reputation: 2333

vtiger php errors on ubuntu 16.04

I am getting a tons of warnings in vtiger on php7.0 on ubuntu 16.04

I was thinking to disable the warnings via /etc/php/7.0/apache2/php.ini , but it does not make any difference

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?

Upvotes: 0

Views: 448

Answers (2)

Hamid
Hamid

Reputation: 398

you can modify error_reporting via config.inc.php please check the following link.

vtiger 7.1 installation error Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP

Upvotes: 0

lajeesh k
lajeesh k

Reputation: 335

Change error reporting in config.inc.php file

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

Upvotes: 1

Related Questions