[Plugin: Flexible Upload V1.13]‘media_admin_css’error for WordPress V2.6.5
-
But, after activated, when uploading images, it shows error as following,
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 /www/users/……./wp-includes/plugin.php on line 311
To solve the error, please refer: https://www.ads-software.com/support/topic/186579, and look at alexrabe’s reply,
what should be done is to modify “flexible-upload-wp25.php” and find following content,
function fup_set_actions() {
remove_action(’media_upload_image’, ‘media_upload_image’);
add_action(’media_upload_image’, ‘fup_media_upload_image’);
add_action(’admin_head_fup_media_upload_form’, ‘media_admin_css’);
remove_filter(’media_send_to_editor’, ‘image_media_send_to_editor’);
add_filter(’media_send_to_editor’, ‘fup_media_send_to_editor’, 10, 3);
}and add red font part
function fup_set_actions() {
remove_action(’media_upload_image’, ‘media_upload_image’);
add_action(’media_upload_image’, ‘fup_media_upload_image’);
// not longer needed for wp2.6
if ( !function_exists(’wp_enqueue_style’) )
add_action(’admin_head_fup_media_upload_form’, ‘media_admin_css’);
remove_filter(’media_send_to_editor’, ‘image_media_send_to_editor’);
add_filter(’media_send_to_editor’, ‘fup_media_send_to_editor’, 10, 3);
}Refer: https://www.laotudou.com/wordpress-flexible-upload/
https://www.ads-software.com/extend/plugins/flexible-upload/
- The topic ‘[Plugin: Flexible Upload V1.13]‘media_admin_css’error for WordPress V2.6.5’ is closed to new replies.