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.

can not upload image more than 200k

October 08, 2012 9:22am

Subscribe [2]
  • #1 / Oct 08, 2012 9:22am

    Jasper Kooij

    9 posts

    I have a problem with uploading images larger than 200k and I do not understand why.

    Here is my setup:

    *fresh install of expression engine 2.5.3
    *removed index.php as my homepage and updated the .htaccess:

    <IfModule mod_rewrite.c>
             RewriteEngine On
             # Removes index.php from ExpressionEngine URLs
             RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
             RewriteCond %{REQUEST_FILENAME} !-f
             RewriteCond %{REQUEST_FILENAME} !-d
             RewriteRule ^(.*)$ /index.php/$1 [L]
     </IfModule>

    *had GD installed :
    gd

    GD Support enabled
    GD Version bundled (2.0.34 compatible)

    *created a directory for images /uploads/slider_images
    *gave it 777 permission
    * “Image Resizing Protocol” is set for GD 2 in the Image Resizing Preferences
    * in the file upload preferences I have the entries for the location:
    /home/********/public_html/uploads/slider_images/
    and
    http://domainname/uploads/slider_images/
    * the file type in the preferences is images only.


    PHP settings are:

    post_max_size 8M 8M
    memory_limit 32M 32M
    upload_max_filesize 2M 2M

    I have a dedicated server with WHM/Cpanel with Apache/2.2.23 and php 5.3.17.

    Yet when I upload an image over about 200k, the homepage appears in the upload window as you can see in the attached screenshot.

    How can I make this work?

     

  • #2 / Oct 08, 2012 5:39pm

    Shane Eckert

    7174 posts

    Hey there adlitinc,

    This is really interesting. I imagine some error is being hit and you are getting a 404, which takes you to the homepage by default if you have not yet setup a 404 page.

    I would like to take a look at this one.

    Please be on the lookout for an email from EllisLab.

    Cheers!

  • #3 / Oct 11, 2012 5:45pm

    Dan Decker

    7338 posts

    Just to update the thread. This issue was related to PHP memory limit.

    Upping PHP’s allowed memory got everything running smoothly.

    Cheers!

  • #4 / Oct 11, 2012 5:49pm

    Jasper Kooij

    9 posts

    Yes, That did the trick.

    Thanks,

  • #5 / Oct 12, 2012 4:14pm

    Shane Eckert

    7174 posts

    Hey all,

    Closing off the thread. Glad that Dan was able to help you get to the bottom of the issue Jasper.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases