PHP notices in Wordpress site are not disabled by php.ini

Refers to:

  • Plesk for Linux

Created:

2016-11-16 13:06:46 UTC

Modified:

2016-12-21 19:58:52 UTC

0

Was this article helpful?


Have more questions?

Submit a request

PHP notices in Wordpress site are not disabled by php.ini

Symptoms

There are PHP notices in Wordpress site, even though PHP error reporting was disabled or its level was set to 'E_ALL & ~E_NOTICE' in Parallels Plesk:

Notice: Undefined index: F1l3 in /var/www/vhosts/domain.tld/httpdocs/wp-includes/cache.php on line 2 
Notice: Undefined index: F1l3 in /var/www/vhosts/domain.tld/httpdocs/class-wp-ajax-response.php on line 2 Notice

Cause

Wordpress has its own config which overrides virtual host PHP configs.

Resolution

Disable error reporting in Wordpress config file the following way:

# grep DEBUG /var/www/vhosts/domain.tld/httpdocs/wp-config.php
define('WP_DEBUG', false);

See debugging in Wordpress for details.

Have more questions? Submit a request
Please sign in to leave a comment.