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
1
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
1
  • Home
  • Forums

Field field stuck on "Loading"

Development and Programming

ChrisClark's avatar
ChrisClark
60 posts
4 years ago
ChrisClark's avatar ChrisClark

I’m trying to use a “File” field on my newly setup Channel and the file field appears to broken in some way. Nothing shows up under it except for a “Loading” graphic. I did find a thread from a year ago about the same problem (https://expressionengine.com/forums/topic/252249/file-field-broken) but couldn’t deduce what the solution was.

Does anyone have any ideas?

       
Rob Allen's avatar
Rob Allen
2,950 posts
4 years ago
Rob Allen's avatar Rob Allen

In cases where I’ve had similar it’s either:

Missing/incomplete/corrupt javascript, re-uploading the /themes folder might cure that

Mod Security rules were the most common for me, some processes trigger them. Certainly if your web host is hot on security it’s worth looking. I log the time an error happens and ask my host to investigate, they’ve now disabled a few rules for me so I no longer get these sort of issues.

👍 1
       
ChrisClark's avatar
ChrisClark
60 posts
4 years ago
ChrisClark's avatar ChrisClark

Thanks, Rob. I’m in a chat with HostGator support and have been for about 30 minutes. The rep seems baffled by something. Still trying to figure it out. I did find this thread on Stack Exchange that suggested the issue might be with Hostgator.

       
ChrisClark's avatar
ChrisClark
60 posts
4 years ago
ChrisClark's avatar ChrisClark

Chrome Dev Tools showed me the error “Failed to load resource: the server responded with a status of 406 ().” Does that seem more likely to be a Javascript problem or a Mod Security problem? Or could it still be either one, just based on that?

       
Rob Allen's avatar
Rob Allen
2,950 posts
4 years ago
Rob Allen's avatar Rob Allen

I’ve never had a 406 error in 20+ years!

That Stack Exchange thread certainly hints at Mod Security.

As I previously mentioned:

  1. Make the error happen and make a note of the time
  2. Tell your host the time of the error, they can then look at the server logs to see what mod_sec rule(s) are at fault, and then disable them for your site.

If they can’t do a simple thing like that it’s probably time to find another host!

       
ChrisClark's avatar
ChrisClark
60 posts
4 years ago
ChrisClark's avatar ChrisClark

Thanks, Rob. They just finished their nearly 2-hour session with me by saying I need to contact ExpressionEngine directly. I would follow your advice and seek out a new host, but I paid in advance a year ago for 3 years with them (for a variety of reasons, some of which seem stupid now).

Since I am able to upload through the File Manager, I’ll probably just do that and then reference the image file some other way.

Out of curiosity, if I did decide to chalk this host (HostGator) up to a Sunk Cost, which hosting providers would you recommend?

       
Rob Allen's avatar
Rob Allen
2,950 posts
4 years ago
Rob Allen's avatar Rob Allen

Hosting? Personally speaking as I don’t represent official channels:

https://www.nexcess.net/ used to be the official EE hosting partner who offer specialised EE hosting, they may still be. I have used them in the past when a client needed a US host and their support was good back then.

I’ve used a UK host https://www.clook.net/ since 2003 - 17 years should say a lot. Their support is amazing and have a high priority with security matters and so on. A case of finding a good one and sticking with them.

Other EE devs recommend seem to be using https://www.digitalocean.com/ if you want to manage your own cloud servers.

I’d suggest joining EECMS on Slack https://expressionengine.com/blog/join-us-in-slack and asking for more suggestions.

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

Hey Chris, I agree with Rob. This screams mod_security. Drop me a line at [email protected] and I’ll have something you can try. If it works, I will post back 😉

       
ChrisClark's avatar
ChrisClark
60 posts
4 years ago
ChrisClark's avatar ChrisClark

Will do! Just sent a message.

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

Good news- Chris tested out a patch that was just submitted to the repo yesterday, and it looks to have resolved it. While it wasn’t a bug on our end, it was annoying too many of our users, so we changed the filename mod_security was objecting to.

Here’s the pull request if anyone else runs into it before the next release: https://github.com/ExpressionEngine/ExpressionEngine/pull/447

👍 1
       
Matahi's avatar
Matahi
6 posts
4 years ago
Matahi's avatar Matahi

Hi, Robin

I’m afraid I need that patch.

Thnx in advance

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

You can see all of the changes in the pull request, but the gist is:

  1. FTP and go to themes/ee/asset/javascript/compressed/fields/file/. See the file in there named cp.js? Make a copy of it named control_panel.js in that same folder.

  2. Edit system/ee/legacy/libraries/File_field.php line 226:

'fields/file/cp',

change to

'fields/file/control_panel',

That should do it!

       

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.