Very weird issue this - never seen it before. When I access Structure in the control panel I'm getting javascript errors because something is cutting off the end of the Structure js files that the CP is accessing via the following type of URLS:
/admin.php?S=0&D=cp&C=javascript&M=load&package=structure&file=structure-collapse
Basically the end of the JS file is being shown as:
})(jQuery
rather than:
})(jQuery);
which is what the actual file has. So it isn't an issue with the Structure files not having been uploaded properly.
I've even tried reinstalling on another server, but same issue. I've also upgraded EE to the latest 2.10.3 version and installed the most up to date Structure version (3.3.19). Same issue.
I'm running on Ubuntu 14.4 with Nginx and PHP-FPM.
Anybody any ideas?
Update: I've been able to fix this... in the weirdest way. By adding a couple of line breaks at the end of the following Structure javascript files:
- jquery.ui.nestedsortable.js
- structure-collapse.js
That's it!
EE 2.10.x.
I think the version you are using is Buggy. Please try to upgrade or downgrade the module and give it a try