Problem adding site admin as a custom standard membership owner, PHP error

Im getting this error

Warning: Creating default object from empty value in /home/agua9378/public_html/app/wp-content/plugins/membership/app/controller/class-ms-controller-member.php on line 346

Fatal error: Call to undefined method stdClass::save() in /home/agua9378/public_html/app/wp-content/plugins/membership/app/controller/class-ms-controller-member.php on line 349

  • Milan
    • WordPress Wizard

    Hello @fede_gonzalez_navarro,

    I hope you're well today and thank you for your question!

    An "admin" user is always bypassing any membership restrictions, therefore adding admin to any subscription wouldn't change anything. A user role of "admin" means that the user is able to access and do literally everything on the site and it's a default WordPress behavior.

    However, if you like to limit access to certain dashboard parts so no other users than admins (or members of certain membership) could access it, please go to your dashboard's

    "Membership 2" -> "Add-ons" page

    and enable the "Admin Side Protection" add-on.

    With this add-on you can setup protection rules for various parts of your dashboard by going to "Membership 2" -> "Protection Rules" page -> "Admin Side" tab.

    As for any other (non dashboard) parts of your site that you'd like to allow admin access only, you can simply create a standard-type membership, set it as private so nobody would be able to sign up for it, and protect the content with it. Although there'll be no members in this membership it will allow admin access but at the same time no content protected with it will be available to other users.

    I hope this helps!

    Milan Savaliya.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.