Running 5.3 Nothing in the console. Checked mod_sec like others have suggested on other posts, no luck. Started deleting/uninstalling plugins, no luck. Paths are set correctly for file directories. Reinstalled EE multiple times, no change.
Cannot figure out why file fields will not load, anyone have any ideas?
Did you run the server wizard, just to rule out the major environmental possibilities?
https://docs.expressionengine.com/latest/installation/requirements.html#server-compatibility-wizard
And did you try it from the ‘Files’ File Manager? It eliminates some things that might be going on.
Did it ever work and then break, or has it been failing from the start?
In a pinch, I’ll turn on EE logging to get a feel for what’s happening.
$config['log_date_format'] = 'Y-m-d H:i:s';
$config['log_threshold'] = '2';
Make sure you’ve got a writable /system/user/log/ directory,
Going from 4-5 is generally super smooth. Did you check your add-ons for updates? A few had issues with the version difference.
But otherwise- go try to upload a file from the file manager- then presuming it fails, go to that logs folder, you may need to refresh. There should now be a log file in there. See if you can spot any hints in the latest. It’s always easier if this isn’t a live site- a live site the log fills up fast with stuff you’re not currently interested in.
My money is on a problem loading the drag and drop/file javascript, but if it’s not mod security, I can’t think why that would be. First thing I’d do is pour over the browser debug from developer tools, load up each resource individually and make sure they load.
I’d delete the current themes folder and upload a fresh one, just in case something borked in ftp. I’m not totally sure whether you did that already, but if not, worth a try.
But if none of that helps, I’d recommend signing up for support and getting us cp and ftp access when you do. The first thing we’d do is go through the browser dev tools debug- I think the odds are good there’s a hint there. But if not, it’s going to be a lot of plopping out debug until we can narrow in on the fail point.
I actually got something in the console. Not with the file field, but with the grid field (which also does not want to load). When trying to add a new row it jumps to the top of the page and gives me this error in the console:
Uncaught TypeError: Cannot read property ‘replace’ of undefined
in this file:
admin.php?S=cbfe345be11c6f193774b8d76df2f81c&D=cp&C=javascript&M=combo_load&plugin=ee_table_reorder,ee_url_title,ui.touch.punch&file=cp/channel/menu,cp/grid,fields/relationship/settings&v=1575651490:47 Uncaught TypeError: Cannot read property ‘replace’ of undefined
Aside from that everything seems to be loading fine. No errors in the network tab.
That makes sense- the javascript error is blocking the drag and drop for the files.
I searched and found 1 similar report, but they did a fresh install and the issue resolved itself: https://github.com/ExpressionEngine/ExpressionEngine/issues/172, but it sounds like you’ve re-installed numerous times.
Are you in a position where you can just delete all of your grid fields? I’d be curious whether a. that solves all javascript issues; b. you can create a new grid and not have it break.
And it might be worth deleting and re-uploading files- both system/ee and themes. Whatever it is, it’s very quirky.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.