Support » Plugin: Login No Captcha reCAPTCHA » Can’t use function return value in write context

  • Resolved johnish411

    (@johnish411)


    Good Day –
    I upgraded the plugin to 1.3.1 from 1.3.0 today. After the update, my site was throwing an HTTP 500 error. I FTP’d into the site and deleted the plugin directory. I then downloaded the plugin from wordpress.org and uploaded it.

    When I tried to activate the plugin it was showing the following error:

    Fatal error: Can’t use function return value in write context in /home/gothamvo/public_html/bigapplevolleyball.org/wp-content/plugins/login-recaptcha/login-nocaptcha.php on line 108

    –John

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Robert Peake

    (@robertpeake)

    Thanks for letting me know, John.

    Please could you try the following:

    in login-recpatcha/login-nocaptcha.php, delete line 108 and replace it with:

    $login_nocaptcha_v3_key = get_option('login_nocaptcha_v3_key');
    if ( empty($login_nocaptcha_v3_key) ||

    Then try re-activating. Let me know if you’re comfortable doing this and if it helps; if so I’ll get a patch out right away…

    Plugin Author Robert Peake

    (@robertpeake)

    p.s. the reason I ask is that I can’t reproduce this on my own site–deactivating and reactivating works fine. So I’m wondering if there’s something specific to your setup that can be resolved with the above patch. Keep me posted!

    Thread Starter johnish411

    (@johnish411)

    That has worked.

    Now it’s on to the next one…

    Fatal error: Can’t use function return value in write context in /home/gothamvo/public_html/bigapplevolleyball.org/wp-content/plugins/login-recaptcha/login-nocaptcha.php on line 156

    Line 156

    if (!empty(get_option('login_nocaptcha_v3_key'))) {
    

    Doing a similar update fixes this:

    
    $login_nocaptcha_v3_key = get_option('login_nocaptcha_v3_key');
    if (!empty($login_nocaptcha_v3_key)) {
    

    The site is on PHP 5.6.24

    Plugin Author Robert Peake

    (@robertpeake)

    Thanks, John. I’ve pushed a fix in 1.3.2. Hope that does the trick!

    Thread Starter johnish411

    (@johnish411)

    Thank you, Robert.

    Confirmed it does work.

    I updated another site, also running on the same web host directory as the other. It is working perfectly fine.

    Thank you again. It’s been a pleasure.

    Plugin Author Robert Peake

    (@robertpeake)

    Thanks for the clear report and glad we could get it working again reasonably quickly.

    Good day

    Please help
    My site shows the following error:
    Fatal error: Can’t use function return value in write context in /home/p341293/www/retooling.ru/wp-content/plugins/login-recaptcha/login-nocaptcha.php on line 353

    Plugin Author Robert Peake

    (@robertpeake)

    Hi @hasslich — what version of PHP are you running?

    Plugin Author Robert Peake

    (@robertpeake)

    (@hasslich — this looks like the same problem as above. You need to apply the patch (above) and upgrade to 1.6.2

    Please tell me how to do it
    I can not log into the console Wp

    Plugin Author Robert Peake

    (@robertpeake)

    @hasslich — the fastest way to regain site access will be to delete the plugin directory using sftp or similar. You can then reinstall the plugin and it will be the latest version that does not give the error. I hope this helps!

    @robertpeake
    thank you very much!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Can’t use function return value in write context’ is closed to new replies.