Closed bytemypixel closed 10 years ago
btw - the error doesn't appear until I click on the entry_type that shows the file field.
also - I made sure all of my addons are latest versions & EE v2.5.5 - Build Date: 20121220
Are you using a standard EE file field? Or is it Safecracker file? Or some other file fieldtype? Does Firebug show a line number? If so, can you find out exactly what the JS is on that line and post it back here? I'd like to know exactly what's causing the JS error. Also, what other fieldtypes do you have installed on this channel?
Yes, it's the standard EE file field. The line number in Firebug is 39. So the error is in the file: /themes/third_party/nsm_morphine_theme/scripts/compressed.js - so maybe this is a morphine theme issue? Although I only get it where I'm using the entry_type field and no where else... The JS on line 39: jQuery.fn.extend({tableDnD:jQuery.tableDnD.build,tableDnDUpdate:jQuery.tableDnD.updateTables,tableDnDSerialize:jQuery.tableDnD.serializeTables});$(document).ready(function(){$(".mor table.col-sortable").tablesorter();$(".mor table.NSM_Stripeable").NSM_Stripeable();$(".mor table.NSM_MagicCheckboxes").NSM_MagicCheckboxes();$(".nsm_inactivetab").each(function(a){var b=$(this),c=b.data('addonid'),d=$(c),e=$("#menu"+c);f=b.parents('div.publish_field').eq(0);d.hide();e.hide();f.hide();});});
Take a look at issue 1.1 here: http://ee-garage.com/nsm-morphine/support
Looks like that's the problem you're having.
Hey thanks for finding that! It did get rid of that error, but I still can't upload a file when it loads in an entry_type field :/ I created a test file field in the same channel that is not within the entry_type field - that file field works fine (file manager pops up), but the one that is within entry_type does not. When I click on the "add file" link, nothing happens, I get no errors either. So that other js error does not seem to be related.
Maybe noteworthy: the file field I'm showing with entry_type is within a Matrix field. Other file fields within a Matrix field work fine, but just fyi.
Is the Matrix field with the offending file cell hidden by publish layout rule? Or just hidden with entry type?
Oops, sorry for my delay! It's just hidden by entry type.
Checking in - did you have any further thoughts on this one?
Sorry, I haven't had time to set up a dev environment with Matrix installed. If you want to send me a login to expedite: info at robsanchez dot com
I get this error in firebug: TypeError: $(...).tablesorter is not a function
I'm using a file upload field within matrix. By default, the matrix field is hidden. When I choose an entry type option that then shows the field, the file upload doesn't work - nothing happens and I get the above error.
This only happens when the file field is within Matrix.
If I remove the entry type field, this works just fine.
Any ideas?
Thanks!!!