Support » Plugin: Menu Item Visibility Control » Menu_Items_Visibility_Control::get_instance() should not be called statically

Viewing 7 replies - 1 through 7 (of 7 total)
  • Chirag Vora

    (@chirag740)

    I am getting the same message. @marcwitteveen any lead on this?

    Chirag Vora

    (@chirag740)

    I am getting the same message. @marcwitteveen any lead on this?

    Chirag Vora

    (@chirag740)

    Infact I am getting several warning in logs, such as these:

    [09-Feb-2014 21:42:58 UTC] PHP Strict Standards:  Non-static method Menu_Items_Visibility_Control::get_instance() should not be called statically in /htdocs/wp-content/plugins/menu-items-visibility-control/init.php on line 134
    [09-Feb-2014 21:42:58 UTC] PHP Strict Standards:  Declaration of Boom_Walker_Nav_Menu_Edit::start_lvl() should be compatible with Walker_Nav_Menu::start_lvl(&$output, $depth = 0, $args = Array) in /htdocs/wp-content/plugins/menu-items-visibility-control/includes/walker-nav-menu-edit.php on line 206
    [09-Feb-2014 21:42:58 UTC] PHP Strict Standards:  Declaration of Boom_Walker_Nav_Menu_Edit::end_lvl() should be compatible with Walker_Nav_Menu::end_lvl(&$output, $depth = 0, $args = Array) in /htdocs/wp-content/plugins/menu-items-visibility-control/includes/walker-nav-menu-edit.php on line 206
    [09-Feb-2014 21:42:58 UTC] PHP Strict Standards:  Declaration of Boom_Walker_Nav_Menu_Edit::start_el() should be compatible with Walker_Nav_Menu::start_el(&$output, $item, $depth = 0, $args = Array, $id = 0) in /htdocs/wp-content/plugins/menu-items-visibility-control/includes/walker-nav-menu-edit.php on line 206
    Chirag Vora

    (@chirag740)

    @marcwitteveen try http://wordpress.org/plugins/nav-menu-roles/ instead. It’s updated for WP 3.8

    Hi,
    I fixed all of those issue, you can try it https://github.com/satrya/menu-item-visibility-control

    >> Strict standards: Non-static method Menu_Items_Visibility_Control::get_instance() should not be called statically

    // On line 33 insert static for
    // public function get_instance() {
    public static function get_instance() {
    Plugin Author shazdeh

    (@shazdeh)

    Hi guys,

    Sorry for this issue, it has been fixed in the new version. Please update and the messages will go away. 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Menu_Items_Visibility_Control::get_instance() should not be called statically’ is closed to new replies.