Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: dibelardino - tammikuu 09, 2019, 09:47:32 AP

Otsikko: error 8192: Function create_function() is deprecated
Kirjoitti: dibelardino - tammikuu 09, 2019, 09:47:32 AP
Hallo to everybody.
I have just installed a SMF 2.0.15 forum
It is hosted by Aruba ISP and runs Php 5.
As soon as I navigate through the forum, in the error log, I got a bunch of errors 8192: Function create_function() is deprecated
I read a lot about compatibility with php 7.2, but I run on php 5.
The error doesn't seem to affect the functionality of the forum.
Here one of the errors.

Administrator
93.41.215.222   
      Oggi alle 03:35:54 pm
963d165c16311ad30a61d64b9e2c0d0a
Tipo di errore: Generale

http   (sorry not allowed to post links)          index.php?action=admin;area=logs;be2149518=963d165c16311ad30a61d64b9e2c0d0a

8192: Function create_function() is deprecated

File: Subs.php
Riga: 1195

Thank you in advance
Marco
Otsikko: Re: error 8192: Function create_function() is deprecated
Kirjoitti: Arantor - tammikuu 09, 2019, 09:58:45 AP
You're running PHP 7.2, that's the lowest version at which the function was deprecated. Ask your host to put you on 7.1.
Otsikko: Re: error 8192: Function create_function() is deprecated
Kirjoitti: dibelardino - tammikuu 09, 2019, 10:10:15 AP
Lainaus käyttäjältä: Arantor - tammikuu 09, 2019, 09:58:45 AP
You're running PHP 7.2, that's the lowest version at which the function was deprecated. Ask your host to put you on 7.1.

;D You are right. My information about the php version was wrong.
Changed to 7.1 and solved the problem.
Sorry for the mistake
Otsikko: Re: error 8192: Function create_function() is deprecated
Kirjoitti: zeancasino - elokuu 03, 2019, 09:57:06 AP
php 7.1 works the best for SMF 2.0.x only

If you need 7.2 support try this mod https://www.smfhacks.com/index.php?action=downloads;sa=view;id=215
Otsikko: Re: error 8192: Function create_function() is deprecated
Kirjoitti: Arantor - elokuu 03, 2019, 10:25:48 AP
That will only update the core, it won't fix any mods that have the same bug.
Otsikko: Re: error 8192: Function create_function() is deprecated
Kirjoitti: JoWoodburn - marraskuu 16, 2019, 01:46:10 IP
Lainaus käyttäjältä: Arantor - tammikuu 09, 2019, 09:58:45 AP
You're running PHP 7.2, that's the lowest version at which the function was deprecated. Ask your host to put you on 7.1.

I haven't a clue what I am doing but I am getting the same error.  It says I am running version 4.8.5 not sure what that means, not sure how to change it.
Otsikko: Re: error 8192: Function create_function() is deprecated
Kirjoitti: Arantor - marraskuu 16, 2019, 01:46:56 IP
Where does it say 4.8.5? That's not either a PHP or SMF version... are you using WordPress?
Otsikko: Re: error 8192: Function create_function() is deprecated
Kirjoitti: JoWoodburn - marraskuu 16, 2019, 01:52:38 IP
Lainaus käyttäjältä: Arantor - marraskuu 16, 2019, 01:46:56 IP
Where does it say 4.8.5? That's not either a PHP or SMF version... are you using WordPress?

That sounds right.  Didn't really want to go through them but I was too far in the weeds to turn back when I realized it was a mistake.