• Resolved peterfig

    (@peterfig)


    I’ve installed the plugin and it seems to work great. Very nice implementation!!
    However I’m getting a PHP error in the footer of the admin on the posts / pages that I’m editing that use the plugin. I’m using WordPress 3.8 so this may be related to it… here is the error:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, class ‘Multi_Image_Uploader’ does not have a method ‘admin_print_footer_scripts’ in /nfs/c06/h06/mnt/156802/domains/granery.newsitedemos.com/html/wp-includes/plugin.php on line 429

    Thanks for your help in advance!

    http://wordpress.org/plugins/multi-image-upload/

Viewing 2 replies - 1 through 2 (of 2 total)
  • jeroenvip

    (@hieronymusdesign)

    Hi mate,

    I also encountered this error. The call_user_func_array() is calling a function that doesn’t exist any longer. Open your multi-image-upload.php and remove line 82.

    /**
         * Initialize Multi_Image_Uploader
         */
        public function __construct()
        {
            $this->post_types = array('post', 'page');     //limit meta box to certain post types
            add_action('add_meta_boxes', array($this, 'add_meta_box'));
            add_action('save_post', array($this, 'save'));
            add_action('admin_enqueue_scripts', array($this, 'enqueue_scripts'));
    
           //add_action('admin_print_footer_scripts', array($this, 'admin_print_footer_scripts'));
    
        }

    That should do the trick.

    Plugin Author Tahir Yasin

    (@tahiryasin)

    Bug fixed!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP error in footer of admin’ is closed to new replies.