I have just installed a fresh copy of EE v5.3.2.
I have set file upload locations and set permissions on directories etc.
When I’m in the CMS and try uploading an image to any of my file directories I just get a blank white screen NO errors displayed. My admin.php file has debug: 1 and have turned on all error reporting in the CMS and nothing prints to the screen.
Then - I navigate to the file directory and EE says 0 images!
BUT - if i synch the directory inside the CMS it then shows the file i uploaded and is there for me to use.
1: Why do I have to synch everytime I add a new picture? 2: Why is there no errors printed to screen? 3: How do I fix this problem?
N.B. this happens when I try adding an image in File Manager, to an Entry, a Category, a user profile - everywhere you can upload a file.
What is odd is now and then it works as expected no white screen and no synching of the directory required???
Thank you in advance
Uploading files should automatically sync for you, including creating any image manipulations you have set up.
A few suggestions:
Did you check your servers compatibility? download the compatibility wizard from https://docs.expressionengine.com/latest/installation/requirements.html
Are your file directory URL’s and paths correct?
Might be worth checking any server side mod_sec rules aren’t being tripped while uploading.
Firstly, thank you very much for your reply.
1: Yes and all checks passed 2: Checked, double and triple checked against php info and all paths are 100% correct 3: This is on a shared hosting platform and cannot access the php ini settings
I have many EE sites built on this host without a problem.
It is very strange indeed as 75% of the time i’m just left with white screen after file upload and sometimes it just works. BUT I have to synch the image directories every time or the new image does not exist to choose.
I’m tempted to back up the database and re-instal EE
I’ve had a few mod_sec issues on various EE sites that run on shared hosting which have been resolved very quickly, literally in minutes (standard Cpanel setups, all with the same hosting company). The host in question is really good at support, that’s why I recommend them to clients who want to self host.
What I do is make a note of the time it “fails” then ask the host to see if any mod_sec rules have been triggered around that time. On the occasions where the host found a rule being triggered they disabled it for that site, no questions asked, job done.
Hosts can do it for shared hosting, if they want to. Worth asking.
Is this particular site on a different (shared) server to your other EE sites? If so it’s possible that particular server has a slightly different configuration.
Is there plenty of memory allocated? The bare minimum according to the docs is 32mb, I typically use a 128mb default for EE nowadays.
Are the images unusually large? I have seen similar issues when clients upload a 6000 pixel .jpg, if you’re running image manipulations on top of that you may need to allocate more memory so the server has enough to do all the processing.
Thanks for the replies I managed to get to the bottom of the problem…
All upload directories set to ‘images only’ was the problem. It only allowed images with full meta data to go through and images direct from mobile phones were not being accpeted either due to lack of meta data or different meta than EE understands.
It popped into my head the problem EE has with mobile images - especially rotating portrait images when uploaded from mobile get turned sideways due to meta that EE does not understand.
So, I switched it over to accept ALL file types on each upload directory and works 100% of the time now.