[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:53:53 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:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by idrarig):

 What you say about not checking the result of the remote request because
 of speed issues makes perfect sense to me too, so let's not change that.

 Still, another way to report this setup problem would be to do a check
 when installing WordPress, or after activating a new plugin. The check
 could be trying to issue a GET request to the website to see if it's
 reachable from within the website itself.

 To better explain my configuration, let's consider another scenario.
 Suppose you have a machine (be it a container, VM, VPS, whatever...)
 accessible from a certain public IP 1.2.3.4, and then configure the DNS so
 that yourdomain points to 1.2.3.4.  You install WordPress on yourdomain
 and this goes smoothly.  But if the machine itself does not really have
 the public IP 1.2.3.4 but is on a private network 10.0.0.0, and
 routing/firewalling is not properly taken care of, the machine may not see
 itself as yourdomain.  This happened to me in production with a
 proprietary webapp, but the setup problem applies to any website.

 During development, I have a port mapping localhost:5555 -> container:80
 set up by docker. This way I installed WordPress on http://localhost:5555,
 but from within the container the request  to http://localhost:5555/wp-
 cron.php can not work.

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


More information about the wp-trac mailing list