WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 8 months ago

Last modified 8 months ago

#19621 closed defect (bug) (invalid)

Cron not working in WP 3.3

Reported by: hassanasad Owned by:
Milestone: Priority: normal
Severity: major Version: 3.3
Component: Cron API Keywords: reporter-feedback
Focuses: Cc:

Description

Hi,

I was working on wordpress cron and found that the cron doesn't synchronize the times even when the traffic is visiting site pages. The script works fine WP 3.2.1

Please check this. I believe wp-cron.php is not run in this latest release.

Change History (13)

comment:1 knutsp2 years ago

  • Cc knut@… added

There is no doubt that wp-cron.php is called and runs it's tasks. I see this from my webserver log files, scheduled posts are published and I get notified about updates to plugins.

I think you should try the support forums, and attach your script.

Suggest worksforme

comment:2 ocean902 years ago

  • Keywords reporter-feedback added
  • Severity changed from critical to normal

The script works fine WP 3.2.1

Which script?

comment:3 curtismchale2 years ago

wp-cron is not firing for me on a multisite install but working just fine on the same server but on a single site. Scheduled posts are missed in the multisite environment and automated backups are not run while both work fine in the single environment.

comment:4 TKornik2 years ago

  • Cc TKornik added
  • Severity changed from normal to major

It seems like the cron is firing but it fails to publish scheduled posts here. All of them get 'missed schedule' and remain scheduled past time.

comment:5 Nick_theGeek2 years ago

I am experiencing this in WP 3.3 only in multisite as well.

I checked the scheduled chron jobs and it showed several "one time" jobs from when I installed WP 3.3 RC1 to present that have not been run or removed from the scheduled jobs.

I have verified that the server chron is running normally, and jobs are getting scheduled, they just aren't running in multisite.

I have a single site install on a subfolder of this site that is scheduling correctly.

I have been able to get the chron working by enabling the alternate chron

define('ALTERNATE_WP_CRON', true);

However, I do not have to do that on other WP installs with this server, or even within the same site, only for multisite.

Version 0, edited 2 years ago by Nick_theGeek (next)

comment:6 cabraham2 years ago

I have been experiencing a similar issue. wp-cron.php@13725 works fine for me but wp-cron.php@18659 doesn't execute any of my scheduled tasks, like schedule posts, disqus comment sync etc. I am running a lighttpd web server. Funnily, wp-cron.php@18659 works fine on another Wordpress instance running on apache. Also, these are all single-site instances.

comment:7 solarissmoke2 years ago

Related/duplicate: #19818

comment:8 iandunn2 years ago

  • Cc ian_dunn@… added

comment:9 ryan2 years ago

I haven't been able to reproduce this with single or multisite. Is a Memcached or APC object-cache.php being used? There are some cron changes in 3.4 beta, does using it help?

comment:10 c3mdigital8 months ago

  • Keywords close added; reporter-feedback removed
  • Resolution set to invalid
  • Status changed from new to closed

Closing as invalid. If anyone is able to reproduce in 3.6 please reopen.

comment:11 SergeyBiryukov8 months ago

  • Keywords reporter-feedback added; close removed

comment:12 SergeyBiryukov8 months ago

  • Milestone Awaiting Review deleted

comment:13 johnbillion8 months ago

The WP Crontrol plugin can help pinpoint cron issues. It tests the WP-Cron spawner on your site and reports the error message if it fails.

Note: See TracTickets for help on using tickets.