Welcome! Please Login or Register!
September 16, 2025, 06:16:27 PM
Home Login Register
pftq Forums  |  Main  |  Blabberbox  |  42  |  SMF1 on PHP5 0 Members and 1 Guest are viewing this topic. « previous next »
Latest News!Substack(Sep 13, 2025)
Pages: [1] Print
Author Topic: SMF1 on PHP5  (Read 810 times)
pftq
Administrator
*****
Offline Offline



Posts: 4210

WWW
« on: January 14, 2020, 07:49:44 PM »

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:
Quote
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:
Quote
In index.php:
- 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);
to
Code:
$ssi_error_reporting = error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);
« Last Edit: January 14, 2020, 07:55:15 PM by pftq » Logged
Pages: [1] Print 
pftq Forums  |  Main  |  Blabberbox  |  42  |  SMF1 on PHP5 « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines | RSS Feed Valid XHTML 1.0! Valid CSS!
Page created in 0.057 seconds with 22 queries.