tips.paddyonline.net

If you need tips & tricks, here they are...

Fix for PHP Strict Standards issue with PHP 5.4.x

Fix for PHP Strict Standards issue with PHP 5.4.x

During some testing I found an issue with the latest PHP and osTicket. The one coding this puppy is not following php standards from what I understand so you need to disable logging for various errors. So in order to not get the dreaded PHP Strict Standards error in your logs make the following changes.


In the file main.inc.php on line 42 you have

error_reporting(E_ALL ^ E_NOTICE); //Respect whatever is set in php.ini (sysadmin knows better??)

change it to
error_reporting(E_ALL ^ E_NOTICE ^ E_STRICT ^ E_DEPRICATED); //Respect whatever is set in php.ini (sysadmin knows better??)

also below this in the same file on line 155 you have
//Init
$cfg->init();
//Set default timezone...staff will overwrite it.

change it to
//Init
global $cfg;
$cfg->init();
//Set default timezone...staff will overwrite it.

GL! :)

Add comment

Security code
Refresh

Please consider supporting our efforts.

:

Warning: Parameter 2 to modChrome_artnostyle() expected to be a reference, value given in /var/www/clients/client1/web13/web/templates/tips2_4/html/modules.php on line 39

Warning: Parameter 3 to modChrome_artnostyle() expected to be a reference, value given in /var/www/clients/client1/web13/web/templates/tips2_4/html/modules.php on line 39
Creative Commons License
Tips&Tricks at tips.paddyonline.net is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Cookies make it easier for us to provide you with our services. With the usage of our services you permit us to use cookies.
More information Ok Decline