Title: [Plugin: Yet Another Related Posts Plugin] 3.51 &#8211; error Call to a member function
Last modified: August 20, 2016

---

# [Plugin: Yet Another Related Posts Plugin] 3.51 – error Call to a member function

 *  Resolved [Martin](https://wordpress.org/support/users/rastarr/)
 * (@rastarr)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-351-error-call-to-a-member-function/)
 * Hi,
 * Running latest 3.51 and getting this error on the post edit page:
 * Related Posts:
    Fatal error: Call to a member function get_post_types() on a 
   non-object in /home/xxxxxx/public_html/gajwp/wp-content/plugins/yet-another-related-
   posts-plugin/class-admin.php on line 237
 * Any ideas?
 * [http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/](http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/)

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

 *  [mitcho (Michael Yoshitaka Erlewine)](https://wordpress.org/support/users/mitchoyoshitaka/)
 * (@mitchoyoshitaka)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-351-error-call-to-a-member-function/#post-2607822)
 * Thanks for the report! Was this being displayed in the “related posts” metabox
   on the edit post screen? Or someplace else? Regardless, I believe I’ve fixed 
   it in this beta:
 * [http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.3.5.2b1.zip](http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.3.5.2b1.zip)
 *  Thread Starter [Martin](https://wordpress.org/support/users/rastarr/)
 * (@rastarr)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-351-error-call-to-a-member-function/#post-2607839)
 * Yeah, displayed in the meta box
 *  [mitcho (Michael Yoshitaka Erlewine)](https://wordpress.org/support/users/mitchoyoshitaka/)
 * (@mitchoyoshitaka)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-351-error-call-to-a-member-function/#post-2607846)
 * Great. Please do check whether that beta fixes it.
 *  [Truth](https://wordpress.org/support/users/truth/)
 * (@truth)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-351-error-call-to-a-member-function/#post-2607906)
 * ^ 3.5.2b1 fixed the problem. Thanks!
 *  [Evan Jacobs](https://wordpress.org/support/users/iridox/)
 * (@iridox)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-351-error-call-to-a-member-function/#post-2607912)
 * The beta fixed it for me as well.
 *  [Decio](https://wordpress.org/support/users/decio/)
 * (@decio)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-351-error-call-to-a-member-function/#post-2607963)
 * Fixed here as well.
 *  [Jeff Lambert](https://wordpress.org/support/users/lambje/)
 * (@lambje)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-351-error-call-to-a-member-function/#post-2607991)
 * Ah, missed that you had a beta fix for this as I was having this problem about
   two months ago. Applied it to my site and it fixed the problem.
 * So, I’m updating a client that I’ve left back a few versions because of this 
   error. Is this beta stable enough to push to a production site?
 *  [mitcho (Michael Yoshitaka Erlewine)](https://wordpress.org/support/users/mitchoyoshitaka/)
 * (@mitchoyoshitaka)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-351-error-call-to-a-member-function/#post-2608010)
 * Yes, that beta is stable.
 * There is a more recent beta which fixes other issues as well, though: [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).
   I’d appreciate any help with testing that new version too.
 *  [aceintowson](https://wordpress.org/support/users/aceintowson/)
 * (@aceintowson)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-351-error-call-to-a-member-function/#post-2608038)
 * The command buttons (underline, bold, etc.) no longer appear on the edit page
   and the page’s content is in html code rather than in visual. I’ve read in other
   threads that I should switch to “visual” mode but there is no “html/visual” button
   either. I’m using 3.51 and assume it was an earlier version that I was using 
   when I wasn’t having any problems with editing. Any suggestions?
 *  [mitcho (Michael Yoshitaka Erlewine)](https://wordpress.org/support/users/mitchoyoshitaka/)
 * (@mitchoyoshitaka)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-351-error-call-to-a-member-function/#post-2608039)
 * [@aceintowson](https://wordpress.org/support/users/aceintowson/) I’m sorry, your
   issue sounds completely unrelated to what has been discussed here. Please open
   a new thread.

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

The topic ‘[Plugin: Yet Another Related Posts Plugin] 3.51 – error Call to a member
function’ 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/)

 * 10 replies
 * 7 participants
 * Last reply from: [mitcho (Michael Yoshitaka Erlewine)](https://wordpress.org/support/users/mitchoyoshitaka/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-351-error-call-to-a-member-function/#post-2608039)
 * Status: resolved