+ Reply to Thread
Results 1 to 7 of 7

Thread: Memory Limits have been reduced?

  1. #1
    negusm is offline Member
    Join Date
    Jul 2007
    Posts
    89
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Memory Limits have been reduced?

    I run a phpBB site for car enthusiasts and they started complaining that they could no longer upload images to the album area.

    After playing with various image sizes, I determined that the image size that the phpBB album script could handle was reduced significantly and at some point I started actually seeing memory errors instead of the script just ending abruptly.

    I checked the phpinfo.php and it looks like memory is only 8MB. I thought it was 12MB or 16MB before?

    Is this going to remain like this? My users loved the way it was working. I don't have many users and most don't know how to resize pictures (old car farts) and they are barely able to upload images as it is.

    BTW, I'm on the gold server.

    -Mike

  2. #2
    PsyCHZZZ's Avatar
    PsyCHZZZ is offline aspiring dreamer~
    Join Date
    Dec 2006
    Location
    Tokyo, Japan.
    Posts
    142
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi there... I'm not sure what is the maximum allowed memory limit by WHB but here's something you can try to do.

    Locate your phpBB album script that handles the upload requests (I do not use phpBB so I can't tell you exactly where it is) and edit the file to add this line to the top of the page -
    <?php ini_set("memory_limit","16M"); ?>
    This will increase the memory_limit set in php to 16M or just set the number to a size you desire. Like i said, tt's best to check with WHB if they have like a max limit threshold.

    I've tried this on my account and it seems to work. I didn't try uploading files though. Please refer to the attachments.

    Hope this helps. Cheers~
    Attached Images Attached Images

  3. #3
    negusm is offline Member
    Join Date
    Jul 2007
    Posts
    89
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks.

    I'll try it.

    BTW, it's not with the upload (I can see the image file getting saved on the server) its when the GDI module loads the image to make a thumbnail out of it. When it loads the image, it becomes uncompressed and bumps into that memory limit.

    -Mike

  4. #4
    PsyCHZZZ's Avatar
    PsyCHZZZ is offline aspiring dreamer~
    Join Date
    Dec 2006
    Location
    Tokyo, Japan.
    Posts
    142
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ahhh ~ right. Well, I've never used phpBB before so I don't really know what goes where... lolz...

    Anyway, hope it helps.

  5. #5
    Fibo_fr's Avatar
    Fibo_fr is offline New Bee
    Join Date
    Jul 2008
    Posts
    4
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    This ini_set solutions seems to work very well with the config of Magento I am currently installing for tests...

  6. #6
    omniuni's Avatar
    omniuni is offline Jewbergeek!
    Join Date
    Jul 2007
    Posts
    181
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yeah, the ini thing is very useful. I will say, though, that WHB is very good about memory usage. I actually had to manually limit the amount of memory used in an image resizing script because I didn't want it to go above a certain point. The WHB servers were resizing images several megapixels in size before I limited it... well beyond the default on XAMPP. (The limit is now set to the minimum to resize these images, and I am requesting the users shrink their images reasonably before uploading them to assist this.)
    [URL="http://d-site.net"]http://d-site.net/[/URL]

  7. #7
    negusm is offline Member
    Join Date
    Jul 2007
    Posts
    89
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Seems like they now don't allow a limit above 8M.

    The script error came back and I put the setting in the phpinfo.php file and I can set it below 8MB but not above any longer.

    (I'm on the gold server)

    -Mike

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts