Support » Plugin: Yet Another Related Posts Plugin (YARPP) » [Plugin: Yet Another Related Posts Plugin] Invalid argument supplied for foreach() in ../class-cache

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hmm… by chance are you not considering any taxonomies in YARPP settings? Or are you calling yarpp_related() or related_posts() or somesuch directly, with custom arguments?

    im using related_entries() but i changed to yarpp_related() and added some value on “relatedness option”
    bodies –> consider with extra weight)

    it seems the related posts now is working

    but still i’ve got php warning in my log:
    ….
    [04-Mar-2012 03:55:17] PHP Warning: Invalid argument supplied for foreach() in ../wp-content/plugins/yet-another-related-posts-plugin/class-cache.php on line 169
    [04-Mar-2012 03:55:21] PHP Warning: Invalid argument supplied for foreach() in ../wp-content/plugins/yet-another-related-posts-plugin/class-cache.php on line 169
    [04-Mar-2012 03:55:23] PHP Warning: Invalid argument supplied for foreach() in ../wp-content/plugins/yet-another-related-posts-plugin/class-cache.php on line 169
    ….

    Is there a reason you switched from related_entries() to yarpp_related()? Are you passing extra arguments into those functions? What happens if you change your YARPP settings to consider at least one taxonomy?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Yet Another Related Posts Plugin] Invalid argument supplied for foreach() in ../class-cache’ is closed to new replies.