HowTo : Fix two major errors pointing to magic.php in YARPP 3.2b1 WordPress Plugin

Published On :

YARPP is the acronym for Yet Another Related Posts Plugin. One of the most popular WordPress plugin. If you are on WordPress it is recommended to make use of a set of related posts on the posts page. It helps your readers to gain some more knowledge by referring to those related posts. In turn, it will also help you reduce your bounce rate thereby increasing your blog’s SEO power.

Also Read :

Don’t look for alternatives to YARPP, because it’s the best one available at present.

error-in-yarpp-wordpress-plugin

YARPP 3.2 Beta Version 1 Errors

Below are the two major errors many fellow WordPress users faced on their blogs.

#1 Warning: Invalid argument supplied for foreach() in /…/wp-content/plugins/yet-another-related-posts-plugin/magic.php on line 54


#2 Warning: array_map() [function.array-map]: Argument #2 should be an array in /…/wp-content/plugins/yet-another-related-posts-plugin/magic.php on line 287

Warning: join() [function.join]: Invalid arguments passed in /…/wp-content/plugins/yet-another-related-posts-plugin/magic.php on line 27

Warning: Invalid argument supplied for foreach() in /…/wp-content/plugins/yet-another-related-posts-plugin/magic.php on line 54

The first error is what I faced for posts which had related posts. Whereas the second is faced by a user when he browses a page which has No Related posts.

HowTo fix these two errors ?

  • Downgrading & Reactivating – As this error occurs only in YARPP 3.2b1 due to minor bugs in the plugin code. It is recommended that you downgrade YARPP to the latest stable version i.e. YARPP 3.1.9. This will fix this issue though you need to wait a bit un till the cache of related posts is re-built again.
  • Upgrading & Reactivating – This solution is opposite of step 1. Instead of Downgrading to YARPP 3.1.9, Upgrade to YARPP 3.2b2. This also fixes the error.

Which method I chose to fix this error ?

I like to move on with things, So upgrading to the 3.2b2 version helped me fix this error. If I find errors on this version too, then will find a solution & notify via another blog post.

YARPP-upgraded-to-3.2b2

Note:–


When you plan to downgrade or upgrade, do de-activate the plugin & then extract the folder into your plugins directory. Once its extracted, re-activate the plugin from the WordPress Dashboard.

If you still face any problem while upgrading/downgrading then feel free to contact me using our contact form.

Also, Share your views on this small fix using the comments section!

Share :
Tagged as : 13 Comments
About » Has written 231 Post(s) «

I'm a Web Designer/Developer, SEO'er and a Blogger who gives a few Blogging Tips in the form of posts/tutorials. Follow & Subscribe to my Blog if you feel it's worth it.

HostGator
Loader

9 Comments Comments RSS

  1. #

    I have YARPP on my blog, but i have not upgraded to latest version,Your article will be very helpful to me if i decide to upgrade…

    • #

      Yup..YARPP is the best plugin I have seen for showing Related posts. But the developer made a big mistake by rolling the beta version with a major bug. Try upgrading to 3.2b2. Though 3.1.9 works well too.

  2. #

    Hi Mani. I’m not using this plugin yet. I have a couple of questions, it this the one that gives you the thumbnail of the post? Also, can you set it up to pull in posts from another blog? My blog is new but I would like to add posts from my other blogs.

    Thanks for the instructions, I’ll be sure to use them if I install the plugin.

    • #

      Well YARPP shows related posts only from your own blog. Not external blogs. The one which i’m using for showing related posts both from my blog & also external blogs is “Outbrain” You can try it, it works great. For a new blog it will show external posts. When you pile up your content base then it will start showing maximum ur blog’s posts.

      • #

        Ok, I’ll take a look at Outbrain soon. Right now I’m using Zemanta and most of my content will show up on their listings. Have you tried that one?

  3. #

    hi my name is Algernon
    great blog man , keep up the sweet work.

    cheers

  4. #

    i was installing this plugin and i was getting all nonsense errors….so i left it…

    but now looking once again to install it…..

  5. #

    Hi Mani, YARPP just all of a sudden stopped working for me in that it no longer showed related posts (no errors just displaying that there are no related posts). I hadn’t changed anything at all. I am using the 3.1.9 version but was thinking maybe I need to upgrade. Question: If I upgrade to the new beta version, will the plugin still have my preferences and custom settings I have created?

    btw: I submitted this question/issue on the plugin’s wordpress site but no answer yet so thought I’d ask you :-)

    thanks in advance!

Post a Comment

Your email is never published nor shared. Required fields are marked *

Also, use your Real name in the 'Name' field. Comment names with only keywords will be trashed.