Search Engine: Elastic

Article ID: 132386, created on Mar 15, 2018, last review on Mar 15, 2018

  • Applies to:
  • Operations Automation

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 from true to false in wp-config.php
  • Restart failed task

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07

Email subscription for changes to this article
Save as PDF