Support » Plugin: Simple Membership Menu » Uncaught Error: Class ‘SwpmAuth’ not found

  • All right, this is a new one:

    Uncaught Error: Class 'SwpmAuth' not found in /.../wp-content/plugins/simple-membership-menu/swpm-menu.php:200

    The class is defined in simple-membership/classes/class.swpm-auth.php, but apparently this plugin somehow fails to find it…

    So I’ve explicitly added on /simple-membership-menu/swpm-menu.php, on line 199, the following code:

    if ( !class_exists( "SwpmAuth" ) ) {
        include("../simple-membership/classes/class.swpm-auth.php");
    }

    This seems to have fixed the issue for now.

    • This topic was modified 2 months, 3 weeks ago by  Gwyneth Llewelyn.
    • This topic was modified 2 months, 3 weeks ago by  Gwyneth Llewelyn. Reason: Wrong code tags
  • You must be logged in to reply to this topic.