trwww
Forum Replies Created
-
I have a solution. The issue was not in the php, its in the javascript. I couldn’t figure out why there’s no form id there when that code runs though :/
Its a one line change, removing the line in question:
diff --git a/js/itsg_gf_ajaxupload_js.js b/js/itsg_gf_ajaxupload_js.js index 061ef87..2243f21 100644 --- a/js/itsg_gf_ajaxupload_js.js +++ b/js/itsg_gf_ajaxupload_js.js @@ -187,7 +187,6 @@ function itsg_gf_ajaxupload_init(){ //applies the fileupload function to the file input field jQuery( 'input.itsg_ajax_upload_browse' ).each(function () { - var form_id = jQuery( this ).parents( 'form' ).attr( 'id' ).split( '_' ).pop().trim(); jQuery( this ).fileupload({@ovann86 you can see an explanation of why the plugin sill works without this line on my github commit:
Progressing. Its 2.6.0 where this plugin became incompatible with woocommerce product gravity forms. The bug is somewhere in here:
svn diff -r 1579495:1579496 https://plugins.svn.ww.wp.xz.cn/ajax-upload-for-gravity-forms
I guess it would have to be in the php code because thats where the id gets generated in the form but its not obvious to me from the diff. So I’ll look harder shortly.
Gah, it must be from incompatibilities using it in a woocommerce product gravityform, it works fine in a blog post form.