Version 2.0.18 throws error Call to undefined function create_function()

Started by Plantje, September 30, 2021, 04:27:43 PM

Previous topic - Next topic

Plantje

My host pointed out they will switch to PHP 8.0. Fortunately there is still an option to move to PHP 7.4 for the time being.
I have updated to SMF 2.0.18 and switched to PHP 7.4

At times the forum seems to run fine.... but I think that is just a matter of the PHP setting not being fully processed. Or my site is running from a cached site. In most cases I get error "Call to undefined function create_function()" What may cause this?

Plantje


Diego Andrés

The log should tell you what file is causing that issue, could potentially be a mod

SMF Tricks - Free & Premium Responsive Themes for SMF.

Shades.

Quote from: Plantje on September 30, 2021, 04:29:39 PMScratch that.... vliegvissers.com doesn't run at all right now...
Looks like you got it working!? Link works for me at this time. ;)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Plantje

At the end of the day I reverted to PHP 7.3 for the time being. My host confirmed I will get support for PHP 7.4 for about a year. So, I set the site to that for now. Today I have some more time to test.

For some reason, I don't get E-mail notifications from replies to this board. So it is not that I don't appreciate your responses!

Aleksi "Lex" Kilpinen

Quote from: Plantje on October 02, 2021, 02:50:00 AMFor some reason, I don't get E-mail notifications from replies to this board. So it is not that I don't appreciate your responses!
At the top menu, click "alerts", and then "settings" to find your notification settings.
Post upgrade to 2.1 many notification settings have been defaulted to not send e-mails, but you should be able to correct this if you wish.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Plantje

Will do that. Thanks!

Currently my Production environment seems to be running fine on PHP 7.4 and Test is running PHP 8.0

By the way: 2.1 is still in beta, right?

Aleksi "Lex" Kilpinen

Still in development, currently in RC - Not really recommended for production, but basically stable enough if you are comfortable keeping up with Github and going through (probably) multiple large upgrades before the stable version is eventually released.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

martiniturbide

Hi

I'm getting a similar error on my forum (www.os2world.com/forum). But I get this error when loggin with the super admin and trying to change the profile of the users. (Account Settings, Forum Profile).

Here are the pictures: https://imgur.com/a/RJcCiQR

I had 2.0.18 version with that error, I updated to 2.0.19 and the error remains.

The server has PHP 8.0.8.

Regards

shadav

Quote from: martiniturbide on December 27, 2021, 06:12:19 PMHi

I'm getting a similar error on my forum (www.os2world.com/forum). But I get this error when loggin with the super admin and trying to change the profile of the users. (Account Settings, Forum Profile).

Here are the pictures: https://imgur.com/a/RJcCiQR

I had 2.0.18 version with that error, I updated to 2.0.19 and the error remains.

The server has PHP 8.0.8.

Regards
lower your php to 7.4 and see if that helps

Diego Andrés


SMF Tricks - Free & Premium Responsive Themes for SMF.

martiniturbide

Thanks Diego Andres. I had removed some old ads MODs and installed the one that you suggested and the errors are now gone. The server remains in PHP 8.

I will keep testing that everything works fine.

Regards

Advertisement: