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.

File Manager File Undefined

June 21, 2011 12:09am

Subscribe [3]
  • #1 / Jun 21, 2011 12:09am

    chrcollins

    77 posts

    This question may be related to a resolved thread.


      I have a similar problem as described .... 

      I created an upload directory and upload a bunch of .jpgs ~75KB in size. In file manager I can see the images in the correct upload directory and I can click on them and they display as expected. 

    I created a channel that has a file field type.  In the process of publishing the entry, I click the “add file” link to fill in the file field, and the file manager overlay appears with a list of images for the files I previously uploaded.  First thing I note is the images themselves are not displayed, just white boxes with the name below.  If I click on the file I want to add the entry shows the same white box image with the text “undefined” beneath. If I try and submit the entry I get an error saying the file filed is empty. 

    If I peruse another previously created upload directory I can see the images when I select the directory and I can select them for the file field type.  So there is something awry with this upload directory.  I checked the permissions, both 705. 

    I did try to upload a file from a remote server when adding a file to the file field and it worked.  However, if I edit the same entry and try to re-add the same file from the upload directory I get the undefined error again. 


    I have a simple installation ...

    EE 2.1.3 Build:  20110411

    WYGWAM

  • #2 / Jun 21, 2011 11:31am

    Kyle Cotter

    730 posts

    Hi chrcollins,

    Have you made sure both the URL and server path to the uploads directory is correct?

    Sue Crocker has a great post on finding out your path to the server, you can check it out at Where Am I?.

    Thanks.

  • #3 / Jun 21, 2011 4:34pm

    chrcollins

    77 posts

    My paths are correct.  I upload the files using file manager. I checked they are in the expected directory.  In file manager I can click on the images and they all display.  The problem arises when I have a file field type and try to load a file from the upload directory.

  • #4 / Jun 22, 2011 4:26pm

    Kevin Smith

    4784 posts

    Hey chrcollins–

    EE 2.2 was just released, and it comes with a radically overhauled file manager. Would it be possible for you to upgrade your installation? Since the file manager in EE 2.2 was completely rebuilt, I just wanted to check to see if upgrading was an option for you.

    Regarding your initial post, why do you have permissions of 705 set? For your upload directories, permissions should be set to 777.

  • #5 / Jun 22, 2011 10:34pm

    chrcollins

    77 posts

    Why would I want to give the general public write permission to my server directories?  That would seem like a serious security issue.  Also all my directories are set that way and one of them works fine.  I can’t tell the difference in the way the working directory is formed from the non-working directory. 

      One other note my site is set up as a sub-domain and is one level down (up) from the root directory.  Is it possible the file field type code that loads the file manager uploader has an issue handling this where the File Manager itself handles it OK?
     

      I can’t risk a major upgrade right now.  Maybe in a week or so.

  • #6 / Jun 23, 2011 6:11pm

    Wes Baker

    343 posts

    chrcollins,

    By setting the directory to 777, you aren’t giving the general public access to your directories, but you are giving users of the server that your site is on the ability to read, write and execute files in that directory. If you’re leery of that, you can try setting the permissions to 775, which only gives those other users the ability to read and execute files.

  • #7 / Jun 23, 2011 6:44pm

    chrcollins

    77 posts

    I did try to set to 777 and it did not help.  I have other clues as to the problem but it sounds like I should upgrade to 2.2 to and go from there.

  • #8 / Jun 25, 2011 5:38pm

    Lisa Wess

    20502 posts

    Hi, chrcollins -

    Yes, 2.2 changes the file manager so much that upgrading is the next step, for sure, on troubleshooting this.

    Can you let us know if that helps?

    Thank you!

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

ExpressionEngine News!

#eecms, #events, #releases