*/
// Get name of plugin where model and view are located - and set the view path
- $plugIn = $this->config['validActions']['frontActions'][$menuItem][$action];
+ if (isset($this->config['validActions']['frontActions'][$menuItem][$action])) {
+ $plugIn = $this->config['validActions']['frontActions'][$menuItem][$action];
+ } else {
+ trigger_error("Front Controller: Invalid Action - menu = $menuItem, action = $action", E_USER_NOTICE);
+ }
// Build model and path and class names
$modelName = GLM_MEMBERS_WORDPRESS_PLUGIN_PATH . "$plugIn/models/front/$menuItem/$action.php";
// Otherwise, load and run the model
} else {
-// trigger_error("Front Controller: Loading ... Model = $modelName, Action = $action, Class = $className");
+ if (GLM_MEMBERS_PLUGIN_FRONT_DEBUG) {
+ trigger_error("Front Controller: Loading - Model = $modelName, Action = $action, Class = $className", E_USER_NOTICE);
+ }
// Load the model file, if it hasn't already
if (!class_exists($className)) {
if ($lockedToMember) {
$memberID = $lockedToMember;
+ // Next make darn't sure they are admin or members manager before checking for other member ID.
+ } elseif (!apply_filters('glm_members_menu_members', false)) {
+
+ wp_die('There has been a member access check failure. Please call for support.');
+
// Otherwise Check for other member selection options
} else {