Title: [Plugin: Yet Another Related Posts Plugin] Bug Found, with solution
Last modified: August 20, 2016

---

# [Plugin: Yet Another Related Posts Plugin] Bug Found, with solution

 *  Resolved [LordAzriel](https://wordpress.org/support/users/lordazriel/)
 * (@lordazriel)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-bug-found-with-solution/)
 * When using the InnoDB storage engine there is a bug that causes all the weight
   options to be set to “do not consider” every time the plugin’s options page is
   loaded. This is a particularly large bug as it completely deactivates YARPP by
   simply visiting its options page in the WordPress Admin.
 * The solution is to change line 65 of the options.php to:
    `$weight = yarpp_get_option('
   weight');`
 * Originally this line was:
    `$weight = yarpp_set_option('weight');`
 * The “set” is a typo which causes an options array to be saved with weight => 
   null.
 * [http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/](http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/)

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

 *  [mitcho (Michael Yoshitaka Erlewine)](https://wordpress.org/support/users/mitchoyoshitaka/)
 * (@mitchoyoshitaka)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-bug-found-with-solution/#post-2642211)
 * Oh my heavens! Thank you for pointing this out. I’ll push this out in the latest
   update. Thank you!
 *  [mitcho (Michael Yoshitaka Erlewine)](https://wordpress.org/support/users/mitchoyoshitaka/)
 * (@mitchoyoshitaka)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-bug-found-with-solution/#post-2642212)
 * Pushed out this beta: [http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.3.5.2b2.zip](http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.3.5.2b2.zip)
 * Once tested, hope to push it out quickly. It includes your typo fix but also 
   some corrections which will try to actually look at the value of `weight`, and
   set it correctly if it got destroyed.
 * Thanks again!

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

The topic ‘[Plugin: Yet Another Related Posts Plugin] Bug Found, with solution’ 
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/)

 * 2 replies
 * 2 participants
 * Last reply from: [mitcho (Michael Yoshitaka Erlewine)](https://wordpress.org/support/users/mitchoyoshitaka/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-bug-found-with-solution/#post-2642212)
 * Status: resolved