• Resolved allynbeth

    (@allynbeth)


    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.

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author Grégory Viguier

    (@greglone)

    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:171

    Looking 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!

    Plugin Author Grégory Viguier

    (@greglone)

    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).

    Thread Starter allynbeth

    (@allynbeth)

    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

    Plugin Author Grégory Viguier

    (@greglone)

    Hmm… I’m afraid to ask: do you know which version of PHP your site runs?

    Thread Starter allynbeth

    (@allynbeth)

    5.2.17-7+hw2

    Plugin Author Grégory Viguier

    (@greglone)

    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.

    Plugin Author Grégory Viguier

    (@greglone)

    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 171

    Thierry

    Plugin Author Grégory Viguier

    (@greglone)

    Plugin Author Grégory Viguier

    (@greglone)

    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..

    Plugin Author Grégory Viguier

    (@greglone)

    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

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Plugin Upgrade to 2.4 Fatal Error’ is closed to new replies.