Using EE 5.2.1
I've been working with a custom module for the last few days and haven't been in the control panel so I'm not sure when this problem started but I think it has to do with me making a mistake in another module as I was working on this custom module.
The Problem: When I'm in the entry page in the control panel I'm getting a JS error that says "EE.grid is not a function".
Here's the console:
Or
Uncaught TypeError: EE.grid is not a function at HTMLDocument. (admin.php?/cp/publish/edit/entry/13:890) at l (jquery.js?v=1552599112:3) at Object.fireWith [as resolveWith] (jquery.js?v=1552599112:3) at Function.ready (jquery.js?v=1552599112:3) at HTMLDocument.s (jquery.js?v=1552599112:2)
Here's the error:
That script line is saying:
Failed to load resource: the server responded with a status of 406 (Not Acceptable)
This hasn't been a problem before so I'm assume I've done something with a module somewhere to screw it up. When I was setting up my new module I was working off several core modules as examples and it's possible I did something with one of them.
Also, I can successfully save/edit entries but things related to files seem messed up. For instance, anything related to a file has a perpetual loading function running:
And if I try to add a new row
(since the JS isn't loading) I just get the hash link and sent back to the top of the page:
I haven't gotten very far in this project and I can save the code I have done so it wouldn't be the end of the world to start over, but if it's possible to just reload some core module or something that could possibly fix this that would obviously be better.