Thumbnails not loading...Full images load... (Again?)

Well I thought maybe my new images were not being created because the image sizes were too large. But I just cleared the cache, and tried to re-make all the thumbnails, and now even some that did worked before, don't have thumbnails now.. Lots of my older pictures that had thumbnails, now cant get a thumbnail. I dunno what to do... Isnt there a debug mode? like add &debug to the end of the URL? Would that help any? What can I do?

Thanks,
Code

Edit: ERM! I Put in wrong section... This isnt meant for "Installation" area, More like, bugreport or something :S

Comments

  • Which build of zenphoto are you using? Have you checked your permissions on your album and cache directories?
  • I am using the latest nightly build (last night?). I will check my permissions.

    Edit: Permisisons are fine: 777
  • I read somewhere about the file size, that there isnt enough memory. That sounds logical becuase most of my photos are 10MP, with a few exceptions... But Ive always had some of these photos, and they used to have a thumbnail when i first got zenphoto back a few months ago... (April 30th) from SimpleScripts.com? Anyways... Is there anyway to provide more memory to the site if thats the case? I really dont want to have to resize all of my images in photoshop...or some other program :S. Dont really want to resize them at all...but if I must....
  • You can try allowing more memory to PHP. Edit your php.ini file and change the value of memory_limit to 128MB. Search this forum for "memory_limit" and you will find lots of posts regarding this change.
  • Ill give it a try :) Thanks
  • Okay, I even kicked it up to 256M and its verified on info.php that it is set to 256M, yet thumbnails still dont load. I also noticed something in admin.php

    'PHP has 96M of memory allocated.'

    Does that have to do with anything?
  • I did notice that in admin.php that it says 96M and I realized, the staff added code to i.php

    if (ini_get('memory_limit') && parse_size(ini_get('memory_limit')) < 100663296) {
    @ini_set('memory_limit','96M');
    }

    , this seems to match it in admin.php, although I tried to change this code, it still says 96MB in the admin panel. I am not sure whatever to do now...

    Edit: I think there is somewhere else hardcoded other than i.php, that its only alowing 96MB, and even then, my 10MP images don't allow enough memory to produce thumbnails. Recently people had this problem and they hard coded the fix I believe to 96M. This may be my problem, I cant seem to raise it higher than 96M (As it says 96M in admin)
  • Edit: Deleted
  • Okay its in functions.php and i.php and I changed the hard coding from 96M to 512M just to see if it would work. Admin.php now sees it as 512M and thumbnails still wont load. :(
  • Okay... This is what information I got...

    PHP Fatal error: Out of memory (allocated 54525952) (tried to allocate 15552 bytes) in /home/luckysho/public_html/zp-core/functions-image.php on line 65

    I dont get it, isnt that saying, I had more bytes than i could use but i am still out of memory? 54525952 or 15552 isnt near 512M

    Also...

    Failed loading /usr/local/Zend/lib/Optimizer/php-5.2.x/ZendOptimizer.so: /usr/local/Zend/lib/Optimizer/php-5.2.x/ZendOptimizer.so: undefined symbol: compiler_globals

    Edit:
    And this is line 65 of functions-image.php for the record...

    /**
    * Takes an image filename and returns a GD Image using the correct function
    * for the image's format (imagecreatefrom*). Supports JPEG, GIF, and PNG.
    * @param string $imagefile the full path and filename of the image to load.
    * @return image the loaded GD image object.
    *
    */
    function get_image($imgfile) {
    $ext = strtolower(substr(strrchr($imgfile, "."), 1));
    if ($ext == "jpg" || $ext == "jpeg") {
    return imagecreatefromjpeg($imgfile);
    } else if ($ext == "gif") {
    return imagecreatefromgif($imgfile);
    } else if ($ext == "png") {
    return imagecreatefrompng($imgfile);
    } else {
    return false;
    }
    }
  • Time for bed, sorry for all the rant, just trying to help...
  • acrylian Administrator, Developer
    No problem. Did you check if you are allowed to change the memory by your host at all or what their maximum is? (ok you don't get any errors so that may not be the case). On my shared hosting I have 32MB and that's it.
  • I figured I did since it works since in admin panel it shows the higher amount of ram. Ill ask... BTW, how much do u think i need for 10MP images? I still dont understand, it used to work tho, not anymore :(
  • acrylian Administrator, Developer
    Did you try the nightly? We corrected a few things since 1.2 got out.
  • I believe I did... 2 days ago nightly I will try the latest if u wish
  • `Failed loading /usr/local/Zend/lib/Optimizer/php-5.2.x/ZendOptimizer.so: /usr/local/Zend/lib/Optimizer/php-5.2.x/ZendOptimizer.so: undefined symbol: compiler_globals`

    This is not a zenphoto module. Don't really know what the error means, but maybe it is also caused by the memory problem. No changes have been made relating to the memory problem since the build you are running.

    Is your memory size changed in both i.php and functions.php now? Both places are necessary since i.php does not always load functions.php.
  • Yes, I noticed that when I changed i.php it didnt change in the admin panel, so I changed both.
  • I called HostMonster technical support, he didnt help much, he insisted there was a problem in the coding saying its supposed to create a thumbnail when you upload it and its not. Said something like its trying to do something with a thumbnail folder instead of the cache folder, i dunno he was on something i think...i dunno what to do...i dont really want to re-size images, especially if I have a lot to upload... I might just try to find another gallery ... no offense :S
  • @code: Had the same issue. Was using 1.1.7 and upgraded to 1.2 and suddenly my 8mp images weren't caching etc. Most shared hosts allow you to place a php.ini file to change the variables etc.

    So I took my standard one and upped the memory limit and put it in my default zenphoto dir, unfortunately was still no go. Then I remembered one of the things about the php.ini file is that it is only active for the directory it's stored in. So placed an identical copy into the zp-core dir and voila. Works like a charm now.

    Check with your host provider to verify, but they *should* allow you to use a php.ini file as most do now.
Sign In or Register to comment.