Hi,
I am working (unsuccessfully) on the problem of my future posts not being published.
I have checked the following:
- My logs on the host tell me that there is an error 403 with wp-cron.php.
- When I call manually wp-cron.php from my browser, the future posts get published. That means this is not a problem of file permissions.
- The
echo $errno . " " . $errstr; gives me a 0, which means that the fsockopen call in cron.php actually succeeds
I have read the ticket http://trac.wordpress.org/ticket/3742 but now I am running out of ideas. What could be the problem?
Thanks.
Solved the problem. It was a .htaccess rule that was blocking the request:
SetEnvIfNoCase User-Agent ^$ bad_bot
<Limit GET POST HEAD>
Order Allow,Deny
Allow from all
Deny from env=bad_bot
</Limit>
Could a user agent be specified in WordPress' internal requests?
The requests just need to be added the following:
HTTP/1.0\r\nUser-agent: WordPress\r\n
In any case, how to modify my .htaccess file so that it accepts the internal requests from WordPress even if no User-Agent is specified (but keeping that rule of denying access if no User-Agent is specified)?
Additional question: which are all WordPress internal requests?
Potential GET requests in:
\wordpress\wp-admin\import\blogger.php
\wordpress\wp-includes\class-snoopy.php
\wordpress\wp-includes\comment.php (in this one a user agent with value 'WordPress' is supplied, see line 535)
Michael Clark
Member
Posted 4 years ago #
I just discovered the exact same problem on one of my blogs, I was blocking idiot spiders that don't give a user-agent. Please add one to the next version of WP. I'm running WP 2.3.2.
geofones
Member
Posted 4 years ago #
I'm getting lots of 404 errors in WP2.5 like this:-
/wp-cron.php?check=9big hex number
any help appreciated all from my blogs IP address