• dspaude

    (@dspaude)


    Hi,

    I didn’t see any PHP version requirements for this plugin, so I tried to install it. Still using WordPress 3.5.3 and PHP 5.3 and cannot upgrade at this time. So, the short array syntax in (at least) the settings file causes a fatal error:

    Parse error: syntax error, unexpected ‘[‘ in /var/www/multitech.net/developer/wp-content/plugins/captchinoo-captcha-for-login-form-protection/admin/setting.php on line 26

    I would fix this myself, but is that the only file that has short array syntax? Short array syntax support was added in PHP 5.4. How many other problems might I run into if I do try to fix this myself?

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author osama.esh

    (@osamaesh)

    hello,
    thank you for reporting this issue,
    we will check and back to you soon

    Thread Starter dspaude

    (@dspaude)

    Any chance this might be changed?

    Plugin Author osama.esh

    (@osamaesh)

    Hello @dspaude ,
    sorry dear for being late, kindly update and check

    Thread Starter dspaude

    (@dspaude)

    Thank you! I have installed it and now need to configure it. Thank you very much for your time and effort!

    Thread Starter dspaude

    (@dspaude)

    Hi,

    I finally got a set of reCAPTCHA keys and enalbed Captchinoo and it took down the whole site. There are other files with the short array syntax that older versions of PHP don’t support.

    PHP Parse error: syntax error, unexpected ‘[‘ in /var/www/multitech.net/developer/wp-content/plugins/captchinoo-captcha-for-login-form-protection/google_recaptha.php on line 48

    Would you be able to fix those as well? There are just two arrays in that file. I changed mine manually and now everything works, but you should change yours too (in my opinion).

    Thread Starter dspaude

    (@dspaude)

    One more issue. When going to our login page via Incognito mode, we immediately get this error in WordPress: ERROR: Google captcha Error !!

    When I enter my username, password, and deal with the reCAPTCHA, the login works, but what is the error for?

    Thread Starter dspaude

    (@dspaude)

    I don’t see anything in the error logs that indicate what this “ERROR: Google captcha Error !!” message is all about. All I see is that someone has been trying to log in as admin thousands of times already. So much for reCAPTCHA.

    Plugin Author osama.esh

    (@osamaesh)

    hello,
    thank you for reporting the “array” issue, We will update & fix it very soon.
    regarding the Incognito mode, we will check it also and let you know

    Plugin Author osama.esh

    (@osamaesh)

    Dear @dspaude
    Kindly update to the latest version 2.3 and check again

    Thank you

    Thread Starter dspaude

    (@dspaude)

    I tried to deactivate version 2.2 and got this error. I also can’t upgrade because of the same problem:

    Deactivate:
    [Tue Feb 16 08:22:13 2021] [error] PHP Fatal error: Call to undefined function wp_unslash() in wp-content/plugins/captchinoo-captcha-for-login-form-protection/notifications.php on line 91

    Upgrade now:
    [Tue Feb 16 08:25:54 2021] [error] PHP Fatal error: Call to undefined function wp_unslash() in /wp-content/plugins/captchinoo-captcha-for-login-form-protection/notifications.php on line 91

    Thread Starter dspaude

    (@dspaude)

    To work around the fatal error mentioned above, I renamed Captcha.php to Captcha.php-old and then loaded the plugins page which forced the deactivation of the plugin and then renamed the file back to original and THEN updated to v2.3.

    Even after I updated to v2.3, I still see this error:

    ERROR: Google captcha Error !!

    https://www.multitech.net/developer/wp-login.php

    Any ideas why that is happening?

    Plugin Author wp-buy

    (@wp-buy)

    Could you please try the plugin on your website alone
    With all other plugins deactivated
    And tell us the results, please
    Thank you

    Thread Starter dspaude

    (@dspaude)

    Unfortunately, I can’t deactivate the other plugins because I get this fatal error caused by Captchinoo (as mentioned above). Apparently WordPress must go through all of the plugins with a notification (?) and Captchinoo expects to be able to use wp_unslash() but our version of WordPress (3.5.2) doesn’t have it??? I saw that it was a bug of some kind in WordPress based on upgrades from 3.3 to 3.5, but it was supposedly fixed before 3.5.1.

    Deactivate Plugin XYZ:
    [Wed Feb 17 09:57:56 2021] [error] PHP Fatal error: Call to undefined function wp_unslash() in /wp-content/plugins/captchinoo-captcha-for-login-form-protection/notifications.php on line 91

    Plugin Author osama.esh

    (@osamaesh)

    Hello @dspaude ,
    Thank you for the info,
    Unfortunately, Your WP version is too old and we can’t modify our plugin code to be compatible with the old WordPress versions, So please upgrade your current version of WordPress or modify the file manually and replace the “wp_unslash” with “stripslashes” function. this may solve the problem for you

    thank you

    Thread Starter dspaude

    (@dspaude)

    Thanks. I found that this problem also caused other admin functions to fail, so I cannot use Captchinoo with this version of WP. It was worth a try. You should update your minimum version requirements.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘PHP Short Array Syntax Fatal Error’ is closed to new replies.