We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

File upload field will not load

How Do I?

Midwestern Interactive, LLC's avatar
Midwestern Interactive, LLC
28 posts
5 years ago
Midwestern Interactive, LLC's avatar Midwestern Interactive, LLC

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?

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
5 years ago
Robin Sowell's avatar Robin Sowell

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,

       
Midwestern Interactive, LLC's avatar
Midwestern Interactive, LLC
28 posts
5 years ago
Midwestern Interactive, LLC's avatar Midwestern Interactive, LLC

Ran the EE Wizard, said server was good to go.

File manager is fully functional, no issues or warnings.

Issues started popping up after upgrading from 4 to 5. 4 was fully functional.

Config settings for logs have been set, directory is in place!

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
5 years ago
Robin Sowell's avatar Robin Sowell

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.

       
Midwestern Interactive, LLC's avatar
Midwestern Interactive, LLC
28 posts
5 years ago
Midwestern Interactive, LLC's avatar Midwestern Interactive, LLC

I actually uninstalled all my addons hoping that it would help. No luck. And unfortunately the file manager allows me to upload successfully in every directory.

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
5 years ago
Robin Sowell's avatar Robin Sowell

AH! That’s helpful. Well, mod_sec would be my first bet, but you’ve already checked it. It’s worth checking twice. And second- is it an MSM site? File fields can have issues used on more than one msm site.

       
Midwestern Interactive, LLC's avatar
Midwestern Interactive, LLC
28 posts
5 years ago
Midwestern Interactive, LLC's avatar Midwestern Interactive, LLC

Ill give it a double check! And no its not a MSM site.

       
Midwestern Interactive, LLC's avatar
Midwestern Interactive, LLC
28 posts
5 years ago
Midwestern Interactive, LLC's avatar Midwestern Interactive, LLC

So mod_security is not installed on our server. Any thoughts?

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
5 years ago
Robin Sowell's avatar Robin Sowell

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.

       
Midwestern Interactive, LLC's avatar
Midwestern Interactive, LLC
28 posts
5 years ago
Midwestern Interactive, LLC's avatar Midwestern Interactive, LLC

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.

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
5 years ago
Robin Sowell's avatar Robin Sowell

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.

       
Midwestern Interactive, LLC's avatar
Midwestern Interactive, LLC
28 posts
5 years ago
Midwestern Interactive, LLC's avatar Midwestern Interactive, LLC

I have a local copy I can delete stuff on easily, so ill give that a shot. If nothing else I saved my EE4 copy that worked and might just have to run off that. Ill report back with the results!

       
Midwestern Interactive, LLC's avatar
Midwestern Interactive, LLC
28 posts
5 years ago
Midwestern Interactive, LLC's avatar Midwestern Interactive, LLC

Looks like updating the themes folder with a fresh copy, specifically the /themes/ee folder, did the trick!

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
5 years ago
Robin Sowell's avatar Robin Sowell

LOL- I’ll take it! Glad you were able to get it working!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.