Forums

Paid Memberships Pro
Warning on custom search query (1 post)

  1. TC.K
    Member
    Posted 7 months ago #

    Hi,
    I am creating custom query with wp_query, and display it within main loop. I use 's' parameter to display the search result.

    Everything is fine, but I got this warning :

    Notice: Trying to get property of non-object in /var/www/example/wp-content/plugins/paid-memberships-pro/paid-memberships-pro.php on line 770 Notice: Trying to get property of non-object in /var/www/example/wp-content/plugins/paid-memberships-pro/paid-memberships-pro.php on line 778

    When I check on the files it was this line if($current_user->membership_level->ID) that cause this problem. Any idea how to make it right?

    http://wordpress.org/extend/plugins/paid-memberships-pro/

Reply

You must log in to post.

About this Plugin

About this Topic