Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi,

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

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

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    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.

    Thread Starter vacovic

    (@vacovic)

    @markus, you can post when correct.

    Thanks

    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

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    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(){

    Seems to work.
    Thanks a lot.

    /Anders

    @anders Pettersson

    thanks for confirming.

    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

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    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(){

    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

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘EM = WPML Warning: call_user_func_array() [function.call-user-func-array]:’ is closed to new replies.