pftq.com
Welcome! Please Login or Register!
December 04, 2024, 06:35:15 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!Lunar Trigger(Aug 27, 2023)
Pages: [1] Print
Author Topic: SMF1 on PHP5  (Read 454 times)
pftq
Administrator
*****
Offline Offline



Posts: 4204

WWW
« on: January 14, 2020, 06: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, 06: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.113 seconds with 22 queries.