[wp-trac] [WordPress Trac] #34143: Silent cron failure if spawn_cron() fails to make the POST request

WordPress Trac noreply at wordpress.org
Sun Oct 4 10:15:36 UTC 2015


#34143: Silent cron failure if spawn_cron() fails to make the POST request
----------------------------+-----------------------------
 Reporter:  idrarig         |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Cron API        |    Version:  4.3.1
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 At the end of the spawn_cron() function a request is made using
 wp_remote_post() to wp-cron.php to trigger the cron functionality.  If
 this call is not  successful, the cron jobs will never work.  The call may
 fail if the host is not configured properly.  This can happen when
 WordPress knows itself as http://localhost while we access it via some
 port mapping rule as http://localhost:5555.  I think it would be wise to
 give a warning somewhere because with modern technology (containers or
 VMs) and routing this problem happens easily and it's hard to debug. I
 don't know WordPress enough to suggest where the warning should go, but
 the user or the admin should definitely know of these problems.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34143>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list