WordPress.org

Forums

Yoast SEO
[resolved] WP SEO WP Cron Jobs - No Action Exists? (7 posts)

  1. rossagrant
    Member
    Posted 2 years ago #

    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/

  2. rossagrant
    Member
    Posted 2 years ago #

    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!

  3. rossagrant
    Member
    Posted 2 years ago #

    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! :)

  4. rossagrant
    Member
    Posted 2 years ago #

    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!

  5. rossagrant
    Member
    Posted 2 years ago #

    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.

  6. Joost de Valk
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  7. rossagrant
    Member
    Posted 2 years ago #

    Nice one Joost, look forward to the new version! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags