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.

Gallery Not working for me

August 31, 2008 1:30pm

Subscribe [4]
  • #1 / Aug 31, 2008 1:30pm

    ChargePositif

    7 posts

    Hey Folks,

    I’ve got a problem with gallery when I’m trying to add photographs.

    When I attempt to add a photograph from my local machine the file is uploaded, but is not added into the DB/gallery.

    After entering the information in the fields, selecting category, etc., when I click on “Submit New Entry” button I am presented with a blank page. The same thing happens when trying to add an image that is already on the server.

    I have tried using Safari 3.1.2, and Firefox 2.0.0.16 for Mac, and IE 6.0 for Windows all with the same results. When I view the page source, Safari and FF give me empty windows, but IE provides:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=Content-Type content="text/html; charset=utf-8"></HEAD>
    <BODY></BODY></HTML>

    I had enabled all EE debugging (PHP/SQL error shown to anyone, Display SQL Queries, and Display Template Debugging), but got nothing. The URL after clicking on submit is always of the form:

    <a href="http://192.168.1.129/EECore1.6.1/cowpasture/index.php?S=d15d812d34caa96f7c92ca3adf21f19f98d47ed2&C=modules&M=gallery&P=insert_new_entry">http://192.168.1.129/EECore1.6.1/cowpasture/index.php?S=d15d812d34caa96f7c92ca3adf21f19f98d47ed2&C=modules&M=gallery&P=insert_new_entry</a>

    It used to work because I was able to add a single image a few weeks ago. I’ve been busy and I’m just now getting back to this.

    This same behavior was happening with 1.6.4 Build 20080710, and updating to 1.6.4 build 20080829 didn’t change the behavior.

    Any help will be greatly appreciated.

    Thanks,

    - John

  • #2 / Aug 31, 2008 5:35pm

    Greg Aker

    6022 posts

    John,

    How big are the images you are trying to upload?  I have found that depending on the server setup, as you start to approach the 2MB php limit, it can sometimes time out. If that is the issue, for grins can you try to get your image down under 1 MB, which will still be a “huge” image for the internet and upload again?

    It’s worth a shot.  😊

    -greg

  • #3 / Aug 31, 2008 7:01pm

    Sue Crocker

    26054 posts

    Greg’s right. Try uploading one of the smiley gifs. I’ll bet that works.

    A white screen frequently means some sort of memory problems.

    Can you check the three settings in the attached screenshot?

  • #4 / Aug 31, 2008 7:20pm

    ChargePositif

    7 posts

    John,

    How big are the images you are trying to upload?  I have found that depending on the server setup, as you start to approach the 2MB php limit, it can sometimes time out. If that is the issue, for grins can you try to get your image down under 1 MB, which will still be a “huge” image for the internet and upload again?

    It’s worth a shot.  😊

    -greg

    Greg,

    Thanks for pointing me in the right direction. Image size was indeed the culprit. I was just trying to upload a straight out of the camera 3008x2000 image, and letting photo gallery handle the rest.

    Not exactly the way to go, if you know what I mean. When I resampled the image down to something more “reasonable” like, say 1280x851 (keeping the aspect ratio the same) all was well. I was doing some experimentation and when I reached 1500x997 I finally received an out of memory error.

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 452 bytes) in /var/www/html/EECore1.6.1/cowpasture/core/core.image_lib.php on line 500

    I guess I was hoping to not need to do too much image manipulation before uploading, this won’t be a big deal, now that I know.

    Thanks!

    - John

  • #5 / Sep 01, 2008 5:25pm

    Ingmar

    29245 posts

    Glad to hear it. The size of the image is not necessary the issue, but the resolution in pixels is: EE needs to hold of it in the memory; speaking of which, 8 MB is a little meager.

    So, all issues resolved, or at least identified?

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

ExpressionEngine News!

#eecms, #events, #releases