Warning: call_user_func_array() expects parameter 1 to be a valid callback

This is a recurring error when dealing with actions/filter in WordPress.

The full warning message is actually : Warning: call_user_func_array() expects parameter 1 to be a valid callback array must have exactly two members in…/wp-includes/plugin.php on line 214

 

In my case, it is usually caused by a filter or an action not properly declared. Typically a parenthesis  at the wrong place like :

See the problem ?

The priority must be outside the callback array parameter as follow :

 


Quick fix for the Customizr – OptimizePress conflict

There’s a reported bug when combining the Customizr theme with the plugin OptimizePress : the OptimizePress editor in admin does not seem to work properly. This was caused by the fancybox script coming with the Customizr (lightbox), in conflict with Optimize Press

Solution  :

There are two ways to fix the issue :
1) Method 1 : in appearance > customizer > images : uncheck “Enable/disable lightbox effect on images”
2) Method 2 : add the following code in your functions.php of the child theme :

 


Who’s behind the wordpress.org free themes ? 6

We all know of course that there’s one major guy called Matthew Mullenweg behing the whole WordPress.org ecosystem. But did you know that the 2621 themes of  the WP.org theme repository (as of today July, 17th 2014)  have all been carrefully reviewed by a very small team of incredibly awesome people ? WordPress experts, they check every […]