Quantcast
Channel: 500 – WordPress.org Forums
Viewing all articles
Browse latest Browse all 2443

WP cron HTTP 500 because of wp_die()

$
0
0

Hi,

This plugin causes the WP Cron to result in HTTP status 500 and possibly prevents other scheduled tasks from being executed because of a wp_die() in https://github.com/A5hleyRich/wp-background-processing/blob/jobs-database-table/classes/worker/wp-http-worker.php#L270

I’ve now manually edited the handle_cron() function in /mailchimp-for-woocommerce/includes/vendor/queue/classes/worker/wp-http-worker.php, but it would be better to see this fixed in the plugin itself of course.

Edited version of handle_cron():

		public function handle_cron() {
			if ( $this->is_worker_running() ) {
				// Worker already running, die
				wp_die();
			}

			if ( $this->queue->available_jobs() ) {
				$this->dispatch();
			}
		}

Best regards,
Reüel van der Steege


Viewing all articles
Browse latest Browse all 2443

Trending Articles