WordPress.org

Support

Support » Plugins and Hacks » [Resolved] WP SEO WP Cron Jobs – No Action Exists?

[Resolved] WP SEO WP Cron Jobs – No Action Exists?

  • Hey Yoast,

    When checking what cron jobs were in wp-cron, I have noticed 2 for WP SEO that show an error message next to them?

    wpseo_ping_search_engines X no action exists with this name

    yoast_tracking X no action exists with this name

    I was just wondering what would cause the ‘no action exists…’ error?

    Should these be running?

    Thanks 🙂

    http://wordpress.org/extend/plugins/wordpress-seo/

Viewing 6 replies - 1 through 6 (of 6 total)
  • It’s okay, I’ve found this. I must have accepted tracking, then turned it off.

    Turning it back on in the main WP SEO dashboard sorted it out!

    Sorry Joost, actually the yoast_tracking cron job is fine, but i still get a XNo action exists when I look at:

    Entry #1: wpseo_ping_search_engines X no action exists with this name

    This sounds like quite an important wp-cron job.

    Has any updates changed the way this works?

    Don’t recall seeing a cross next to it in previous versions.

    Any ideas how to fix it?

    Thanks! 🙂

    Also just checked in my error_log to see these Joost:

    [14-Jan-2013 16:11:18 UTC] PHP Parse error: syntax error, unexpected $end in /home/mysite/public_html/wp-content/plugins/wordpress-seo/inc/wpseo-functions.php on line 149

    I think I may have been restoring a backup at the time though, so it may not be relevant.

    Would love to get that cron job back working though!

    Hey Joost,

    I just fixed this issue in another plugin that wasn’t registering a hook with the wp cron action, and I think the issue in WP SEO not firing the wpseo_ping_search_engines cron job will be fixed in the same way.

    We simply need to hook it in I think.

    You’ll just need to add something like this:

    add_action( ‘wpseo_ping_search_engines’, ‘wpseo_ping_search_engines’ );

    That should register the hook and enable the cron job to fire as right now I don’t think it is when a new blog post is posted.

    Let me know what you think.

    Plugin Author Joost de Valk

    @joostdevalk

    As discussed on Twitter, this isn’t a bug, as it is hooked, but it might be buggy in behavior due to it only being hooked on frontend and not in backend, which is weird. Changing that behavior for the next release.

    Nice one Joost, look forward to the new version! 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] WP SEO WP Cron Jobs – No Action Exists?’ is closed to new replies.