Advertisement:

Author Topic: create_function in Sources/Subs.php - errors in log_errors table - PHP 7.2.0  (Read 5073 times)

Offline Looking

  • SMF Hero
  • ******
  • Posts: 2,381
  • SMF Customization
    • jeanborde on Facebook
    • SMF Custom Themes & Custom Coding
Very good mod, installed without errors and cleared up 7.2 error messages.

Offline waxpop

  • Semi-Newbie
  • *
  • Posts: 32
Hi, my host is suddenly running PHP 7.2 and I'm getting the error on my SMF v2.0.15 board: "Deprecated: Function create_function() is deprecated in..." After some research, it looks like this mod is what I need but I'm getting errors during installation. The Replace ./Sources/Subs.php test failed. Any ideas?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,806
    • StoryBB/StoryBB on GitHub
Don’t run PHP 7.2 is about it at the moment.
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 Black Tiger

  • Full Member
  • ***
  • Posts: 619
  • Gender: Male
    • Satellite Fun
Quote
it looks like this mod is what I need but I'm getting errors during installation. The Replace ./Sources/Subs.php test failed. Any ideas?
Since your host updated to php 7.2 there is not much you can do. If it's only errors but the mod is working, just ignore the errors.
However, you could always ask the creator of the mod if he's prepared to update his mod to php 7.2 compatibility, some codes are prepared to do that.

The only other option is to find a host which give you choices or still runs php 7.0 or 7.1.
Greetings, Black Tiger

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,806
    • StoryBB/StoryBB on GitHub
SMF core reports errors on 7.2...
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 Black Tiger

  • Full Member
  • ***
  • Posts: 619
  • Gender: Male
    • Satellite Fun
Yes, but not with the SMF 2.0.X - PHP 7.2+ Compatibility mod by Chen Zen mentioned in this thread. I thought he installed that too.
I'm running my SMF 2.0.15 on php 7.2 without any errors.
Greetings, Black Tiger

Offline waxpop

  • Semi-Newbie
  • *
  • Posts: 32
Quote
it looks like this mod is what I need but I'm getting errors during installation. The Replace ./Sources/Subs.php test failed. Any ideas?
Since your host updated to php 7.2 there is not much you can do. If it's only errors but the mod is working, just ignore the errors.
However, you could always ask the creator of the mod if he's prepared to update his mod to php 7.2 compatibility, some codes are prepared to do that.

The only other option is to find a host which give you choices or still runs php 7.0 or 7.1.

I haven't installed the mod because it warned me of the error during testing. Don't want to accidentally break my site completely!

Offline Black Tiger

  • Full Member
  • ***
  • Posts: 619
  • Gender: Male
    • Satellite Fun
You might want to disable all other mods first before trying to install the php 7.2 compatibility mod to be sure. Good chance the error is created by another mod.

Anyway, if you really want to stay safe without errors in your case, there is only 1 method and that is what Arantor said.
Greetings, Black Tiger

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,806
    • StoryBB/StoryBB on GitHub
Yes, but not with the SMF 2.0.X - PHP 7.2+ Compatibility mod by Chen Zen mentioned in this thread. I thought he installed that too.
I'm running my SMF 2.0.15 on php 7.2 without any errors.

You probably have no other bbc mods installed, no site I ever had would work without changes that can’t be done by that mod.
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 Black Tiger

  • Full Member
  • ***
  • Posts: 619
  • Gender: Male
    • Satellite Fun
Quote
You probably have no other bbc mods installed
I don't have BBC mods  (I think), but other mods:

Greetings, Black Tiger

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,806
    • StoryBB/StoryBB on GitHub
Yeah, nothing that adds new bbc, which won’t (and can’t) be fixed by the patch.
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.