Well, I have this error since my hosting service have updated the server with new versions of apache and php. Gallery put in debug mode and the message is as follows (sorry, it's in spanish):
******Añadiendo 1047317_z.jpg*****
Doing the naming
Image Preprocessing
Redimensionar/comprimir la imagen original
Resizing Image: /home/juana/domains/micologia.net/public_html/albums2/micologia/1047317_z.jpg
Getting Dimension of file: /home/juana/domains/micologia.net/public_html/albums2/micologia/1047317_z.jpg
No se requiere redimensionamiento
Adding Photo to the photo list
Archivo /home/juana/domains/micologia.net/public_html/albums2/micologia/1047317_z.jpg tipo 2.
Getting Dimension of file: /home/juana/domains/micologia.net/public_html/albums2/micologia/1047317_z.jpg
Generating thumbnail.
Resizing Image: /home/juana/domains/micologia.net/public_html/albums2/micologia/1047317_z.jpg
Getting Dimension of file: /home/juana/domains/micologia.net/public_html/albums2/micologia/1047317_z.jpg
Ejecutando:
'/usr/local/bin/convert' -quality 85 -size 150x150 -coalesce '/home/juana/domains/micologia.net/public_html/albums2/micologia/1047317_z.jpg' -geometry 150x150 '/home/juana/domains/micologia.net/public_html/albums2/micologia/1047317_z.thumb.jpg'
Resultados:
ninguno
Mensajes de depuración:
sh: /usr/local/bin/convert: No existe el fichero o el directorio
Status: 127 (se esperaba 0)
Error: Imposible crear miniatura (0)
¿Necesita ayuda? Mire en el Gallery FAQ
----
Please help, I don't know if the error is a server matter or something wrong in my gallery configuration.
Another easier question, it's possible to have several galleries in the same domain with no errors??? (for instance, folder "gallery" with folder "albums", and folder "gallery2" working with folder "albums2")
Thanks in advance
------------------------------------------
Gallery URL: http://www.micologia.net/galerianueva
Gallery version: 1.5
Apache version: Apache 1.3.33
PHP version: 4.3.11
Graphics Toolkit: Netpbm
Operating system: Windows XP Pro SP2
Web browser/version (if applicable): IE 6
Posts: 8
sorry, in the previous post I wrote I used Netpbm. That's wrong, the debug message shown is using Imagemagick. This next is using Netpbm (so u can see it doesn't work with both tools):
---------------------------------
Mensajes de depuración:
sh: line 1: 18163 Violación de segmento '/home/juana/domains/micologia.net/public_html/gallery/netpbm/jpegtopnm' '/home/juana/domains/micologia.net/public_html/albums2/micologia/8mile1024x768.jpg'
18164 | '/home/juana/domains/micologia.net/public_html/gallery/netpbm/pnmscale' -xysize 150 150
18165 | '/home/juana/domains/micologia.net/public_html/gallery/netpbm/pnmtojpeg' --quality=85 >'/home/juana/domains/micologia.net/public_html/albums2/micologia/8mile1024x768.thumb.jpg'
-------------------------------------
Status: 139 (se esperaba 0)
Error: Imposible crear miniatura (0)
Any ideas??
Thanks in advance
Posts: 8
Is anybody there????
Posts: 1535
Okay, I'm guessing here with the spanish, so bear with me...
"File or directory doesn't exist?"
Pretty self-explanitory, no? Is the file there? Is it chmod at least 555?
Looks like the file isn't running. Did you install the binaries from the gallery download site? Did you install the right ones for the OS on your host?
Posts: 8
Hi Jordan, thanks for your reply!
well, I've just wrote my hosting server and told me that... they don't have installed imagemagick, so it's clear that it won't work ouch!! :o They told me they have installed GD, I don't know if gallery can run this software to handle with images.
I could solve this problem using Netpbm, but as u could see it doesn't work too. You say that "segment violation" error message means that the file is not running. I downloaded the binaries from gallery download site, and for linux-intel platform (my host uses linux), the only thing is that I uploaded netpbm files to this address: http://www.micologia.net/galerianueva/netpbm, chmoded 777 all files. I don't know if having installed the files in this folder is a trouble for it to work and it must be installed in the /bin folder of my host. What do u think???
Thanks in advance and sorry for my english :oops:
Posts: 1535
No, you can put them anywhere and they'll work (probably, unless your host does tricky things with security). However, you say you put them in http://www.micologia.net/galerianueva/netpbm, which I assume is /home/juana/domains/micologia.net/public_html/galerianueva/netpbm, but the error messages you posted show that gallery is looking for them in /home/juana/domains/micologia.net/public_html/gallery/netpbm, which isn't the same directory.
I'd install the netpbm binaries somewhere, make sure they're chmod right, point gallery to the correct path, and, if that doesn't work, put galllery back in debug and post the new results.
Posts: 8
As U can see now the path is correct, and netpbm files are chmoded 777 (The used in the other post was correct too, I have installed netpbm in another folder) and the error message is as follows:
-------------------------------------------
Resultados: (Results
ninguno (none)
Mensajes de depuración: (debug messages
sh: line 1: 9649 Violación de segmento '/home/juana/domains/micologia.net/public_html/galerianueva/netpbm/jpegtopnm' '/home/juana/domains/micologia.net/public_html/albums2/micologia/aerea1G.jpeg'
9650 | '/home/juana/domains/micologia.net/public_html/galerianueva/netpbm/pnmscale' -xysize 150 150
9651 | '/home/juana/domains/micologia.net/public_html/galerianueva/netpbm/pnmtojpeg' --quality=85 >'/home/juana/domains/micologia.net/public_html/albums2/micologia/aerea1G.thumb.jpeg'
Status: 139 (se esperaba 0)
Error: Imposible crear miniatura (0) (Unable to make thumbnail)
------------------------------------
What's happening Jordan? security issue? argh help please, i'll send you a spanish ham and a bottle of rioja red wine :wink:
Thanks in advance
Posts: 1535
That violación de segmento is clearly the problem, but I must admit I'm not entirely sure where it's coming from. I guess my next step would be to re-download the netpbm binaries to make sure they didn't get corrupt during the download (if possible, use something like wget to get the directly on the server machine). Also, what happens if you try to run the program directly from the command line? Do you get the same segmentation fault? It may be worth an email to your host to ask about it too.
And while I appreciate the offer, unless you can find a Kosher ham I'm going to have to pass ;) Just take the euros and donate them to gallery instead...
Posts: 8
Jordan, from the diagnostics page at the top of the configuration wizard, i run "marcar netpbm" ("check netpbm", I suposse), and this is what it tells me:
---------------------------
Cargando los archivos de configuración. Si observa algún error es, probablemente, porque no ha ejecutado correctamente el asistente de configuración. -> CORRECTO (Loading configuration files. If you see any errors, is probably because you didn't run properly the configuration wizard-> CORRECT)
.
.
.
And below, it checks file by file, and return this error (once per file):
Verificando: '/home/juana/domains/micologia.net/public_html/galerianueva/netpbm/giftopnm'->Se esparaba el status 0, pero se recibió el status 139. (Checking: '/home/juana/domains/micologia.net/public_html/galerianueva/netpbm/giftopnm'-> expected status 0, but reported status 139.)
And so on for each netpbm binary.
So it seems to be that gallery finds the correct version of netpbm but then there must be something that makes the binaries to run ok.
I hope it helps you and thanks again and sorry for my english!!
Posts: 1535
status 139 is often caused by transfering the binaries using ascii mode instead of binary. Either that or using the wrong binaries. Just because check netpbm is finding files with the right names doesn't mean the files aren't broken in some way. Have you tried redownloading the intel-linux binaries from the gallery site, making sure to transfer them in binary mode?