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
Edit: Permisisons are fine: 777
'PHP has 96M of memory allocated.'
Does that have to do with anything?
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)
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;
}
}
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.
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.