Advertisement:

Author Topic: Fatal error: Function name must be a string in ../forum/Sources/Load.php  (Read 510 times)

Offline Milko

  • Semi-Newbie
  • *
  • Posts: 31
  • Gender: Male
I just ran the update from SMF 2.0.13 to 2.0.14, which rendered my forum inaccessible. I got this error message:

Fatal error: Function name must be a string in .../forum/Sources/Load.php on line 142

Can anyone help with this please?

Thanks!


Offline Milko

  • Semi-Newbie
  • *
  • Posts: 31
  • Gender: Male
Many thanks for your prompt reply. I restored the Sources files to the ones before the update so my forum is now online running SMF 2.0.13. What I find weird is that there was a note relating to this update, saying that my PHP version must be 5.3 or higher. Mine is 5.3.29, so I thought - great, I'll do it. Now I see PHP must actually be 5.4.. And even then errors occur.. So, now I wonder if I should install this update at all..

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 47,489
you need to install the update so that you can install future updates as they become available.

Offline Milko

  • Semi-Newbie
  • *
  • Posts: 31
  • Gender: Male
My forum shows it's running SMF 2.0.14 now (SMF package 2.0.14) and only the Source files are SMF 2.0.13. I guess, it's because I restored only the Sources files and the PHP version is still 5.3. The forum is working fine, so far no bugs detected.

My question is, should I reinstall SMF 2.0.14 now? I have the choice to install any PHP version up to version 7.1. Is PHP 5.4 the most appropriate for SMF 2.0.14?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 54,807
  • Gender: Male
    • Kindred-999 on GitHub
7.x or 5.6 is better

however, if part of your forum is at 2.0.14 and part is at 2.0.13, you are going to have some major issues

and no... reinstalling the 2.0.14 patch will just cause more issues.... you are going to have to do a full update (replace the files with clean forum files and then reinstall mods)
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 BuxarNET

  • Newbie
  • *
  • Posts: 6
Re: Fatal error: Function name must be a string in ../forum/Sources/Load.php
« Reply #6 on: September 15, 2017, 05:48:23 PM »
I also had the same problem.
before installing the forum, I pre-made a copy of all the files.
I had to return everything back, and the version returned to 2.1.13.
For the database, I did not return. Necessary?