• with the last update of the plugin if menu ( v 0.6), I cannot see my personal admin menu bar due to an error :
    Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /home/talent/public_html/wp-content/plugins/if-menu/if-menu.php on line 119

    worked perfectly in the previous version 0.5

    pb can only be seen if log on

    https://www.ads-software.com/plugins/if-menu/

Viewing 6 replies - 1 through 6 (of 6 total)
  • I got same warning.

    Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in …/wp-content/plugins/if-menu/if-menu.php

    Plugin Author Andrei

    (@andreiigna)

    Hi,

    Thank you for letting me know about this.

    Can you post here what conditions are you using for menu items please? That would help to reproduce the issue on my site and see where the error happens

    Plugin Author Andrei

    (@andreiigna)

    Looks like there’s an issue when using translation plugins, and there’s some incompatible code in this plugin. I’m working on a fix for this

    Thank you so much!

    Let us know if you need more info. The error happened when I update the plugin to 0.6. It works fine before that.

    Plugin Author Andrei

    (@andreiigna)

    Hi,

    Sorry about the inconvenience.

    This happens as some new dynamic conditions for user roles have been added, and they changed some function names. Re-setting the conditions fixes this:

    • Disable conditions for menu items that have user roles
    • Enable conditions

    I’ll also make some code changes so this doesn’t happen again.

    Hello Andrei,
    I’m having the same issue, using a custom condition, but I’m referencing to any user role and I did not edit anything that is used in the custom condition.

    The menu item is correctly shown onthe condition, but I get this php advice.

    NOTE: I’m using WPML, WPML Translation Management and WPML String Translation, but this is happening on main language menu and i did not yet translated it.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘error message with new version 0.6’ is closed to new replies.