Title: Error when using Members plugin
Last modified: May 3, 2019

---

# Error when using Members plugin

 *  Resolved [wiljeonline](https://wordpress.org/support/users/wiljeonline/)
 * (@wiljeonline)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-when-using-members-plugin/)
 * Hi,
 * I’m getting an error when using Advanced Forms alongside the Members plugin.
 * The error:
    PHP Notice: Trying to get property ‘post_parent’ of non-object in****/
   public_html/wp-content/plugins/members/inc/template.php on line 95
 * When does the error appear:
    The error appears when using the Members plugin 
   sidebar Widget options. When both or the or the other Widget checkboxes are enabled
   AND the emailing function for Advanced Forms is enabled, the error appears.
 * I’m using a form which creates a post and emails the results. When I set emailing
   to false, I get no error.
 * I’m not sure if this issue resides with AF or Members. You’re the first station,
   since I’m guessing the problem lies somewhere inside the emailing function of
   AF.
 * Used plugins:
    Advanced Custom Fields Pro [5.7.13] Advanced Forms Pro [1.6.3]
   [Members](https://wordpress.org/plugins/members/) [2.1.0]
 * Used theme:
    [WP Bootstrap Starter](https://wordpress.org/themes/wp-bootstrap-starter/)

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

 *  Plugin Author [fabianlindfors](https://wordpress.org/support/users/fabianlindfors/)
 * (@fabianlindfors)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-when-using-members-plugin/#post-11495713)
 * Hi!
 * This seems like a weird error. I downloaded the Members plugin and checked out
   the source. Line 95 looks like this:
 * `$parent_id = get_post( $post_id )->post_parent;`. The error indicates that $
   post_id is not an existing post. I’m not certain where this code is triggered
   in turn but I’m having a hard time connecting it to the emailing functionality.
 * Is there any chance I could get access to this site to check it out? Thanks!
 *  Thread Starter [wiljeonline](https://wordpress.org/support/users/wiljeonline/)
 * (@wiljeonline)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/error-when-using-members-plugin/#post-11495735)
 * Hi Fabian,
 * The error hasn’t appeared anymore in my development environment, so I’ll go and
   try to reproduce the error before getting back to you. Thanks for now!
 * I am getting some other weird errors though, posted a reply on that [here](https://wordpress.org/support/topic/php-warnings-cannot-start-session-when-headers-already-sent/).
   But I can’t reproduce those either.
 * Cheers,
    Jeroen
 *  Plugin Author [fabianlindfors](https://wordpress.org/support/users/fabianlindfors/)
 * (@fabianlindfors)
 * [7 years ago](https://wordpress.org/support/topic/error-when-using-members-plugin/#post-11520515)
 * Thanks! Hope we can reproduce the issue in the other thread.
 * I’ll close this ticket for now. Please re-open it if you have any more info for
   me!

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

The topic ‘Error when using Members plugin’ is closed to new replies.

 * ![](https://ps.w.org/advanced-forms/assets/icon-256x256.png?rev=1894254)
 * [Advanced Forms for ACF](https://wordpress.org/plugins/advanced-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-forms/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [fabianlindfors](https://wordpress.org/support/users/fabianlindfors/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/error-when-using-members-plugin/#post-11520515)
 * Status: resolved