Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: Douglas - marraskuu 08, 2019, 06:37:39 AP

Otsikko: Deprecated: Function create_function() is deprecated in Sources/Load.php
Kirjoitti: Douglas - marraskuu 08, 2019, 06:37:39 AP
Deprecated: Function create_function() is deprecated in Sources/Load.php on line 178

Deprecated: Function create_function() is deprecated in Sources/Load.php on line 183

Deprecated: Function create_function() is deprecated in Sources/Load.php on line 184

Deprecated: Function create_function() is deprecated in Sources/Load.php on line 220

Deprecated: Function create_function() is deprecated in Sources/Load.php on line 223

Deprecated: Function create_function() is deprecated in Sources/Load.php on line 235

Deprecated: Function create_function() is deprecated in Sources/Load.php on line 250

Deprecated: Function create_function() is deprecated in Sources/Load.php on line 268


Version Information:
Forum version: SMF 2.0.15 (more detailed)
Current SMF version: SMF 2.0.15
GD version: 2.2.5
Database Server: MariaDB
MySQL version: 10.2.19-MariaDB-log
PHP: 7.3.11-1~deb10u1
Server version: Apache

Before anyone "yells" at me, I don't have any choice on the PHP version. You might want to revise the Basic Server Requirements (https://download.simplemachines.org/requirements.php) within SMF's documentation that says "PHP 5.4.0 or higher", cause 7.3 is definitely higher than 5.4.0. ;)
Otsikko: Re: Deprecated: Function create_function() is deprecated in Sources/Load.php
Kirjoitti: Arantor - marraskuu 08, 2019, 06:45:37 AP
If you can't drop the PHP to 7.1 you'll just have to turn error reporting off until SMF 2.0.16 comes out. Your issue is PHP 7.2+ has a hissy fit with the bbc parser (and other parts)
Otsikko: Re: Deprecated: Function create_function() is deprecated in Sources/Load.php
Kirjoitti: Illori - marraskuu 08, 2019, 07:58:33 AP
I know it is not the page you linked to but https://wiki.simplemachines.org/smf/SMF2.0:Requirements_and_recommendations says

LainaaVersions of SMF from 2.0.14 onwards require a version of PHP between 5.4 and 7.1. If you use PHP 5.3 or lower, it is necessary to use SMF 2.0.13 or lower. PHP 7.2 is not supported by SMF at this time.

also this topic has come up many times here so a search would have given you the answer as well.