Thumbnails and resizes not showing up. NetPBM Problem?
gragland
Joined: 2005-03-07
Posts: 35 |
![]() |
delete |
|
StilgarBF
Joined: 2003-09-08
Posts: 27 |
![]() |
Same Problem and I my webhost is 1und1 to. All resized Thumbnails from my imported Gallery 1 were broken. 1und1 has no suport für Imagemagick was then only tool that was working. and - - sorry fpr my english |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
turn on buffered debug output in config.php and upload a new image.. look for "Executing" in the debug output and you'll find where it runs the netpbm commands. see if it has any error messages and post them here. |
|
gragland
Joined: 2005-03-07
Posts: 35 |
![]() |
I deleted my gallery2 install and installed the latest cvs version. I uploaded 6 pictures with gallery remote (resizes set to 600x600, 800x800, 1024x1024). This time all the thumbnails showed up, and all the correct resize demensions were in the size select menu, but non of the resized pictures showed up when i selected them. So then I deleted the pictures and turned on buffered debug in config.php and uploaded the 6 pictures again. The word "executing" was nowhere in the debug output. And this time none of the thumbnails showed up (all broken icons) and the size select options were 92x92, 92x92, 92x92, 2272x1704. I tried the upload applet and the "from web browser" option. Same results and still no sign of the word "executing in the debug output. I'm PM'ing you my gallery2 login info, i would really appreciate it if you could take a look and try to see what might be wrong. Thanks! |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
that's because it isn't using NetPBM.. your highest priority toolkit is Gd.. you'll find GdTookit::performOperation in your debug output instead of Executing. |
|
gragland
Joined: 2005-03-07
Posts: 35 |
![]() |
NetPBM was set as "up" and GD was set as "down" in toolkit priority. Any other ideas? If you wanna take a look yourself i pm'ed you the login info. |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
up and down are links to move the items (try clicking them).. the one listed first is the highest priority. |
|
gragland
Joined: 2005-03-07
Posts: 35 |
![]() |
I set netpbm as high priority now and now half of the images have broken thumbnail icons (the resizes are fine though). I can't check the debug output because the upload applet no longer works for me for some reason. It just hangs, and doesnt load, even after reuploading /modules/uploadapplet/. When I try to load the applet the status bar says "exception: java.security.AccessControlException. access denied (Java.utilpropertypermission com.apple.mrj.application.apple.menu.about.name write)." The certificate accept/deny popup that used to popup when the applett worked no longer pops up. Whenever i upload using the website uploader that can only upload 4 at a time I dont get broken icons, so i obviously can't check for errors in the debug output. I really appreciate your help! |
|
gragland
Joined: 2005-03-07
Posts: 35 |
![]() |
Ok, i reinstalled netpbm and now all the thumbnails are showing up correctly. Only problem is that when i try to rotate an image i get a broken thumbnail. I think this is the part of the code where the problem is: file_exists(/homepages/3/d120742016/htdocs/gallery2/g2data/cache/module/netpbm/0/0/0.inc) Just to let you know I don't have access to my php.ini file so if i need to increase the memory_limit i don't know how i am gonna do that. Can I just make a new php.ini file in the galler2 folder? If so, what code do i need to put in it? Thanks! |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
what's the current memory limit? see http://gaberagland.com/gallery2/install/ step system check. or http://gaberagland.com/gallery2/lib/tools/phpinfo.php -> memory limit. on the first sight, it looks like your memory limit is too low Quote:
Error Output: if you don't have access to the php.ini, try this (this may result in an error message, if so, undo the change). open the .htaccess file in the gallery2 folder. if no .htaccess file exists, create one. |
|
gragland
Joined: 2005-03-07
Posts: 35 |
![]() |
According to my phpinfo.php the memory limit is 40M. Is it possible thats not enough? Otherwise, any ideas of what could be wrong? |
|
gragland
Joined: 2005-03-07
Posts: 35 |
![]() |
And I just opened my gallery2 again in safari and the thumbnail of the image i tried to rotate had the broken icon so i went to edit>restore original photo, but the icon is still broken. The weird thing is that "restore original photo" had worked the 10 previous times I tried it. Ok, so i rebuilt all the icons for the album, and now almost all the icons are broken! I think i might just go back to Gallery 1 untill G2 is less buggy. I don't know if this is just a problem with 1and1 (as it seems like a lot of other 1and1 users are having probs) but I am tired of trying to get this working. EDIT: I rebuilt icons/resizes again and this time there were only a couple broken icons. So I rebuilt them again and this time there were no broken icons, but when i clicked a thumbnail i got a php error (something about a resource fork.. i didn't write it down). I kept getting this error when I would click a thumbnail. Ok, so i rebuilt the thumbnails/resizes yet again and this time everything is good. Besides the fact I can't rotate images without losing getting a broken thumbnail. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
the memory limit is high enough, good. |
|
gragland
Joined: 2005-03-07
Posts: 35 |
![]() |
It just doesnt seem to make sense that it takes 2 thumbnail/resize rebuilds to finally get all the icons to show up and for everything to work, and then for some reason there is a php error when I click on the thumbnails, and then after another rebuild everything is normal. It makes me think that it has to be some problem with my host, or a php setting that messing with gallery's operation. Anyway, thanks for the help. |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
I've seen this problem with 1and1 before. Their servers run under a heavy load which leads to exec() calls running out of resources. Basically, G2 can't reliably execute sub-processes in that environment. I think that we may want to introduce an exec retry. If we see a failure like this, we wait a couple of seconds and try again and see if it works the second time around. This may give us more robust behaviour on flaky/overloaded hosts. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
we could model this case But p is not constant over time. We'd have to assume a worst case scenario and define a maximum value for n. |
|
StilgarBF
Joined: 2003-09-08
Posts: 27 |
![]() |
I still have that Problem. |
|
gragland
Joined: 2005-03-07
Posts: 35 |
![]() |
bharat wrote:
I've seen this problem with 1and1 before. Their servers run under a heavy load which leads to exec() calls running out of resources. Basically, G2 can't reliably execute sub-processes in that environment. Would you recommend switching hosts? I'm still within 90 days of when i signed up so i can get my money back. Could you reccomend me a better host that isn't too expensive? Thanks! EDIT: |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
gragland
Joined: 2005-03-07
Posts: 35 |
![]() |
Thanks, do you have any experience with RJCUK Hosting. It seems to good to be true. Couldn't really find much about it in the forums. |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
this is rather offtopic. please discuss this in the other subforum. |
|
bharat
![]()
Joined: 2002-05-21
Posts: 7994 |
![]() |
All the hosts that we refer are good. Lately I've heard very good things about PowWeb... |
|