• Welcome to Simple Machines Community Forum. Please login or sign up.
September 17, 2021, 10:26:23 PM

News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord


php 7.2

Started by chamacao, January 28, 2019, 12:06:18 AM

Previous topic - Next topic

chamacao

Hi all

Hope this is the right place to post a php problem.
Do not know a thing or have an idea about fixing this and my IP will not help, they just want to sell extended support.

I have being requested to upgrade the board to php 7.2 when I do. I get the following errors as shown on the images.


Deprecated: Function create_function() is deprecated in /homepages/19/d282217206/htdocs/csa/Sources/Load.php on line 178
Deprecated: Function create_function() is deprecated in /homepages/19/d282217206/htdocs/csa/Sources/Load.php on line 183
Deprecated: Function create_function() is deprecated in /homepages/19/d282217206/htdocs/csa/Sources/Load.php on line 184
Deprecated: Function create_function() is deprecated in /homepages/19/d282217206/htdocs/csa/Sources/Load.php on line 220
Deprecated: Function create_function() is deprecated in /homepages/19/d282217206/htdocs/csa/Sources/Load.php on line 223
Deprecated: Function create_function() is deprecated in /homepages/19/d282217206/htdocs/csa/Sources/Load.php on line 235
Deprecated: Function create_function() is deprecated in /homepages/19/d282217206/htdocs/csa/Sources/Load.php on line 250
Deprecated: Function create_function() is deprecated in /homepages/19/d282217206/htdocs/csa/Sources/Load.php on line 252
Deprecated: Function create_function() is deprecated in /homepages/19/d282217206/htdocs/csa/Sources/Load.php on line 257
Deprecated: Function create_function() is deprecated in /homepages/19/d282217206/htdocs/csa/Sources/Load.php on line 268
Deprecated: Function create_function() is deprecated in /homepages/19/d282217206/htdocs/csa/Sources/Load.php on line 270
Deprecated: Function create_function() is deprecated in /homepages/19/d282217206/htdocs/csa/Sources/Load.php on line 273


Thank you, and be easy on my on the explanation. Thanks.
Also uploaded my load file.

Regards

drewactual

Smf isnt built for 7.2.... However, search the mod section as someone has graciously scripted and donated a mod to make it work. 

live627

Can you try PHP 7.1?

vbgamer45

php 7.1 works the best for SMF 2.0.x
If you need 7.2 support try this mod https://www.smfhacks.com/index.php?action=downloads;sa=view;id=215
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

chamacao

Thank you all.

It is working just fine with 7.1...The IP recommended 7.2 but that will definitively will not work. Hope that get solve in the future. Will give the mod a try.

Thanks  all.

jstop

Thanks for the info... Just found out my host is upgrading all servers to PHP 7.2 in March.

Should I wait until they update to 7.2, or should I install the MOD now?

https://www.smfhacks.com/index.php?action=downloads;sa=view;id=215
Website admin for
-------------------------------------------------
http://bridgestonemotorcycleparts.com
http://www.6x6talk.com

vbgamer45

either way natbe smf 2.0 will do an update
php 7.2 just adds warning messages
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

delta5

I just spoke to godaddy tech support about this. 7.2 and soon 7.3 will be installed on their servers, but they will keep the older versions available in cPanel so I'm safe for now.

jstop

Has anyone successfully tested this mod in PHP 7.2 yet?
Website admin for
-------------------------------------------------
http://bridgestonemotorcycleparts.com
http://www.6x6talk.com

landyvlad

chamacao -  going back to 7.1 is your best option.

And get a new ISP.


Please do not PM, IM or Email me with questions on astrophysics or theology.  You will get better and faster responses by asking homeless people in the street. Thank you.

To paraphrase Kindred: "There are no technical solutions to social problems."

Shambles

Quote from: landyvlad on February 13, 2019, 07:47:37 PM
And get a new ISP.

How will that help with his hosting issues?

spiros

I tested the mod https://www.smfhacks.com/index.php?action=downloads;sa=view;id=215
I saw this:

Apply Filter: Only show the error messages of this URL
forum/index.php?action=admin;area=logs;sa=errorlog;descApply Filter: Only show the errors with the same message
8192: Function create_function() is deprecatedApply Filter: Only show the errors from this file File: Sources/SimpleSEF.php
Line: 427


Funnily enough, I checked, and SimpleSEF is not activated. I even deleted its files from Package Manager.

Kindred

but you still have the file there, and I would guess a hook or another file which calls that file.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

spiros

When I deleted that file then the errors stopped... Strange that uninstalling the mod does not delete the files...

vbgamer45

Some older mods don't delete the files.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

spiros

By the way, thanks for the mod vbgamer45, works great in php 7.2. Curious to test it on 7.3 when Cpanel supports it.

Kindred

however....   that file would only have been CALLED if something else is asking for it to be loaded....  which means that deleting the file was only half of the solution
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

spiros

Well, SimpleSEF.php looks dead so I cannot even check the code changes on a package parser.
https://www.simplemachines.org/community/index.php?topic=352351.0

Arantor

Fairly sure it only used hooks anyway.
No good deed goes unpunished
All helpful urges should be circumvented

spiros

Testing php 7.3 with the mod mentioned by vbgamer45 and it works just fine, no error messages in error log :)

Advertisement: