WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] EM = WPML Warning: call_user_func_array() [function.call-user-func-array]: (12 posts)

  1. vacovic
    Member
    Posted 1 year ago #

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'EM_WPML_Admin::init' was given in /public_html/wp-includes/plugin.php on line 406

    Events Manager and WPML Compatibility

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 1 year ago #

    Hi,

    I get this too, I've let Marcus know about it. should get fixed soon.

  3. Anders Pettersson
    Member
    Posted 1 year ago #

    Any word on when, or if, this will be fixed?

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    it will be, but can't give an exact date

    one thing you can do at the moment is turn off your php error_reporting (ask your hosts) so the error doesn't appear on your screen.

  5. vacovic
    Member
    Posted 1 year ago #

    @Markus, you can post when correct.

    Thanks

  6. Anders Pettersson
    Member
    Posted 1 year ago #

    Don't know if it is helpful or not for you to know.
    But it seems that it doesn't give the warning in the front end for ordinary users, so in that sense it seems to work ok.

    As an admin I get the warning on all pages, and when I save a page or post it usually works, but the page doesn't load after saving so have to close that tab and open the same thing in a new one.

    Other only thing I've seen that doesn't work is to upload media files.
    If I turn of the compatibility plugin when doing that type of editing it seems to work, then just activate it again when done uploading pictures etc.

    Apart from this glitch it seems to handle most things with Event manager working together with WPML.

    /Anders

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    will provide an update asap, but the fix is quite simple:

    in the php file em-wmpl-admin.php replace any function with 'public static function' e.g.

    function init(){

    becomes

    public static function init(){

  8. Anders Pettersson
    Member
    Posted 1 year ago #

    Seems to work.
    Thanks a lot.

    /Anders

  9. agelonwl
    Member
    Posted 1 year ago #

    @Anders Pettersson

    thanks for confirming.

  10. Anders Pettersson
    Member
    Posted 1 year ago #

    Just add, so far everything seems to work but when editing a post I get the warning:
    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'EM_WPML_Admin::meta_boxes' was given in /var/www/vhosts/domain.com/httpdocs/wp-includes/plugin.php on line 406

  11. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    chances are you only replaced one function, or missed that specific function,

    any menion of 'function' should be preceded with 'public static' and it'll work.

    e.g.
    function meta_boxes(){

    becomes

    public static function meta_boxes(){

  12. Anders Pettersson
    Member
    Posted 1 year ago #

    Ok, that was the case. I obviously didn't read you instructions correct. I had just changed one, seems to work now. Will report if I find anything else, but this seems to have fixed it.

    /Anders

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic