Title: Warning message (YARPP_Cache.php)
Last modified: March 25, 2021

---

# Warning message (YARPP_Cache.php)

 *  Resolved [sp691](https://wordpress.org/support/users/sp691/)
 * (@sp691)
 * [5 years ago](https://wordpress.org/support/topic/warning-message-yarpp_cache-php/)
 * Hi, this message has recently been appearing at the top of all of my pages:
 * Warning: join(): Invalid arguments passed in /home/customer/www/[removed my domain
   name for privacy].com/public_html/wp-content/plugins/yet-another-related-posts-
   plugin/classes/YARPP_Cache.php on line 325
 * How do I fix it? Thanks!

Viewing 15 replies - 1 through 15 (of 15 total)

 *  Thread Starter [sp691](https://wordpress.org/support/users/sp691/)
 * (@sp691)
 * [5 years ago](https://wordpress.org/support/topic/warning-message-yarpp_cache-php/#post-14233819)
 * In follow up, I contacted my host (Siteground) about this issue as well. They
   said it’s a caching issue from Ezoic’s end (I recently added Ezoic to my site
   a couple weeks ago and have been dealing with caching issues since).
 * After deactivating YARPP and clearing the cache in Ezoic, the issue was resolved.
   However, I would still like to use this plugin. Is it not compatible with Ezoic?
 *  Plugin Support [Michael Nelson](https://wordpress.org/support/users/mnelson4/)
 * (@mnelson4)
 * [5 years ago](https://wordpress.org/support/topic/warning-message-yarpp_cache-php/#post-14235114)
 * Hi [@sp691](https://wordpress.org/support/users/sp691/), I don’t think that error
   actually had anything to do with Ezoic, as YARPP’s cache is a database cache 
   that’s probably totally separate from Ezoic’s form of caching (but I’m not very
   familiar with Ezoic and how it might differ from other caching plugins).
 * Here’s a version of YARPP that might fix the warning (it’s a bit hard to say 
   as I don’t know why you’d be getting this warning in the first place). Here’s
   how you can try it:
 * 1. Download the new version from here: [https://drive.google.com/file/d/18TuS42NanOXu2OAE6r_wCRYQsvUVUQMv/view?usp=sharing](https://drive.google.com/file/d/18TuS42NanOXu2OAE6r_wCRYQsvUVUQMv/view?usp=sharing)
   
   2. Go to your WordPress dashboard, click plugins, then “add new”, then “upload”
   and select the zip file you just downloaded 3. Deactivate the previous version
   of YARPP 4. Activate the new version of YARPP
 * If you’re able to test it, please let me know how it goes. If you can’t, no worries
   and we’ll do our best regardless.
 *  Plugin Author [YARPP](https://wordpress.org/support/users/jeffparker/)
 * (@jeffparker)
 * [5 years ago](https://wordpress.org/support/topic/warning-message-yarpp_cache-php/#post-14240843)
 * Hi [@sp691](https://wordpress.org/support/users/sp691/) if you’re able to test,
   do let us know! If we can get verification that the test build fixes the warning
   you’re seeing, we can have the fix included in our next release — which is slated
   for next week! Thanks so much.
 *  Plugin Author [YARPP](https://wordpress.org/support/users/jeffparker/)
 * (@jeffparker)
 * [5 years ago](https://wordpress.org/support/topic/warning-message-yarpp_cache-php/#post-14250616)
 * [@sp691](https://wordpress.org/support/users/sp691/) We have released a new version
   of YARPP today (v5.16.1) that attempts to resolve the issue you reported. Can
   you please confirm whether the release fixes the issue for you? Thanks so much!
 *  Thread Starter [sp691](https://wordpress.org/support/users/sp691/)
 * (@sp691)
 * [5 years ago](https://wordpress.org/support/topic/warning-message-yarpp_cache-php/#post-14250778)
 * Hello, thanks for letting me know about this update! Unfortunately, I am still
   seeing the warning message at the top of my pages.
 *  Plugin Author [YARPP](https://wordpress.org/support/users/jeffparker/)
 * (@jeffparker)
 * [5 years ago](https://wordpress.org/support/topic/warning-message-yarpp_cache-php/#post-14250812)
 * [@sp691](https://wordpress.org/support/users/sp691/) have you cleared any caches(
   ex. caching plugins) that you may have?
 *  Thread Starter [sp691](https://wordpress.org/support/users/sp691/)
 * (@sp691)
 * [5 years ago](https://wordpress.org/support/topic/warning-message-yarpp_cache-php/#post-14250893)
 * Yes, I updated the plugin and re-activated it. Then cleared the cache in Ezoic.
   I actually did not see the Recent Posts listed at the bottom of my posts where
   it should be. However, I did still see the warning message at the top of my pages.
 * I just tried it again and experienced the same thing.
 *  [nikhil.chaudhary](https://wordpress.org/support/users/nikhilchaudhary/)
 * (@nikhilchaudhary)
 * [5 years ago](https://wordpress.org/support/topic/warning-message-yarpp_cache-php/#post-14276404)
 * Hi [@jeffparker](https://wordpress.org/support/users/jeffparker/)
 * I’ve also faced this issue even in the latest version but I’ve fix for this:
 *     ```
       $tt_ids = [];
       foreach( $terms as $term ) {
       	$tt_ids[] = $term->term_taxonomy_id;
       }
       ```
   
 *  Plugin Author [YARPP](https://wordpress.org/support/users/jeffparker/)
 * (@jeffparker)
 * [5 years ago](https://wordpress.org/support/topic/warning-message-yarpp_cache-php/#post-14276492)
 * [@nikhilchaudhary](https://wordpress.org/support/users/nikhilchaudhary/) Thanks
   so much!
 * Would you be able to verify whether the following works for you?
 *     ```
       private function tax_criteria($reference_ID, $taxonomy) {
          $terms = get_the_terms($reference_ID, $taxonomy);
          // if there are no terms of that tax
          if (false === $terms) return '(1 = 0)';
   
          $tt_ids = [];
          $tt_ids = array_unique ( wp_list_pluck($terms, 'term_taxonomy_id') );
   
          return "count(distinct if( terms.term_taxonomy_id in (".join(',',$tt_ids)."), terms.term_taxonomy_id, null ))";
   
        }
       ```
   
 *  [nikhil.chaudhary](https://wordpress.org/support/users/nikhilchaudhary/)
 * (@nikhilchaudhary)
 * [5 years ago](https://wordpress.org/support/topic/warning-message-yarpp_cache-php/#post-14276657)
 * Unfortunately it generates a fatal error but we can resolve with this:
 * `$tt_ids = ( empty( $terms ) || is_wp_error( $terms ) ) ? [] : array_unique( 
   wp_list_pluck( $terms, 'term_taxonomy_id' ) );`
    -  This reply was modified 5 years ago by [nikhil.chaudhary](https://wordpress.org/support/users/nikhilchaudhary/).
    -  This reply was modified 5 years ago by [nikhil.chaudhary](https://wordpress.org/support/users/nikhilchaudhary/).
 *  Plugin Author [YARPP](https://wordpress.org/support/users/jeffparker/)
 * (@jeffparker)
 * [5 years ago](https://wordpress.org/support/topic/warning-message-yarpp_cache-php/#post-14294461)
 * [@nikhilchaudhary](https://wordpress.org/support/users/nikhilchaudhary/) can 
   you please confirm whether the following looks good to you? Open to suggestions
   as well. We’re unable to replicate the issue; thank you so much for your help
   with this.
 *     ```
       private function tax_criteria ( $reference_ID, $taxonomy ) {
         $terms = get_the_terms( $reference_ID, $taxonomy );
         // If there are no terms or WP error
         if ( is_wp_error( $terms ) || false === $terms ) {
           return '(1 = 0)';
          }
         $term_object_to_array = wp_list_pluck( $terms, 'term_taxonomy_id' );
          // If empty
         if ( empty( $term_object_to_array ) ) {
           return '(1 = 0)';
         }
         $tt_ids = join( ',', $term_object_to_array );
           return "count(distinct if( terms.term_taxonomy_id in (" . $tt_ids . "), terms.term_taxonomy_id, null ))";
       }
       ```
   
 *  Plugin Author [YARPP](https://wordpress.org/support/users/jeffparker/)
 * (@jeffparker)
 * [5 years ago](https://wordpress.org/support/topic/warning-message-yarpp_cache-php/#post-14314905)
 * [@nikhilchaudhary](https://wordpress.org/support/users/nikhilchaudhary/) ping
   🙂 Would you be able to test the code snippet above? Thanks so much in advance.
 *  [nikhil.chaudhary](https://wordpress.org/support/users/nikhilchaudhary/)
 * (@nikhilchaudhary)
 * [5 years ago](https://wordpress.org/support/topic/warning-message-yarpp_cache-php/#post-14315428)
 * [@jeffparker](https://wordpress.org/support/users/jeffparker/) As far as I can
   see this should be working absolutely fine.
 *  Plugin Author [YARPP](https://wordpress.org/support/users/jeffparker/)
 * (@jeffparker)
 * [5 years ago](https://wordpress.org/support/topic/warning-message-yarpp_cache-php/#post-14316081)
 * [@nikhilchaudhary](https://wordpress.org/support/users/nikhilchaudhary/) thank
   you for confirming!
 *  Plugin Author [YARPP](https://wordpress.org/support/users/jeffparker/)
 * (@jeffparker)
 * [5 years ago](https://wordpress.org/support/topic/warning-message-yarpp_cache-php/#post-14338412)
 * Fix has been released in v5.18.1! 🎉

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Warning message (YARPP_Cache.php)’ is closed to new replies.

 * ![](https://ps.w.org/yet-another-related-posts-plugin/assets/icon-256x256.png?
   rev=2549977)
 * [YARPP - Yet Another Related Posts Plugin](https://wordpress.org/plugins/yet-another-related-posts-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yet-another-related-posts-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yet-another-related-posts-plugin/reviews/)

 * 15 replies
 * 4 participants
 * Last reply from: [YARPP](https://wordpress.org/support/users/jeffparker/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/warning-message-yarpp_cache-php/#post-14338412)
 * Status: resolved