Plugin Upgrade to 2.4 Fatal Error
-
The latest plugin upgrade 2.4 causes a fatal error. I’ve reverted to the previous version 2.3 but wanted to let you know.
-
Hi.
Thank you for reporting this issue. But it won’t help if I don’t know what the fatal error is :/Hopefully it’s alright if I piggyback, but we had this problem for a few of our clients. It presented for us with a PHP Fatal error:
Using $this when not in object context in /home/$user/public_html/wp-content/plugins/sf-move-login/inc/classes/class-sfml-options.php:171Looking at that code, it appears the problem is using this plugin in conjunction with WP Rocket, as line 171 is part of the get_slugs() function. However, WP Rocket calls that function STATICALLY:
$urls = array_merge( $urls, SFML_Options::get_slugs() );which means, at least with PHP 7, using $this is a PHP Fatal. We downgraded to 2.3 as well and that resolved/sidestepped the problem. Hopefully that helps you sort out the problem as we’re otherwise extremely happy with this plugin.
Thanks!
Thanks, that’s really helpful.
Indeed the problem is in WP Rocket, but it’s my fault: this method was static and I changed it in 2.4.
I’ll report the issue to them (this part in WP Rocket should be removed anyway, 2.4 handles it).Here’s the error I receive.
Parse error: syntax error, unexpected T_STATIC, expecting T_STRING or T_VARIABLE or ‘$’ in /home/02/04/2900402/web/wp-content/plugins/sf-move-login/inc/classes/class-sfml-singleton.php on line 41
Hmm… I’m afraid to ask: do you know which version of PHP your site runs?
5.2.17-7+hw2
That’s what I thought, I totally forgot this new version requires php 5.3 at least >_<
Sorry, my mistake. So, basically you have 2 options here: upgrade your php version (php 5.2 is very old and doesn’t get security fixes), or downgrade Move Login to 2.3.For the record, the version 2.3 can be downloaded here.
Hi Greg,
I have the same problem :
Strict Standards: Non-static method SFML_Options::get_slugs() should not be called statically in /wp-rocket/inc/functions/plugins.php on line 255 Fatal error: Using $this when not in object context in /sf-move-login/inc/classes/class-sfml-options.php on line 171Thierry
–
-
This reply was modified 9 years, 5 months ago by
Grégory Viguier.
Hi Thierry,
Will be fixed in WP Rocket 2.9.3 it seems (so, not the today release but the next one).
Ok, thanks Greg
So if I had to delete the plugin via FTP the best thing to do is reinstall 2.3 UNTIL WP Rocket is updated right? Then I can update SF Move login..
Indeed, and WP Rocket 2.9.3 will be ready soon it seems.
It looks like WP Rocket 2.9.3 dropped today and the Changelog indicates that the conflict with Move Login 2.4+ was addressed. We’ll report back if there are any further problems, but I suspect this one is resolved from our perspectve–thanks!
Peter
-
This reply was modified 9 years, 5 months ago by
The topic ‘Plugin Upgrade to 2.4 Fatal Error’ is closed to new replies.