create_function in Sources/Subs.php - errors in log_errors table - PHP 7.2.0

Started by bongobongo, March 28, 2018, 08:48:23 AM

Previous topic - Next topic

Looking

Very good mod, installed without errors and cleared up 7.2 error messages.

waxpop

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?

Arantor


Black Tiger

Quoteit 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

Arantor


Black Tiger

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

waxpop

Quote from: Black Tiger on March 01, 2019, 11:31:19 AM
Quoteit 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!

Black Tiger

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

Arantor

Quote from: Black Tiger on March 01, 2019, 12:48:53 PM
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.

Black Tiger

QuoteYou probably have no other bbc mods installed
I don't have BBC mods  (I think), but other mods:

Greetings, Black Tiger

Arantor

Yeah, nothing that adds new bbc, which won't (and can't) be fixed by the patch.

palmdoc

Informative thread but wishing for real PHP 7.2 support for 2.0x as my host will force migration in March 2020.

Arantor

There is only so much that can be done in 2.0, what can be done will be done in 2.0.16 but that will include simply turning off the relevant type of error as it can't be cleanly fixed fully. It is in 2.1 though that's not finished yet.

Advertisement: