Advertisement:

Author Topic: php 7.2  (Read 688 times)

Offline chamacao

  • Semi-Newbie
  • *
  • Posts: 44
  • Gender: Male
    • Mejia Online
php 7.2
« on: January 28, 2019, 12:06:18 AM »
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

Offline drewactual

  • Full Member
  • ***
  • Posts: 501
    • College Football Fan Site CFB51
Re: PHP 7.2
« Reply #1 on: January 28, 2019, 12:09:15 AM »
Smf isnt built for 7.2.... However, search the mod section as someone has graciously scripted and donated a mod to make it work. 
https://www.cfb51.com is a College Football Fan Site, Store, and Publisher, launched in July of 2017

Offline live627

  • Developer
  • SMF Hero
  • *
  • Posts: 5,525
  • Gender: Male
    • live627 on Facebook
    • live627 on GitHub
    • live627 on LinkedIn
    • @live627 on Twitter
    • livemods
Re: php 7.2
« Reply #2 on: January 28, 2019, 12:24:16 AM »
Can you try PHP 7.1?
Try not to become a man of success, but rather try to become a man of value.
- Albert Einstein

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,898
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: php 7.2
« Reply #3 on: January 28, 2019, 08:45:00 AM »
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

Offline chamacao

  • Semi-Newbie
  • *
  • Posts: 44
  • Gender: Male
    • Mejia Online
Re: php 7.2
« Reply #4 on: January 28, 2019, 12:37:18 PM »
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.

Offline jstop

  • Semi-Newbie
  • *
  • Posts: 51
    • 6x6talk.com
Re: php 7.2
« Reply #5 on: January 29, 2019, 05:43:06 PM »
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

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,898
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: php 7.2
« Reply #6 on: January 29, 2019, 05:59:02 PM »
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

Offline delta5

  • Jr. Member
  • **
  • Posts: 239
    • @@kd8hmo on Twitter
    • FedUpWithLiberals.com
Re: php 7.2
« Reply #7 on: January 30, 2019, 12:08:50 PM »
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.

Offline jstop

  • Semi-Newbie
  • *
  • Posts: 51
    • 6x6talk.com
Re: php 7.2
« Reply #8 on: February 13, 2019, 07:40:17 PM »
Has anyone successfully tested this mod in PHP 7.2 yet?
Website admin for
-------------------------------------------------
http://bridgestonemotorcycleparts.com
http://www.6x6talk.com

Offline landyvlad

  • Sr. Member
  • ****
  • Posts: 744
  • Gender: Male
    • Michael Reed on Facebook
    • GSX1400 Owners ORG
Re: php 7.2
« Reply #9 on: February 13, 2019, 07:47:37 PM »
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."

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,051
  • Gender: Male
    • i30 Owners Club
Re: php 7.2
« Reply #10 on: February 14, 2019, 03:22:01 AM »
And get a new ISP.

How will that help with his hosting issues?

Offline spiros

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 1,687
  • Gender: Male
  • A different point of view
    • spiros.doikas on Facebook
    • doikas on LinkedIn
    • @greektranslator on Twitter
    • Greek Translation
Re: php 7.2
« Reply #11 on: February 14, 2019, 04:43:47 PM »
I tested the mod https://www.smfhacks.com/index.php?action=downloads;sa=view;id=215
I saw this:

Code: [Select]
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.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 57,639
  • Gender: Male
    • Kindred-999 on GitHub
Re: php 7.2
« Reply #12 on: February 14, 2019, 05:47:12 PM »
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.

Offline spiros

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 1,687
  • Gender: Male
  • A different point of view
    • spiros.doikas on Facebook
    • doikas on LinkedIn
    • @greektranslator on Twitter
    • Greek Translation
Re: php 7.2
« Reply #13 on: February 14, 2019, 05:55:42 PM »
When I deleted that file then the errors stopped... Strange that uninstalling the mod does not delete the files...

Online vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,898
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: php 7.2
« Reply #14 on: February 14, 2019, 06:04:24 PM »
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

Offline spiros

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 1,687
  • Gender: Male
  • A different point of view
    • spiros.doikas on Facebook
    • doikas on LinkedIn
    • @greektranslator on Twitter
    • Greek Translation
Re: php 7.2
« Reply #15 on: February 14, 2019, 06:20:49 PM »
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.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 57,639
  • Gender: Male
    • Kindred-999 on GitHub
Re: php 7.2
« Reply #16 on: February 15, 2019, 08:13:52 AM »
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.

Offline spiros

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 1,687
  • Gender: Male
  • A different point of view
    • spiros.doikas on Facebook
    • doikas on LinkedIn
    • @greektranslator on Twitter
    • Greek Translation
Re: php 7.2
« Reply #17 on: February 15, 2019, 08:23:58 AM »
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

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 70,175
    • StoryBB/StoryBB on GitHub
Re: php 7.2
« Reply #18 on: February 15, 2019, 08:28:49 AM »
Fairly sure it only used hooks anyway.
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.