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?
In cases where I’ve had similar it’s either:
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.
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.
I’ve never had a 406 error in 20+ years!
That Stack Exchange thread certainly hints at Mod Security.
As I previously mentioned:
If they can’t do a simple thing like that it’s probably time to find another host!
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?
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.
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
You can see all of the changes in the pull request, but the gist is:
Edit system/ee/legacy/libraries/File_field.php line 226:
'fields/file/cp', change to 'fields/file/control_panel',
That should do it!