Advertisement:

Author Topic: SMF 1.1.x incompatibility with recent PHP versions (PHP5.5+)  (Read 42146 times)

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 4,804
  • Gender: Male
    • i30 Owners Club
Re: SMF 1.1.x incompatibility with recent PHP versions (PHP5.5+)
« Reply #20 on: January 08, 2018, 03:40:03 AM »
Good work, naro.

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,215
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF 1.1.x incompatibility with recent PHP versions (PHP5.5+)
« Reply #21 on: January 08, 2018, 07:12:02 AM »
Naro yeah I  did the same for my sites that are on SMF 1.1.x
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 Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,812
    • Arantor on GitHub
Re: SMF 1.1.x incompatibility with recent PHP versions (PHP5.5+)
« Reply #22 on: January 08, 2018, 07:22:47 AM »
I really couldn't encourage persisting in 1.1.x support.

There is now at least one (proven) SQL injection vulnerability in the base software that will not be patched. It's possible there are more vulnerabilities that are also unpatched.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

Offline anodi

  • Newbie
  • *
  • Posts: 1
Re: SMF 1.1.x incompatibility with recent PHP versions (PHP5.5+)
« Reply #23 on: January 26, 2018, 05:01:45 AM »
HI,

How to disable error log on SMF 1.1? I had 8GB database before I cleaned log table...

Need to update to 2.xx but until that would be nice to not get thousands of errors in minutes.

Thanks!

Online Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Lead Support Specialist
  • SMF Super Hero
  • *
  • Posts: 17,102
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • aleksi-kilpinen on LinkedIn
Re: SMF 1.1.x incompatibility with recent PHP versions (PHP5.5+)
« Reply #24 on: January 26, 2018, 05:36:00 AM »
Admin -> Features and Options -> Enable error logging.

Do note that disabling the error log is not a solution to the problems, it just hides them from sight.
A Finnish Support Specialist
 Happily running multiple SMF 2.0 installations.

How you can help SMF

"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

Offline _sebas_

  • Semi-Newbie
  • *
  • Posts: 89
Re: SMF 1.1.x incompatibility with recent PHP versions (PHP5.5+)
« Reply #25 on: March 01, 2018, 09:20:14 PM »
I have extracted fixes for preg_replace(_callback) from SMF 2.0.15 into a XML mod file which I use together with my own mod for 1.1.21.
If you have your own modifications, you can add this XML file and apply it or you can create new mod with that modifications.


How do I apply it?
Can you explain something else, or give some clue?
Thank you

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,495
  • Gender: Male
    • Kindred-999 on GitHub
Re: SMF 1.1.x incompatibility with recent PHP versions (PHP5.5+)
« Reply #26 on: March 01, 2018, 09:50:00 PM »
since there are also a whole pile of security releases in 2.0 that were never applied in 1.1.21, it is recommended that you upgrade rather than trying to keep patching an outdated and sunset version...
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 wattie

  • Semi-Newbie
  • *
  • Posts: 14
Re: SMF 1.1.x incompatibility with recent PHP versions (PHP5.5+)
« Reply #27 on: May 28, 2018, 08:02:25 PM »
Here's a fixed Subs.php from the Sources directory. There were lots of "deprecated" warnings for "create_function" in PHP 7.2. Now they are gone.

If anybody gets warnings regarding deprecated calls from other files, PM me - I have them all fixed.
« Last Edit: May 29, 2018, 01:41:27 PM by Kindred »

Offline Study Force

  • SMF Hero
  • ******
  • Posts: 3,274
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
    • Study Force
Re: SMF 1.1.x incompatibility with recent PHP versions (PHP5.5+)
« Reply #28 on: May 28, 2018, 11:09:38 PM »
This allows for PHP 7.2?

Offline vbgamer45

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 20,215
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF 1.1.x incompatibility with recent PHP versions (PHP5.5+)
« Reply #29 on: May 28, 2018, 11:50:57 PM »
If your site is already updated to support php 7.1 there are some other files though.
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 Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,495
  • Gender: Male
    • Kindred-999 on GitHub
Re: SMF 1.1.x incompatibility with recent PHP versions (PHP5.5+)
« Reply #30 on: May 29, 2018, 01:44:38 PM »
Wattie,

Unfortunately, the license for SMF 1.1.x does not allow distribution of modified source files.
It only allows modification packages which instruct the system on what changes to apply to source files.

That being said - anyone who is still using 1.1.x should really upgrade.
Although vbgamer has made mod packages with some of the updates, I am fairly certain that some of the security fixes have not been backported - and as the systems diverge more and more, it's going to be harder.

Additionally, Study Force... SMF 2.0.x doesn't support php7.2 yet - so there is no backport for that.
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 wattie

  • Semi-Newbie
  • *
  • Posts: 14
Re: SMF 1.1.x incompatibility with recent PHP versions (PHP5.5+)
« Reply #31 on: May 30, 2018, 03:25:02 PM »
Thanks, I did not know that, sorry.

I have no much time to learn how to make it as a package. In mean time I backported some of the important CVE vulnerabilities too.

I know it's good to upgrade - no doubt in that. The reason I am keeping it is that the forum theme is not working with 2.0.x and my forum is inactive for few years - I am keeping it up for historical reasons (registration is disabled, users are gone).

I used some patch for PHP 7.1 which someone gave me some time ago. Then I patched it myself to work for PHP 7.2 because I fount it to be very easy. That's all.

Offline wattie

  • Semi-Newbie
  • *
  • Posts: 14
Re: SMF 1.1.x incompatibility with recent PHP versions (PHP5.5+)
« Reply #32 on: May 30, 2018, 04:45:50 PM »
P.S. Yes, there are other files as well. It looks like Load.php is not very trivial to fix.