HowTo : Fix two major errors pointing to magic.php in YARPP 3.2b1 WordPress Plugin
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 :
- Top 5 SEO tips to be implemented on a new Site
- Top 10 WordPress Plugins which I use on DailyBlogging
Don’t look for alternatives to YARPP, because it’s the best one available at present.
#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.
- 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.
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.
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!