SMF1 on PHP5
For those still using SMF1, PHP5 or later will throw a lot of deprecated errors and warnings, which quickly clog the error log. This thread below isolates the 3 changes you need to clear them:
https://www.simplemachines.org/community/index.php?topic=534915.0
To stop error logging internally to SMF:
To stop errors showing on the page itself:
https://www.simplemachines.org/community/index.php?topic=534915.0
To stop error logging internally to SMF:
Quote
In index.php:
- Replace set_error_handler('error_handler'); with set_error_handler('error_handler',E_ALL & ~E_DEPRECATED & ~E_NOTICE);
- Replace set_error_handler('error_handler'); with set_error_handler('error_handler',E_ALL & ~E_DEPRECATED & ~E_NOTICE);
To stop errors showing on the page itself:
Quote
In index.php:
- Change error_reporting(E_ALL); to error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);
In SSI.php
Change
- Change error_reporting(E_ALL); to error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);
In SSI.php
Change
Code:
$ssi_error_reporting = error_reporting(E_ALL);
toCode:
$ssi_error_reporting = error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);
412 unique view(s)
« Send Mail As From Gmail SMTP | -More 42- | Sony P200 Camera - Removing Dust Spots » |
-Back to Blabberbox- |