News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SMF 2.0.16 - Deprecated: Function create_function()

Started by gariban, December 28, 2019, 12:24:46 PM

Previous topic - Next topic

gariban

- SMF 2.0.16
- Centos7
- PHP 7.2.26 (cli) (built: Dec 17 2019 14:06:22) ( NTS )

Deprecated: Function create_function() is deprecated in /home/forum/Sources/Subs.php on line 1088

Deprecated: Function create_function() is deprecated in /home/forum/Sources/Subs.php on line 1130

Deprecated: Function create_function() is deprecated in /home/forum/Sources/Subs.php on line 1179

Deprecated: Function create_function() is deprecated in /home/forum/Sources/Subs.php on line 1195

Deprecated: Function create_function() is deprecated in /home/forum/Sources/Subs.php on line 1214

Deprecated: Function create_function() is deprecated in /home/forum/Sources/Subs.php on line 1225

Deprecated: Function create_function() is deprecated in /home/forum/Sources/Subs.php on line 1299

Deprecated: Function create_function() is deprecated in /home/forum/Sources/Subs.php on line 1310

Deprecated: Function create_function() is deprecated in /home/forum/Sources/Subs.php on line 1386

Deprecated: Function create_function() is deprecated in /home/forum/Sources/Subs.php on line 1485

Deprecated: Function create_function() is deprecated in /home/forum/Sources/Subs.php on line 1510

Deprecated: Function create_function() is deprecated in /home/forum/Sources/Subs.php on line 1566

Deprecated: Function create_function() is deprecated in /home/forum/Sources/Subs.php on line 1597

Deprecated: Function create_function() is deprecated in /home/forum/Sources/Subs.php on line 1608

Deprecated: Function create_function() is deprecated in /home/forum/Sources/Subs.php on line 1619

Deprecated: Function create_function() is deprecated in /home/forum/Sources/FontAwesomeBBCode.php on line 23

Deprecated: Function create_function() is deprecated in /home/forum/Sources/FontAwesomeBBCode.php on line 33

vbgamer45

What page does it occur on?
I saw CLI are you running a cron job?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

gariban

Quote from: vbgamer45 on December 28, 2019, 12:26:34 PM
What page does it occur on?

at forum index

Quote from: vbgamer45 on December 28, 2019, 12:26:34 PM
I saw CLI are you running a cron job?

cron job not running

line 1088

'validate' => isset($disabled['code']) ? null : create_function('&$tag, &$data, $disabled', '

vbgamer45

Are you including any SSI.php code? Did SMF 2.0.16 install with any failures?
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

gariban

Quote from: vbgamer45 on December 28, 2019, 12:34:42 PM
Are you including any SSI.php code? Did SMF 2.0.16 install with any failures?

Yes, i'm using SSI

vbgamer45

For now edit SSI.php
Find the two spots that have error_reporting(
And change to

error_reporting(0);
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

gariban

which one?

line 47:
$ssi_error_reporting = error_reporting(defined('E_STRICT') ? E_ALL | E_STRICT : E_ALL);

line: 120
// Make a stab at it, but ignore the E_WARNINGs generated because we can't send headers.
$temp = error_reporting(error_reporting() & !E_WARNING);
loadSession();
error_reporting($temp);


line: 190
error_reporting($ssi_error_reporting);
if (function_exists('set_magic_quotes_runtime'))


vbgamer45

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Sesquipedalian

2.0.17 officially fixes this. Please revert any manual changes you made, and then install 2.0.17.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

riou

Quote from: Sesquipedalian on December 31, 2019, 12:54:13 AM
2.0.17 officially fixes this. Please revert any manual changes you made, and then install 2.0.17.

On 2.0.17

This still seems to be an issue in SSI loaded pages trying to fetch a post, it seems to trigger when a post contains the following in it (that I can confirm at least)


[quote=word]text[/quote]


It triggers the first 14 deprecated error lines from the OP

Deleting =word (in the post) makes it no longer error

The proper quote set ups (that are url linked in the default quote set up) works without error

FfdG

Same problem, had to change index.php:
error_reporting(defined('E_STRICT') ? E_ALL | E_STRICT : E_ALL);
to
error_reporting((defined('E_STRICT') ? E_ALL | E_STRICT : E_ALL) ^ E_DEPRECATED);

Reefer

Quote from: FfdG on January 07, 2020, 03:31:23 PM
Same problem, had to change index.php:
error_reporting(defined('E_STRICT') ? E_ALL | E_STRICT : E_ALL);
to
error_reporting((defined('E_STRICT') ? E_ALL | E_STRICT : E_ALL) ^ E_DEPRECATED);

Thanks for this! Running 2.0.17 on pHp 7.2 would return visible deprecated errors throughout. After much frustration, found this fix - and it worked!! Thanks again!

Advertisement: