Support » Plugin: JQuery Html5 File Upload » Plugin Stoppeed Working after 3 weeks (we did no updates)

Viewing 7 replies - 1 through 7 (of 7 total)
  • I just found more stuff that it totally missing from github.

    <script type=’text/javascript’ src=’http://blueimp.github.com/JavaScript-Templates/tmpl.min.js?ver=3.5.1′></script>

    <script type=’text/javascript’ src=’http://blueimp.github.com/JavaScript-Load-Image/load-image.min.js?ver=3.5.1′></script>

    <script type=’text/javascript’ src=’http://blueimp.github.com/JavaScript-Canvas-to-Blob/canvas-to-blob.min.js?ver=3.5.1′></script>

    I changed the references to these files as follows, and it corrected the issue and the plugin is working again.

    In the jquery-html5-file-upload.php file change (around line 202 of the file)

    wp_enqueue_script ( 'tmpl-script', 'http://blueimp.github.com/JavaScript-Templates/tmpl.min.js',array('jquery'),'',true);
    	wp_enqueue_script ( 'load-image-script', 'http://blueimp.github.com/JavaScript-Load-Image/load-image.min.js',array('jquery'),'',true);
    	wp_enqueue_script ( 'canvas-to-blob-script', 'http://blueimp.github.com/JavaScript-Canvas-to-Blob/canvas-to-blob.min.js',array('jquery'),'',true);

    to

    wp_enqueue_script ( 'tmpl-script', 'http://blueimp.github.io/JavaScript-Templates/js/tmpl.min.js',array('jquery'),'',true);
    	wp_enqueue_script ( 'load-image-script', 'http://blueimp.github.io/JavaScript-Load-Image/js/load-image.min.js',array('jquery'),'',true);
    	wp_enqueue_script ( 'canvas-to-blob-script', 'http://blueimp.github.io/JavaScript-Canvas-to-Blob/js/canvas-to-blob.min.js',array('jquery'),'',true);

    Well, it still seems to me that the plugin has files on a remote server which means all files are not included in the plugin files.
    To me it is totally weird to not include all files into the plugin but have some at a remote server. NO THANKS !!!

    Thx PepsiAddict, your trick did the work.Now, its working like a charm.

    I had same problem and solved it downloading all the external JS and CSS and modifying the script (see modified script).

    function jqhfu_enqueue_scripts() {
    	$stylepath=JQHFUPLUGINDIRURL.'css/';
    	$scriptpath=JQHFUPLUGINDIRURL.'js/';
    
    	wp_enqueue_style ( 'jquery-ui-style', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/themes/base/jquery-ui.css' );
    	wp_enqueue_style ( 'jquery-image-gallery-style', $stylepath . 'jquery.image-gallery.min.css');
    	wp_enqueue_style ( 'jquery-fileupload-ui-style', $stylepath . 'jquery.fileupload-ui.css');
    	wp_enqueue_script ( 'enable-html5-script', 'http://html5shim.googlecode.com/svn/trunk/html5.js');
    	if(!wp_script_is('jquery')) {
    		wp_enqueue_script ( 'jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js',array(),'',false);
    	}
    	wp_enqueue_script ( 'jquery-ui-script', '//ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/jquery-ui.min.js',array('jquery'),'',true);
    	wp_enqueue_script ( 'tmpl-script', $scriptpath . 'tmpl.min.js',array('jquery'),'',true);
    	wp_enqueue_script ( 'load-image-script', $scriptpath . 'load-image.min.js',array('jquery'),'',true);
    	wp_enqueue_script ( 'canvas-to-blob-script', $scriptpath . 'canvas-to-blob.min.js',array('jquery'),'',true);
    	wp_enqueue_script ( 'jquery-image-gallery-script', $scriptpath . 'jquery.image-gallery.min.js',array('jquery'),'',true);
    	wp_enqueue_script ( 'jquery-iframe-transport-script', $scriptpath . 'jquery.iframe-transport.js',array('jquery'),'',true);
    	wp_enqueue_script ( 'jquery-fileupload-script', $scriptpath . 'jquery.fileupload.js',array('jquery'),'',true);
    	wp_enqueue_script ( 'jquery-fileupload-fp-script', $scriptpath . 'jquery.fileupload-fp.js',array('jquery'),'',true);
    	wp_enqueue_script ( 'jquery-fileupload-ui-script', $scriptpath . 'jquery.fileupload-ui.js',array('jquery'),'',true);
    	wp_enqueue_script ( 'jquery-fileupload-jui-script', $scriptpath . 'jquery.fileupload-jui.js',array('jquery'),'',true);
    	wp_enqueue_script ( 'transport-script', $scriptpath . 'cors/jquery.xdr-transport.js',array('jquery'),'',true);
    }

    As you can see I downloaded
    jquery.image-gallery.min.css
    from
    https://github.com/blueimp/jQuery-Image-Gallery/blob/master/css/jquery.image-gallery.min.css

    and I did put the file in
    wp-content/plugin/jquery-html5-file-upload/css/

    And downloaded

    tmpl.min.js
    from
    https://github.com/blueimp/JavaScript-Templates/blob/master/js/tmpl.min.js

    load-image.min.js
    from
    https://github.com/blueimp/JavaScript-Load-Image/blob/master/js/load-image.min.js

    canvas-to-blob.min.js
    from
    https://github.com/blueimp/JavaScript-Canvas-to-Blob/blob/master/js/canvas-to-blob.min.js

    jquery.image-gallery.min.js
    from
    https://github.com/blueimp/jQuery-Image-Gallery/blob/master/js/jquery.image-gallery.min.js

    and I did put the files in
    wp-content/plugin/jquery-html5-file-upload/js/

    Then I removed the http://blueimp.github.xxx part and added $styletpath and $scriptpath as you can see in the code on top.

    Obviously this will not allow me to have online automatic updates of the scripts and also I’ll need to rework the script on each update, but, I don’t like online scripts and the plugin was not working anyway because of problems/path on blueimp.github.com/blueimp.github.io repository…

    SdP

    FYI…
    On Github I found the following statement:
    Please note that you should download and upload all resources to your own server and not reference source files from the blueimp.github.io domain

    hoppylorinc

    (@hoppylorinc)

    I’ve uploaded the zip I use with the above modifications.

    Further bugs resolved:

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Plugin Stoppeed Working after 3 weeks (we did no updates)’ is closed to new replies.