Pages (2): 1 2   
Member
Member
code   2008-09-05, 04:20
#1

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

Member
Member
krainbolt   2008-09-05, 05:08
#2

Which build of zenphoto are you using? Have you checked your permissions on your album and cache directories?

Member
Member
code   2008-09-05, 05:37
#3

I am using the latest nightly build (last night?). I will check my permissions.

Edit: Permisisons are fine: 777

Member
Member
code   2008-09-05, 05:41
#4

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....

Member
Member
krainbolt   2008-09-05, 06:15
#5

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.

Member
Member
code   2008-09-05, 06:25
#6

Ill give it a try Thanks

Member
Member
code   2008-09-05, 06:39
#7

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?

Member
Member
code   2008-09-05, 06:53
#8

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)

Member
Member
code   2008-09-05, 07:00
#9

Edit: Deleted

Member
Member
code   2008-09-05, 07:12
#10

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.

Member
Member
code   2008-09-05, 07:25
#11

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 &#36;imagefile the full path and filename of the image to load.
  • @return image the loaded GD image object.
  • */
    function get_image(&#36;imgfile) {
    &#36;ext = strtolower(substr(strrchr(&#36;imgfile, "."), 1));
    if (&#36;ext == "jpg" || &#36;ext == "jpeg") {
    return imagecreatefromjpeg(&#36;imgfile);
    } else if (&#36;ext == "gif") {
    return imagecreatefromgif(&#36;imgfile);
    } else if (&#36;ext == "png") {
    return imagecreatefrompng(&#36;imgfile);
    } else {
    return false;
    }
    }

Member
Member
code   2008-09-05, 07:26
#12

Time for bed, sorry for all the rant, just trying to help...

Administrator
Administrator
acrylian   2008-09-05, 08:36
#13

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.

Member
Member
code   2008-09-05, 15:56
#14

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

Administrator
Administrator
acrylian   2008-09-05, 16:36
#15

Did you try the nightly? We corrected a few things since 1.2 got out.

Member
Member
code   2008-09-05, 17:44
#16

I believe I did... 2 days ago nightly I will try the latest if u wish

Member
Member
sbillard   2008-09-05, 17:55
#17

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.

Member
Member
code   2008-09-05, 18:00
#18

Yes, I noticed that when I changed i.php it didnt change in the admin panel, so I changed both.

Member
Member
code   2008-09-05, 18:45
#19

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

Member
Member
micheall76   2008-09-27, 09:26
#20

@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.

Pages (2): 1 2   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.