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.