WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] yarpp_related_exist() and begin_yarpp_time() error (2 posts)

  1. Jonathan
    Member
    Posted 1 year ago #

    I thought I would post this here, in case anyone come across the same issue. I'm using yarpp_related_exist($args,$id) to check if there are related 'products', which is a Custom Post Type. However it was throwing an error:

    Missing argument 2 for YARPP_Cache_Bypass::begin_yarpp_time()

    This is called in class-core.php on line 1032 (Version 4.0.5 of YARPP & Version 3.5.1 of WordPress). Simply change line 1032 from:

    $this->active_cache->begin_yarpp_time($reference_ID); // get ready for YARPP TIME!

    to:

    $this->active_cache->begin_yarpp_time($reference_ID, $args); // get ready for YARPP TIME!

    Hope this helps, just remember this is a core file, so updating the plugin will remove this 'fix'.

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for reporting this bug! It will be fixed in the next version. You can preview the change here:

    http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.zip

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.