• Resolved wiljeonline

    (@wiljeonline)


    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 [2.1.0]

    Used theme:
    WP Bootstrap Starter

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author fabianlindfors

    (@fabianlindfors)

    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

    (@wiljeonline)

    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. But I can’t reproduce those either.

    Cheers,
    Jeroen

    Plugin Author fabianlindfors

    (@fabianlindfors)

    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.