Call to a member function xss_clean() on null
-
So I found that
$antiXss = new AntiXSS();isn’t properly a global because I get this error.When I change it to it works:
use voku\helper\AntiXSS;
global $antiXss;
$antiXss = new AntiXSS();The error:
Fatal error: Uncaught Error: Call to a member function xss_clean() on null
in /Users/xx/local/yy/app/public/wp-content/mu-plugins/secondary-title/includes/hooks.php on line 125
Call stack:
secondary_title_edit_post(12252)
wp-includes/class-wp-hook.php:326
WP_Hook::apply_filters(NULL, array)
wp-includes/class-wp-hook.php:348
WP_Hook::do_action(array)
wp-includes/plugin.php:517
do_action('save_post', 12252, WP_Post, true)
wp-includes/post.php:5060WP 6.7.1
PHP 8.2.23
Local by FlyWheel
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Call to a member function xss_clean() on null’ is closed to new replies.