Viewing 15 replies - 1 through 15 (of 18 total)
  • Nope!

    Results in a white admin main page although menu is still present as is the site.

    Plugin Author Khang Minh

    (@oddoneout)

    That is after you try step 2 I mentioned above?

    I am having this same issue. I tried both steps above with no luck. And, yes, you get the white admin page when you change the code as listed above and then hit activate. I tried changing the code back to the way it was originally and upon reloading the plugin page on the admin side it throws a “500 internal server error”.

    I am going to try and upload an older version and see if it comes back!

    Plugin Author Khang Minh

    (@oddoneout)

    @ty_h11 are you also using PHP 5.4.43? Can you contact me via: https://betterwp.net/contact/ ?

    Hello. I confirm what’s happening to other users (blank plugins page), along with the fatal error message while trying to activate the plugin:

    Parse error: syntax error, unexpected T_FUNCTION in /home/sites/[site]/wordpress/wp-content/plugins/bwp-recaptcha/bwp-recaptcha.php on line 51

    I’m using an older php version (5.2.4).

    Plugin Author Khang Minh

    (@oddoneout)

    It should have shown an error message in dashboard rather than a fatal error, I’m checking this issue.

    @sppadbase recaptcha version 2 requires at least PHP 5.3.2, is it possible for you to update to that version? It might be pretty easy, just contact your host. PHP 5.2 is way too old now.

    To be precise, the message is this:
    Plugin could not be activated because it triggered a fatal error.
    Parse error: syntax error, unexpected T_FUNCTION in /home/sites/sppadbase/wordpress/wp-content/plugins/bwp-recaptcha/bwp-recaptcha.php on line 51

    I’m now in touch with host admins…

    Plugin Author Khang Minh

    (@oddoneout)

    OK this will be fixed in 2.0.2, however it’s still recommended to update to at least PHP 5.3 to benefit from the new recaptcha.

    Oh and btw, by “blank admin page” do you mean the menu is still visible but when you click on it there’s nothing shown?

    I deleted the plugin and replaced line 51-52 as you suggested. I received these errors after I activated it:

    Warning: require_once(__DIR__/vendor/kminh/bwp-framework/src/class-bwp-version.php) [function.require-once]: failed to open stream: No such file or directory in /home/pnwqua5/public_html/test_conference_wordpress/wp-content/plugins/bwp-recaptcha/bwp-recaptcha.php on line 32

    Fatal error: require_once() [function.require]: Failed opening required ‘__DIR__/vendor/kminh/bwp-framework/src/class-bwp-version.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/pnwqua5/public_html/test_conference_wordpress/wp-content/plugins/bwp-recaptcha/bwp-recaptcha.php on line 32

    I can’t access anything on my dashboard once I get this message. The only way I’ve found to get around this is to delete the plugin directory entirely. I am running WP 4.03 and PHP Version 5.4.43.

    Plugin Author Khang Minh

    (@oddoneout)

    @pmelick I’m pretty certain that you’re not running PHP 5.4.43, as you can see in the log __DIR__ is not parsed by PHP at all. I will upload 2.0.2 somewhere for you guys to test, but in the meantime can you check with your host why you got 5.4.43?

    @khang Minh You’re right. I’m actually running PHP Version 5.4.45 . I’m sure because I copied it directly from my site stats.

    Plugin Author Khang Minh

    (@oddoneout)

    Plugin Author Khang Minh

    (@oddoneout)

    Is the version linked above working for you guys? Please reply so I can close this issue. Thanks.

    I added this update and now I get a blank reCaptcha screen when inside Contact form 7.

    I have verified that the reCaptcha Keys are correct from Google and all there area’s that required the key set.

    Any Idea’s??

    Hank Leander

    Just so you know for certain. I went through all the steps above prior to trying your beta update as I was also experiencing these issues after the plugin and wordpress updates.

    One other item to note is that I am running PHP version 5.3 as recommended. I did try PHP 5.4 with the same results.

    Any and all help will be GREATLY appreciated

    Hank Leander

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘syntax error, unexpected T_FUNCTION, PHP 5.4.43’ is closed to new replies.