TanTanNoodles Facebook Photos FIX
Here’s a quick post for anyone who may be having troubles with WordPress 2.7.1 and the Facebook Photos plugin from Joe Tan @ TanTanNoodles. This was also posted to the Support Group.
Upon installation of the Facebook Photos plugin I received the following error.
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘media_admin_css’ was given in /derekdesigns.com/wp-includes/plugin.php on line 339.
The plugin continued to work, but the error was annoying.
I did some digging and it appears that one of the CSS loaders got changed and the function for media CSS was depreciated.
I found this fix and applied it to the last line of the “plugins-class.php” file.
if( ! function_exists('media_admin_css') ){
function media_admin_css(){
wp_admin_css('css/media');
}
}
This is a great plugin and I know I will get a LOT of use out of it.
Hope that helps!
Tags: Facebook Photos plugin, PHP, TanTanNoodles, Wordpress

March 11, 2009
You are great!!! This working fine! Thank You!!!
March 25, 2009
Thank you! I’m glad it worked. It really is a nice plugin. Joe did a great job on it!
March 20, 2010
Great post, I read this a while ago and, since then . I was wondering… can I translate your post into portuguese – with link to your original post, of course?