Advertisement:

Author Topic: error 8192: Function create_function() is deprecated  (Read 281 times)

Offline dibelardino

  • Newbie
  • *
  • Posts: 3
error 8192: Function create_function() is deprecated
« on: January 09, 2019, 09:47:32 AM »
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

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,768
    • StoryBB/StoryBB on GitHub
Re: error 8192: Function create_function() is deprecated
« Reply #1 on: January 09, 2019, 09:58:45 AM »
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.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline dibelardino

  • Newbie
  • *
  • Posts: 3
Re: error 8192: Function create_function() is deprecated
« Reply #2 on: January 09, 2019, 10:10:15 AM »
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