WordPress.org

Ready to get started?Download WordPress

Forums

JQuery Html5 File Upload
Plugin Stoppeed Working after 3 weeks (we did no updates) (8 posts)

  1. superiorinternet
    Member
    Posted 1 year ago #

    We have been using your plugin for several weeks and it has worked great, but all of the sudden it had stopped working totally. In troubleshooting I added the plugin to a new install with the base theme and got the same result. It appears that http://blueimp.github.com/jQuery-Image-Gallery/js/jquery.image-gallery.min.js was edited 20 hours ago, which seems like it might cause the problem. Any help would be appreviated

    http://wordpress.org/extend/plugins/jquery-html5-file-upload/

  2. superiorinternet
    Member
    Posted 1 year ago #

    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>

  3. PepsiAddict
    Member
    Posted 1 year ago #

    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);
  4. mix624
    Member
    Posted 1 year ago #

    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 !!!

  5. nvijaya
    Member
    Posted 10 months ago #

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

  6. sdpatsdp
    Member
    Posted 9 months ago #

    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

  7. sdpatsdp
    Member
    Posted 9 months ago #

    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"

  8. hoppylorinc
    Member
    Posted 5 months ago #

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

    Further bugs resolved:

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.