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.

Files won't resize afte PHP5 upgrade

September 11, 2009 12:56am

Subscribe [4]
  • #1 / Sep 11, 2009 12:56am

    Kristie Ann

    15 posts

    uploading photos now causes a white page to appear when i try to resize. Files are uploading, but it’s getting hung up on resizing. The sites all worked prior to upgrading to php5, which i need for another application. I updated the php.ini file and all is fine there.

    Any ideas?

  • #2 / Sep 11, 2009 1:32am

    John Henry Donovan

    12339 posts

    Kristie,

    A blank page usually means a suppressed error of sorts. Can you try and get some error reporting going?

    EE KB :HowTo Turn on Error Reporting

    How much PHP memory do you have?

    Admin ›  Utilities ›  PHP Info

    Look for the value for memory_limit

  • #3 / Sep 11, 2009 3:22am

    Kristie Ann

    15 posts

    Errors are turned on and nothing appears.

    PHP Memory is at 32.

    GD support is enabled. I’m not seeing any related errors on my cpanel error log.

    and thanks…

  • #4 / Sep 11, 2009 3:34am

    John Henry Donovan

    12339 posts

    Kristie,

    What would the physical size of the photo be in MBs?

    You could try bumping the PHP memory as my gut is telling me this is where the problem lies.

    You can get your host to do this for you or if you are familiar with a htaccess file you can do this yourself.

    EE Wiki : HowTo Override Memory Limitations

    Also check what value you have for upload_max_filesize in your PHP info

  • #5 / Sep 11, 2009 3:55am

    Kristie Ann

    15 posts

    Changed PHP memory to 64 and verified in PHP info. Still getting white screen. Files are around 2 mb. Upload max is at 5 and Post Max is at 40.

  • #6 / Sep 11, 2009 11:42am

    Ingmar

    29245 posts

    As John said, a white page usually means a suppressed error. Can you visit Admin ›  System Preferences ›  Output and Debugging Preferences and set Debug Preference “PHP/SQL error messages shown to everybody”. Also, be sure that your PHP environment does, in fact, display PHP errors. Your host might be able to assist you there.

  • #7 / Sep 11, 2009 2:36pm

    Kristie Ann

    15 posts

    As I mentioned errors were already turned on. My host/PHP Environment does in fact display PHP errors—never had a problem displaying them in the past.

    Admin ›  System Preferences ›  Output and Debugging Preferences and set Debug Preference “PHP/SQL error messages shown to everybody”.—THIS WAS THE ORIGINAL SETUP, I ALSO TRIED TO ADMINS ONLY, NO ERRORS EITHER WAY. JUST A WHITE PAGE.

    I have no problem uploading the files, they just won’t resize anything over 200kb. These sites have been running for years without problem. The only recent change was from PHP 4 to PHP 5. The problem is happening on all EE sites running on my account now, including test sites for clients. Other PHP software has no problem resizing photos.

    Also turning on page processing and and SQL queries present nothing for that page. It is just white.

  • #8 / Sep 11, 2009 3:10pm

    Sue Crocker

    26054 posts

    On Enginehosting, upload_max_filesize is set to 40M, post_max_size is 20M, and memory_limit is 64M. It won’t hurt to bump up those values. Can you give it a try?

  • #9 / Sep 11, 2009 3:31pm

    Kristie Ann

    15 posts

    post_max_size should actually be larger than the upload_max_size…

    Changing these fields actually does nothing, i still get the white screen. I also tried changing max execution and parsing times. I have access to php.ini files for each domain and have experimented quite a bit with these. I even had new php.ini files created and started form scratch, changing the upload values, etc…

    I have no problem uploading as I said, I actually can go into a standalone image resizer and find the images with the file manager on the website and then resize them. Of course, if I wanted to do this, I could also batch resize in photoshop before uploading, but the time it takes, makes it hard to post anything on the fly and is now making my expression engine sites almost useless. I know there must be that magic setting that is somewhere, or something, but I can’t for the life of me figure it out.

  • #10 / Sep 11, 2009 3:44pm

    Kristie Ann

    15 posts

    I have also been troubleshooting with my host. I should mention I have a dedicated server and this is happening across the board on my sites (both in multi-site manager) and client sites, both in full version and core versions.

  • #11 / Sep 11, 2009 3:45pm

    Sue Crocker

    26054 posts

    Tell me more about the version of PHP and EE you’re running. Also, what size restrictions do you have if any in your file upload preferences?

    There is another workaround, using the imgsizer plugin.

    Which version/build of ExpressionEngine are you using? You can find that out at the bottom of any control panel page.

    The current version is 1.6.8 and the build is 20090723.

  • #12 / Sep 11, 2009 4:00pm

    Kristie Ann

    15 posts

    ExpressionEngine 1.6.8 - Build:  20090723
    This is happening on both a brand new install for a client and my old sites.
    I have no restrictions for file uploads preferences.

    PHP Version 5.2.9

    BTW…Thank you everyone for trying to help!

  • #13 / Sep 11, 2009 5:16pm

    Sue Crocker

    26054 posts

    What are your settings here:

    Admin ›  System Preferences ›  Image Resizing Preferences

  • #14 / Sep 11, 2009 6:01pm

    Kristie Ann

    15 posts

    My image resizing preferences GD2 (No path since i’m using GD2) and thumb for the suffix. The same thing is happening for GD. Expression engine will only resize images less than 200kb. I am not getting any Internal (500) errors which are usually caused by a timeout due to large file sizes.

  • #15 / Sep 11, 2009 6:18pm

    Kristie Ann

    15 posts

    I switched to Imagemagick after digging up an install path. It seems to be working…I’ll just give up on GD2. It’s slower, but it’s working.

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

ExpressionEngine News!

#eecms, #events, #releases