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.0To stop error logging internally to SMF:
In index.php:
- 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:
In index.php:
- Change error_reporting(E_ALL); to error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);
In SSI.php
Change
$ssi_error_reporting = error_reporting(E_ALL);
to
$ssi_error_reporting = error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);