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.

Undefined Image when uploading with file manger dialog

December 28, 2010 7:33pm

Subscribe [4]
  • #1 / Dec 28, 2010 7:33pm

    Shan Ricciardi

    18 posts

    This question may be related to a resolved thread.

    Hello I am having trouble with images being Undefined or not showing when using the (overlay) file manger. I have updated to the current version of EE 2.1.3

    I have created a custom field with a field type of File (images only). When I try to upload an image to this field I get a image undefined. When I inspect via Firebug i see it’s pointing to this directory: /themes/cp_global_images/default.png . I have a file directory called “site_images” with permissions set to 777 with a corresponding File Upload Preferences. The images seem to be uploaded when I look via FTP (Coda) or in the Control Panel > Content > File Manger.

    Also, If I use the html “img” button to upload an image in a Textarea the image appears in the entry with the correct URL. Another strange thing happens within a textarea filed, If I select an image from the file manger it adds a link tag with <a href=“https://ellislab.com/asset/images/ent-partner-logo/undefined”>.

    Please Help

    Thanks and Happy holidays.

    Shan Ricciardi

  • #2 / Dec 29, 2010 8:21am

    Sue Crocker

    26054 posts

    Welcome to the ExpressionEngine forums, Shan.

    Since you’re new to the EE forums, have you seen EEWiki:// How to Post a Support Request?

    Thanks for posting your version information.

    In EE, there are two different settings for files. Are you setting them up correctly?

  • #3 / Dec 29, 2010 2:20pm

    Shan Ricciardi

    18 posts

    Hi Sue, yes I am a newbie and I had not read EEWiki: How to Post a Support Request. Thanks for that.
    I have no extensions on, memory limit is 64M, index.php is not being removed via .htaccess, tested in 3 different browsers (Ch,Sf,FF)...

    In regards to your question

    there are two different settings for files. Are you setting them up correctly?

    . Are you speaking of Server Path to Upload Directory & URL of Upload Directory? The server path was not obtained by my hosting provider so this could be wrong. I found it by looking at PHP info.
    I found the first part of the path Under “Apache Environment” Looking at “DOCUMENT_ROOT”. This path ended with www/. I then added the relative path to the file after www/. Should there be a trailing slash at the end of my path?

    Is there a quicker way to find the proper settings? My hosting provider is a small isp and is slow to respond.

    Thanks again Sue,

    Shan

  • #4 / Dec 29, 2010 5:09pm

    Ingmar

    29245 posts

    You can try to add this

    <?php echo realpath(dirname(__FILE__)); ?>

    to a .php file or php enabled template, that should provide you with the correct server path.

  • #5 / Dec 29, 2010 5:25pm

    Shan Ricciardi

    18 posts

    Thanks Ingmar!
    I have the correct Server Path to Upload Directory. Hosting Provider also confirmed the path.

  • #6 / Dec 29, 2010 10:52pm

    John Henry Donovan

    12339 posts

    Shan,

    Can you run our Server Wizard and check to see if your server matches all our requirements for EE2 please?

    Has a folder called _thumbs been created inside your site_images folder?

  • #7 / Dec 30, 2010 1:12am

    Shan Ricciardi

    18 posts

    Hi John, Ran the ee_wizard and all checked out (see attached image).

    There is a folder called “_thumb” in the image directory. No thumbnail images have been added to the directory. There are many images with the trailing _thumb.jpg in the upload destination, for example: images_thumb.jpg.

    I have been able to get an image to post from a file entry. It only posts if I upload the image and don’t re-size or crop it. I have been unsuccessful in getting an image to post to entry when i select an image from the file manger dialog box. I see where the image should be “image undefined”. When I go to edit the entry the image/file field is empty.

  • #8 / Dec 30, 2010 8:49am

    Sue Crocker

    26054 posts

    What permissions are showing for the _thumb folder?

    Here’s a partial screen shot of one of my sites. See how the _thumbs folder holds the thumb_filename.jpg files?

    Are you using any sort of third party add-ons? If so, which ones?

  • #9 / Dec 30, 2010 1:17pm

    Shan Ricciardi

    18 posts

    The _thumbs folder permissions are set to 755 and a different group and owner then site_images. I get an error if I try to change _thumbs permission to 777. site_images permissions are 777.

    I am not using any add-ons. This is a default ee install with some of the included modules loaded. I have included an screen shot of which modules are installed. I started the site with ee 2.1.1 and upgraded to 2.1.3. I noticed this behavior with both versions.

  • #10 / Dec 30, 2010 3:21pm

    Ingmar

    29245 posts

    This looks like an issue with your server configuration: the _thumbs folder was created by a low-level server user with (it looks like) insufficient permissions. If you can’t change the file owner and group consider asking your host to change the permissions to 777.

  • #11 / Dec 30, 2010 5:24pm

    Shan Ricciardi

    18 posts

    Yeah! That did it. I contacted my host and asked to change permission and group/ownership. I now see thumbnails in the file manager dialog and the file field. Images are now posting correctly. I found I was able to manually add the file _thumbs in new upload destinations and all file manger functions are working.

    Thanks everyone for your help. I think I will have an eggnog.

    Shan Ricciard

  • #12 / Dec 30, 2010 5:30pm

    Ingmar

    29245 posts

    Excellent 😊 please post again in case there’s anything else.

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

ExpressionEngine News!

#eecms, #events, #releases