PHP Fatal error: apply_filters()
-
Hi there,
I manage quite a lot of WordPress sites, all of them with iTS. On quite a few of them I often see problems like this in the PHP log:
[26-Oct-2017 02:27:33] WARNING: [pool hidden.org] child 1456 said into stderr: “NOTICE: PHP message: PHP Fatal error: Uncaught Error: Call to undefined function apply_filters() in /var/www/vhosts/hidden.org/httpdocs/wp-content/plugins/better-wp-security/better-wp-security.php:16”
[26-Oct-2017 02:27:33] WARNING: [pool hidden.org] child 1456 said into stderr: “Stack trace:”
[26-Oct-2017 02:27:33] WARNING: [pool hidden.org] child 1456 said into stderr: “#0 {main}”
[26-Oct-2017 02:27:33] WARNING: [pool hidden.org] child 1456 said into stderr: ” thrown in /var/www/vhosts/hidden.org/httpdocs/wp-content/plugins/better-wp-security/better-wp-security.php on line 16″
On some days quite a few repetitions of this. Possibly some programm or bot is calling the website in a naughty way. But the point is, can you check if apply_filters() is defined and if not die gracefully, without causing a fatal error to be logged? It would really make me happy, as this has been going on for months.
BTW All my sites are completely up to date, and I’m using – in most but not all cases – a 100% nginx webserver config.
Cheers,
Tim
The topic ‘PHP Fatal error: apply_filters()’ is closed to new replies.