Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Cloudmaster on May 01, 2019, 06:00:22 PM

Title: Error after upgrade to 2.0.14
Post by: Cloudmaster on May 01, 2019, 06:00:22 PM
Hi all,

After fixing an earlier problem of not being able to upgrade through the package manager, I now have another problem after upgrading to 2.0.14.  Here's the error -

Fatal error: Function name must be a string in C:\FileStore\Website\forum\Sources\Load.php on line 133

That's all that shows on the screen so I can't roll back the update, any suggestions?

Thanks for looking

Edit:  Is it normal to have lots of .php~ files in the Sources folder?
Title: Re: Error after upgrade to 2.0.14
Post by: SpacePhoenix on May 01, 2019, 06:06:19 PM
What is line 133 of Load.php?

Any mods installed?

Don't you have a backup made from just before the upgrade attempt that you could roll back to?
Title: Re: Error after upgrade to 2.0.14
Post by: Cloudmaster on May 01, 2019, 06:12:37 PM
Quote from: SpacePhoenix on May 01, 2019, 06:06:19 PM
What is line 133 of Load.php?

This is the block that includes line 133

   // Most database systems have not set UTF-8 as their default input charset.
   if (!empty($db_character_set))
      $smcFunc['db_query']('set_character_set', '
         SET NAMES ' . $db_character_set,
         array(
         )
      );

Quote from: SpacePhoenix on May 01, 2019, 06:06:19 PM
Don't you have a backup made from just before the upgrade attempt that you could roll back to?

I can roll back to a copy made before any of todays updates were made
Title: Re: Error after upgrade to 2.0.14
Post by: Portugal on May 01, 2019, 06:47:52 PM
Hi,

PHP~ are like a bakcup files made by the system before changes made.
Title: Re: Error after upgrade to 2.0.14
Post by: Cloudmaster on May 06, 2019, 03:11:10 PM
Anyone have any insight into this problem?  I've managed to get my forum up to 2.0.13 but I'm still getting this error when upgrading to 2.0.14.  The upgrade claims to run on PHP 5.3 (I'm currently running 5.3.6)
Title: Re: Error after upgrade to 2.0.14
Post by: Arantor on May 06, 2019, 03:18:42 PM
2.0.14 needs PHP 5.4 and it won't work on 5.3 as you have.

You also have an insecure version of PHP since you're not even on the most recent version of PHP 5.3 which itself is long since end of life.
Title: Re: Error after upgrade to 2.0.14
Post by: lurkalot on May 06, 2019, 03:21:07 PM
Beat me to it as usual.  ;)

"Versions of SMF from 2.0.14 onwards require a version of PHP between 5.4 and 7.1. If you use PHP 5.3 or lower, it is necessary to use SMF 2.0.13 or lower. PHP 7.2 is not supported by SMF at this time."

Taken from here, https://wiki.simplemachines.org/smf/SMF2.0:Requirements_and_recommendations
Title: Re: Error after upgrade to 2.0.14
Post by: Cloudmaster on May 06, 2019, 03:24:36 PM
Quote from: Arantor on May 06, 2019, 03:18:42 PM
2.0.14 needs PHP 5.4 and it won't work on 5.3 as you have.

You also have an insecure version of PHP since you're not even on the most recent version of PHP 5.3 which itself is long since end of life.

It clearly states that it needs PHP5.3 (see link).  I'm aware my PHP version is way out of date but I 'inherited' the site from a webmaster who has long disappeared and I don't have the skills to modify the site for later versions.

https://custom.simplemachines.org/upgrades/index.php?action=upgrade;file=smf_patch_2.0.14.tar.gz;smf_version=2.0.13
Title: Re: Error after upgrade to 2.0.14
Post by: Arantor on May 06, 2019, 04:03:50 PM
The installer readme is wrong, and it has been since it was published.

The error you get is because the language changed in 5.4 to support it. So you either need to upgrade PHP, or never upgrade beyond 2.0.13.
Title: Re: Error after upgrade to 2.0.14
Post by: Oldiesmann on May 13, 2019, 10:32:31 PM
It should be noted that PHP dropped support for 5.3 back in August of 2014 so the better option would be to upgrade (or ask your host to if you can't).