Fatal error with version 1.5.8.1 on PHP 7.3: βAn error of type E_PARSE.β
-
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.
- 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.