Fatal error in another plugin (Shield Security)
-
Hi,
Since your latest update was released, anyone using our Shield Security plugin and wpForo are getting a fatal error. The problem seems to stem from the locale that you’re setting for a user (or for the site).
We’re using
determine_locale()
if it’s available (WP 5.0+) orget_locale()
which both have various filters and at some point your plugin is causingNULL
to be returned from either of these functions. We assume it’s astring
since that’s the function’s signature within the WP code and use it in our code as astring
, but it throws a fatal error in our code becauseNULL
has in-fact been returned.Could you please check your handling of user locale to ensure you’re not supplying
NULL
for the user or site locales, please? We’ve added mitigation to our plugin for our next release, but to be fair, we should be able to assume that the correct data types are returned from standard WordPress filters.Thanks!
- The topic ‘Fatal error in another plugin (Shield Security)’ is closed to new replies.