Forum > General SMF Forum

Using SMF 2.0.X on php 7.2

(1/1)

SMFHacks:
Using SMF 2.0.X on php 7.2

Your error log fill up fast unless you make these changes

open index.php change

--- Code: ---error_reporting(E_ALL);

--- End code ---
To

--- Code: ---error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);

--- End code ---

Find

--- Code: ---set_error_handler('error_handler');

--- End code ---
Change to

--- Code: ---set_error_handler('error_handler',E_ALL & ~E_DEPRECATED & ~E_NOTICE);

--- End code ---


open ssi.php
Change

--- Code: ---$ssi_error_reporting = error_reporting(E_ALL);

--- End code ---
To

--- Code: ---$ssi_error_reporting = error_reporting(E_ALL & ~E_DEPRECATED & ~E_NOTICE);

--- End code ---

Navigation

[0] Message Index

Go to full version