• Dear, the plugin doesn’t work with PHP 8 due a deprecated method. Within /goodbarber/singletons/query.php there is a call to get_magic_quotes_gpc(), deprecated with PHP 8.

    Since PHP no longer adds slashes to request parameters (removed in PHP 5.4), get_magic_quotes_gpc() always returns false. With that in mind, the code don’t have to do a check to the string.

    I’ve overcome the issue commenting the code like this:

    function strip_magic_quotes($value) {
        //if (get_magic_quotes_gpc()) {
          //return stripslashes($value);
        //} else {
          return $value;
        //}
      }

    I’m asking for plugin update to solve the issue from your side.
    Best regards

  • The topic ‘PHP 8 compatibility issue’ is closed to new replies.