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.
]]>I am offering some free content on my website but cannot seem to unprotect several pages? I can select post categories, but not select pages. Why is that? is there a work around? I suppose I could change these pages to posts, but the work involved in doing that is extensive (there are a LOT of pages I want to offer free).
How do I NOT protect a specific page?
]]>For those, who are struggling with the broken plugin in wordpress 4.7, here is the fix:
1.) open swpm-menu-nav-menu-edit.php in the plugin folder
2.) goto line 27 (inside the start_el method)
3.) change the regex to '/(?=<fieldset[^>]+class="[^"]*field-move)/'
I don’t think the author will release a new plugin, so check this regex from time to time for future releases of wordpress.
Have a nice day! ??
]]>After installing these Plugin i gets an internal Server Error 500 if i try to get on my dashboard or trying to logging me in as admin.
someone knows what i can do ?
]]>I’m not sure if this is to do with the wordpress update to 4.7 but ever since simple membership menu does not let me alter roles.
Can anyone assist me with this?
]]>Hi, I am looking for a simple membership plugin that allows my members to easily join. With few details needed. I want them to then be able to contribute to the blog. At this time this is all I need the membership plugin to do.
Is your plugin the right one for me?
]]>When I have the Simple Membership Menu plugin enabled I get the following error. This happens if I use the WordPress customizer. Also, in the customizer menu options the field setting for the plugin do not show, but they do show if I goto Appearance > Menu.
]]>Warning: in_array() expects parameter 2 to be array, string given in hoofandup.com/wpb/wp-content/plugins/simple-membership-menu/swpm-menu.php on line 217
I was hoping you could give me some direction on a rather strange error that I am receiving on a site I am currently working on, this being the error:
Warning: in_array() expects parameter 2 to be array, string given in /home/content/50/12857950/html/wp-content/plugins/simple-membership-menu/swpm-menu.php on line 217
Any help would be greatly appreciated.
sincerely,
Tim Andrus
The released version:
1. throws an error on a new menu item
2. sets the default for a new menu item to be the membership level of not logged in
3. displays all of the membership levels in the Under navigation link.
The following code changes that:
function add_swpm_fields( $id, $item, $depth, $args ) {
//// Logged levels
$levels = $this->get_membership_levels();
$item_groups = get_post_meta( $item->ID, self::META_KEY_NAME, true );
?>
<p class=”description description-wide menu-item-actions”>
Membership groups permitted :
<?php foreach($levels as $level)
{
$key = self::META_KEY_NAME.’-‘.$level->id;
$name = sprintf( ‘%s[%s]’, $key, $item->ID );
// Handle the case where there is no array because it is a new menu item that has been added.
// In this case checkall of the member levels since it is more likely to be included than not.
if ( is_array( $item_groups ) ) {
$checked = in_array($level->id, $item_groups) || (count($item_groups) == 0 && $level->id == self::NOT_LOGGED_IN_LEVEL_ID) ? “checked” : “”;
} else {
$checked = “checked”;
}
// If the class menu-item-title is used then this is perceived to be a menu item that can be moved and will cause the
// Under link to include all of the member leves. Not good.
?>
<label class=”swpm-menu-item-title” style=”padding-top:8px;padding-bottom:8px;”>
<?php printf(
‘<input type=”checkbox” class=”menu-item-checkbox” name=”%3$s” value=”%1$s” %4$s> %2$s’,
$level->id,
$level->alias,
$name,
$checked); ?>
</label>
<?php } ?>
</p>
<?php
}