Open asirota opened 1 year ago
It appears that WAP processes page in a menu bar differently than pages not in a menu bar. So when a page is in a menu bar access control is checked and the current code doesn't check the access control properly. The access control features for pages/post NOT in a menu bar work just fine.
function get_wa_post_meta()
expects an array to be passed into it holding the metadata of a post but currently a post ID is being sent into it and thus line 1882 throws an error when trying to see if an array key exists in a string
if (array_key_exists(self::RESTRICTED_GROUPS, $meta)) {
$restricted_groups = $meta[self::RESTRICTED_GROUPS][0];
}
if (array_key_exists(self::RESTRICTED_LEVELS, $meta)) {
$restricted_levels = $meta[self::RESTRICTED_LEVELS][0];
}
See this release to test a fix for this issue
To simulate error try logging in with MPG credentials support@newpathconsulting.com/
the membership level and group sync just fine to the account in WordPress
But ALL pages whether they have access control or not yield this error: