ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Uploaded files appear in File Manager, but not in actual server directories

February 13, 2012 3:13pm

Subscribe [3]
  • #1 / Feb 13, 2012 3:13pm

    Jason Morehead

    456 posts

    The site in question is running EE 2.3.1 (I’m holding off on upgrading to EE 2.4 until a third-party add-on conflict is resolved). Everything was working just fine on the site until a few weeks ago. All of a sudden, file uploads stopped working completely. Users could upload files in the CP, and they’d receive “Upload Successful” messages with all of the files’ stats (e.g., file size). However, the files didn’t exist within the actual upload directories on the server, resulting in display errors, broken images, etc.

    I’ve double-checked the file permissions on the upload directories, and they’re all set to 777 and the hosting provider says that they haven’t made any changes to the server. Also, there aren’t any PHP or EE error messages. The client is getting antsy and I’m stumped. Any ideas?

  • #2 / Feb 14, 2012 2:01pm

    Shane Eckert

    7174 posts

    Hello Jason Morehead,

    I am sorry to hear you are running into this very odd issue.

    So the process completes, to the point that as far as ExpressionEngine is concerned the image is there and available for use, but the actual files are never uploaded to the server.

    You have done a great job troubleshooting! Most of the things I would have asked you to do, you have already done.

    There is one more thing you can do, this will enable you to better see errors if they are there. To turn debugging on please go to your Control Panel and navigate to Admin->System Administration-> Output and Debugging. Please set the last two settings, which are “Display Output Profiler?” and “Display Template Debugging?”, to yes.

    Go through the steps of uploading an image like you have always done. Look at the header and footer of the page through each step and look for errors or anything that does not seem right, like paths that are wrong or php errors.

    If that yields nothing of use, then continue on.

    If the file is not being written to the filesystem, then I would expect some error is just not where we can see it.

    My gut feeling is that we are going to find our answer in the system logs if everything up to this point has not tipped us off to the issue.

    Are you able to SSH to your server? (get shell access) If so would you be willing to run a few commands? I can walk you though the steps. I would like to know if the logs mention any errors, like failed writes, a full partition, things of that nature that would show up in the logs.

    Another option is to work with your hosting provider and ask them to check your logs while you are uploading an image. A good tech will know which logs to watch and will be able to recognize the errors and fix them in real time.

    Let me know how things go. I will be on the look out for your response.

    Cheers,

     

     

  • #3 / Feb 15, 2012 11:19am

    Jason Morehead

    456 posts

    Thanks for the suggestion. I turned on the debugging options and uploaded another image, but didn’t see anything amiss.

    As a test, I set up a temp admin account for the hosting provider so that they could log in to the CP and test image uploads themselves. This was their response:

    I have checked your issue and was able to duplicate the issue. I was able to upload the image file, however the image is not getting uploaded to the location. There is no issue on our server and also there is no error log generated.

    So I’m not sure if SSH’ing into the server and/or asking the host to check the logs when I upload an image will be of much value.

    Any other ideas? If not, then I guess I can just use this as further evidence that we need to move to EngineHosting. 😊

  • #4 / Feb 16, 2012 7:24pm

    Sean C. Smith

    3818 posts

    Jason,

    Yes this is very strange. Is this happening with all upload directories and upload fields? What happens if you create a new directory - does it upload?

    Sean

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases