Home › Forums › BulletProof Security Pro › doing_wp_cron – doing wp cron displayed in Browser
Tagged: Browser, Cron, doing wp cron, doing_wp_cron
- This topic has 0 replies, 1 voice, and was last updated 11 years, 1 month ago by AITpro Admin.
-
AuthorPosts
-
AITpro AdminKeymaster
If you are using this constant in your wp-config.php file:
define( 'ALTERNATE_WP_CRON', true );
then you will see something very similar to this: http://forum.ait-pro.com/?doing_wp_cron=1386111559.8750269412994384765625 in your Browser. Why does that occur? I have no idea, but if you are wondering why you are seeing doing_wp_cron in your Browser then this is the reason for that. It is also possible that a plugin that you have installed is using/defining this constant somewhere else other than in your wp-config.php file. This code will also cause these php errors: PHP Warning: Cannot modify header information – headers already sent. See examples below.WordPress Codex Editing wp-config.php
http://codex.wordpress.org/Editing_wp-config.php#Alternative_Cron
Alternative Cron
Use this, for example, if scheduled posts are not getting published. According to Otto’s forum explanation , “this alternate method uses a redirection approach, which makes the users browser get a redirect when the cron needs to run, so that they come back to the site immediately while cron continues to run in the connection they just dropped. This method is a bit iffy sometimes, which is why it’s not the default.”
define( 'ALTERNATE_WP_CRON', true );
Solution:
This code is known to be problematic. If you are running into problems with standard WP Crons then setup a Direct Cron job in your web host control panel. The correct cron interval is 1 minute. Any other cron interval time interval is incorrect and will cause problems for Plugins and Themes that run Cron jobs. After setting up a Direct Cron job add this code in your wp-config.php file:define( 'DISABLE_WP_CRON', true );
PHP Warning: Cannot modify header information – headers already sent errors:
[02-Feb-2022 02:09:55 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/thelair/wp-includes/functions.php:5212) in /home/xxxxx/public_html/thelair/wp-admin/admin-header.php on line 9 [02-Feb-2022 02:57:22 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/thelair/wp-includes/functions.php:5212) in /home/xxxxx/public_html/thelair/wp-includes/pluggable.php on line 1355 [02-Feb-2022 02:57:22 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/thelair/wp-includes/functions.php:5212) in /home/xxxxx/public_html/thelair/wp-includes/pluggable.php on line 1358 [02-Feb-2022 04:02:40 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/thelair/wp-includes/functions.php:5212) in /home/xxxxx/public_html/thelair/wp-includes/pluggable.php on line 1355 [02-Feb-2022 04:02:40 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/thelair/wp-includes/functions.php:5212) in /home/xxxxx/public_html/thelair/wp-includes/pluggable.php on line 1358 [02-Feb-2022 04:03:09 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/thelair/wp-includes/functions.php:5212) in /home/xxxxx/public_html/thelair/wp-login.php on line 462 [02-Feb-2022 04:03:09 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/thelair/wp-includes/functions.php:5212) in /home/xxxxx/public_html/thelair/wp-login.php on line 478 [02-Feb-2022 04:03:09 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/thelair/wp-includes/functions.php:5212) in /home/xxxxx/public_html/thelair/wp-includes/functions.php on line 6821 [02-Feb-2022 04:03:09 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/thelair/wp-includes/functions.php:5212) in /home/xxxxx/public_html/thelair/wp-includes/pluggable.php on line 1046
-
AuthorPosts
- You must be logged in to reply to this topic.