Title: EM = WPML Warning: call_user_func_array() [function.call-user-func-array]:
Last modified: August 20, 2016

---

# EM = WPML Warning: call_user_func_array() [function.call-user-func-array]:

 *  Resolved [vacovic](https://wordpress.org/support/users/vacovic/)
 * (@vacovic)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/em-wpml-warning-call_user_func_array-functioncall-user-func-array/)
 * 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/](http://wordpress.org/extend/plugins/events-manager/)

Viewing 11 replies - 1 through 11 (of 11 total)

 *  [agelonwl](https://wordpress.org/support/users/angelonwl/)
 * (@angelonwl)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/em-wpml-warning-call_user_func_array-functioncall-user-func-array/#post-3392324)
 * Hi,
 * I get this too, I’ve let Marcus know about it. should get fixed soon.
 *  [Anders Pettersson](https://wordpress.org/support/users/anders-pettersson/)
 * (@anders-pettersson)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/em-wpml-warning-call_user_func_array-functioncall-user-func-array/#post-3392573)
 * Any word on when, or if, this will be fixed?
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/em-wpml-warning-call_user_func_array-functioncall-user-func-array/#post-3392580)
 * 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](https://wordpress.org/support/users/vacovic/)
 * (@vacovic)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/em-wpml-warning-call_user_func_array-functioncall-user-func-array/#post-3392581)
 * [@markus](https://wordpress.org/support/users/markus/), you can post when correct.
 * Thanks
 *  [Anders Pettersson](https://wordpress.org/support/users/anders-pettersson/)
 * (@anders-pettersson)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/em-wpml-warning-call_user_func_array-functioncall-user-func-array/#post-3392582)
 * 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)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/em-wpml-warning-call_user_func_array-functioncall-user-func-array/#post-3392602)
 * 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(){
 *  [Anders Pettersson](https://wordpress.org/support/users/anders-pettersson/)
 * (@anders-pettersson)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/em-wpml-warning-call_user_func_array-functioncall-user-func-array/#post-3392603)
 * Seems to work.
    Thanks a lot.
 * /Anders
 *  [agelonwl](https://wordpress.org/support/users/angelonwl/)
 * (@angelonwl)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/em-wpml-warning-call_user_func_array-functioncall-user-func-array/#post-3392604)
 * [@anders](https://wordpress.org/support/users/anders/) Pettersson
 * thanks for confirming.
 *  [Anders Pettersson](https://wordpress.org/support/users/anders-pettersson/)
 * (@anders-pettersson)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/em-wpml-warning-call_user_func_array-functioncall-user-func-array/#post-3392606)
 * 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)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/em-wpml-warning-call_user_func_array-functioncall-user-func-array/#post-3392607)
 * 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(){
 *  [Anders Pettersson](https://wordpress.org/support/users/anders-pettersson/)
 * (@anders-pettersson)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/em-wpml-warning-call_user_func_array-functioncall-user-func-array/#post-3392608)
 * 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.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 11 replies
 * 4 participants
 * Last reply from: [Anders Pettersson](https://wordpress.org/support/users/anders-pettersson/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/em-wpml-warning-call_user_func_array-functioncall-user-func-array/#post-3392608)
 * Status: resolved