• Resolved Giacomo1968

    (@giacomo1968)


    I am getting the following error with WPS Limit Login version 1.5.8.1 on WordPress 6.4.2 on PHP 7.3; happened after an auto-update of the plugin:

    β€œAn error of type E_PARSE was caused in line 58 of the file [path_redacted_for_privacy]/public_html/wp-content/plugins/wps-limit-login/classes/plugin.php. Error message: syntax error, unexpected 'bool' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)”

    Rolling back to WPS Limit Login version 1.5.7 β€œsolves” the issue, but it can be easily fixed by changing the β€œprivate bool” declarations on lines 58 to 60 in β€œclasses/plugin.php” to be simply setting those declarations to be β€œprivate.” PHP 7.3 doesn’t support type declarations; that is a PHP >= 7.4 thing.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author NicolasKulka

    (@nicolaskulka)

    Hi, when you have a website with modules not compatible with 7.4, why to oblige site to 7.4 compliant with your module. Automatic update cause a lot of website with your extension to hang! Not very fair ??

    Thread Starter Giacomo1968

    (@giacomo1968)

    Agreed. We updated the servers to PHP 7.4 and even PHP 8.2 but it would have been nice if this issue was caught with PHP 7.3 installed and the automatic update didn’t happen.

    It caused a fatal crash when the automatic update to version 1.5.8.1 of WPS Limit Login happened on PHP 7.3. Why was the update allowed to happen if the crash condition was known?

    A warning or a failed/delayed update would have been preferred instead of a fatal crash.

    Hey there, I’m getting the same message but I’m confused.

    My server uses PHP 8.1, so where does the PHP 7.3 come from?
    Not sure what to do now and how to solve the issue?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error with version 1.5.8.1 on PHP 7.3: β€œAn error of type E_PARSE.”’ is closed to new replies.