Problem with cron when run directly by php
-
Hello,
I am running wp-cron.php directly by php as follows in a cron job:
php <path_to_wordpress>/wp-cron.php
I see the following PHP notice:
[11-Nov-2017 00:08:02 UTC] PHP Notice: Undefined index: HTTP_HOST in .../wp-content/plugins/merge-minify-refresh/merge-minify-refresh.php on line 102 [11-Nov-2017 00:08:02 UTC] PHP Stack trace: [11-Nov-2017 00:08:02 UTC] PHP 1. {main}() .../wp-cron.php:0 [11-Nov-2017 00:08:02 UTC] PHP 2. require_once() .../wp-cron.php:26 [11-Nov-2017 00:08:02 UTC] PHP 3. require_once() .../wp-load.php:37 [11-Nov-2017 00:08:02 UTC] PHP 4. require_once() .../wp-config.php:126 [11-Nov-2017 00:08:02 UTC] PHP 5. include_once() .../wp-settings.php:303 [11-Nov-2017 00:08:02 UTC] PHP 6. MergeMinifyRefresh->__construct() .../wp-content/plugins/merge-minify-refresh/merge-minify-refresh.php:801
I am guessing the plugin is expected HTTP_HOST to be defined, but it is not when wp-cron.php is called directly by php.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Problem with cron when run directly by php’ is closed to new replies.