• Receiving the followig fatal error: Uncaught Error: Call to undefined function memb_is_loggedin() in /home/imagethe/public_html/liveyourlifeinstyle.com/members/wp-content/plugins/menu-items-visibility-control/init.php(81) : eval()’d code:1 Stack trace: #0 /home/imagethe/public_html/liveyourlifeinstyle.com/members/wp-content/plugins/menu-items-visibility-control/init.php(81): eval() #1 /home/imagethe/public_html/liveyourlifeinstyle.com/members/wp-includes/class-wp-hook.php(287): Menu_Items_Visibility_Control->visibility_check(Array, Object(WP_Term), Array) #2 /home/imagethe/public_html/liveyourlifeinstyle.com/members/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array) #3 /home/imagethe/public_html/liveyourlifeinstyle.com/members/wp-includes/nav-menu.php(777): apply_filters(‘wp_get_nav_menu…’, Array, Object(WP_Term), Array) #4 /home/imagethe/public_html/liveyourlifeinstyle.com/members/wp-includes/nav-menu-template.php(143): wp_get_nav_menu_items(Object(WP_Term), Array) #5 /home/imagethe/public_html/liveyourlifeinstyle.com/members/ in /home/imagethe/public_html/liveyourlifeinstyle.com/members/wp-content/plugins/menu-items-visibility-control/init.php(81) : eval()’d code on line 1

    Can you help?

    All other plug ins have been updated, if I disable the Menu Item Visibility Control plug in the site works but my Memberium code of course displays.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author shazdeh

    (@shazdeh)

    Hi!

    The problem is in one of your menu items you have this condition: memb_is_loggedin() and that function no longer exists (most likely the plugin you were using is not disabled), hence the error. If you can identify what plugin had that function simply reactivating it will resolve it; you can also go to Appearance > Menus and look for what menu item is using that condition and remove it, this will get rid of the error in frontend.

    Note that to avoid these errors, you must use function_exists function in the condition to prevent errors, for example in your case it would be:

    
    function_exists( 'memb_is_loggedin' ) && memb_is_loggedin()
    
Viewing 1 replies (of 1 total)
  • The topic ‘Urgent Help Needed – Fatal Error’ is closed to new replies.