• Resolved qhk

    (@qhk)


    I am getting the following error when the plugin exists in my WP directory.

    Fatal error: Can’t use function return value in write context in /home/mtsmith/public_html/wp-content/plugins/uber-nocaptcha-recaptcha/includes/class-ncr-captcha-on-comment-form.php on line 40

    I have to rename the plugin directory in order to get my site back. What’s the easiest fix?

Viewing 4 replies - 1 through 4 (of 4 total)
  • @qhk,

    it looks like your problem is actually coming from the fact that you’re running an older PHP version. You can read more about this, here: https://stackoverflow.com/a/17139306.

    While all of our plugins are tested for backwards compatibility down to PHP 5.5, I think you might be running an even older version than that.

    Currently, WordPress recommended running a PHP version of minimum PHP 7.x (you can read more about this here: wordpress.org/about/requirements/).

    How to fix it:

    I’d honestly advise you to delete the plugin’s folder as of right now. I don’t think it’ll work on your server’s PHP version (it’s untested below PHP 5.5) and I’d hate for it to break something else.

    For a long term solution, I’d advise reaching out to your hosting company and having them upgrade your PHP version to the latest (stable) possible one. You can read moare about the major differences between PHP 5 & 7, here: https://www.quora.com/What-are-the-major-difference-between-PHP-5-and-PHP-7.

    Let me know if you need further help, I’d be happy to help.

    Thanks,
    Cristian.

    Thread Starter qhk

    (@qhk)

    You’re right, my hosting is running 5.4. I can switch to 5.5 or 5.6 in the CPanel. I’m surprised though, as my host is GoDaddy. Why wouldn’t they run 7.X?

    @qhk,

    I’m not sure I can really answer that question as I’ve never hosted a site with GoDaddy. But, I did manage to find this: https://au.godaddy.com/community/cPanel-Hosting/PHP7-Update/td-p/39347

    If you can turn on PHP 5.6, uBer reCaptcha should start working just fine.

    Let me know if you need further help.

    Thread Starter qhk

    (@qhk)

    Thanks for the help.

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