Symptoms
Task related to APS-application WordPress fails in OA Task Manager with errors similar to following:
PHP Notice: Undefined index: REQUEST_METHOD in /usr/local/pem/vhosts/172325/webspace/siteapps/WordPress-5621/htdocs/wp-content/plugins/ip-geo-block/classes/class-ip-geo-block.php on line 108
Cause
Option WP_DEBUG
is enabled in wp-config.php
:
[root@linweb01 ~]# egrep 'define.*(WP_DEBUG)' /usr/local/pem/vhosts/172325/webspace/siteapps/WordPress-5621/htdocs/wp-config.php
define('WP_DEBUG', true);
In this case WordPress generates notices that are visible in output of APS-scripts. It causes failure of OA tasks.
Note: WordPress overrides value of setting error_reporting
in php.ini
Resolution
- Change value of setting
WP_DEBUG
fromtrue
tofalse
inwp-config.php
- Restart failed task