Jump to content

Error – image – out of memory


ngrmm
 Share

Recommended Posts

i'm getting this error, but only with a certian image. all other uploads work fine.

Error: Out of memory (allocated 34865152) (tried to allocate 5062401 bytes) (line 1655 of

/homepages/41/d13349310/htdocs/temp/tmp/wire/core/ImageSizer.php)

this is my code:

<div class="thumbs">   
<?php foreach($page->images as $image) {
$thumb = $image->size(80, 80);
$large = $image->height(700);
echo "<a href='$large->url' title='$image->description'><img src='$thumb->url'></a>";
   } ?>
   </div>
Link to comment
Share on other sites

  • 3 weeks later...

Hi ngrmm

You probably tried to upload an image that has too many pixels, so your allocated memory to PHP is not enough to process your image. I advise you to get that line back in... Your images will look strange without it at some point.

You have two options if my assumption is correct:

1. Increase the PHP memory to the maximum

2. if that doesn't help, shrink your images before uploading them.

Hope this still helps

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...