• Resolved Cyrille37

    (@cyrille37)


    Hi,
    I’ve WP 4.7.3, Advanced Access Manager 4.2, AAM Plus Package v3.3, PHP 5.6.30

    When displaying WP home page as anonymous (no current user) there is the error:

    Notice: Trying to get property of non-object in /home/cyrille/Taf/Promeneurs du Net/wordpress/wp-content/plugins/advanced-access-manager/Application/Frontend/Manager.php on line 244

    The line 244 in Manager.php is :
    $object = AAM::getUser()->getObject('post', $post->ID);

    Seems that AAM::getUser() return null ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Cyrille37

    (@cyrille37)

    Important precision: Error (Notice) only appear when WP_DEBUG is true.

    • This reply was modified 7 years, 8 months ago by Cyrille37.

    Oh. Thank you for the feedback.

    This is due to the fact that invalid $post argument is passed. We’ll take care of this bug in our next release.

    Meantime, you can quickly install CodePinch plugin and I’ll be able to push the fix before the next official AAM release.

    Thank you,
    Vasyl

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Front: Trying to get property of non-object in Manager.php on line 244’ is closed to new replies.