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?
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?
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
Hi,
PHP~ are like a bakcup files made by the system before changes made.
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)
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.
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
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
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.
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).