My Gallery doesn't not display new images uploaded
|
vorng
Joined: 2009-06-25
Posts: 16 |
Posted: Thu, 2009-06-25 05:21
|
|
I've a problem with my gallery. Just recently that I noted that it has problem with uploading images and viewing the newly uploaded images. When uploading the progress bar halts at half way. The images are uploaded to albums in server but when viewing in gallery we cannot see neither their thumbnails nor the real images. This problem is associated only with newly uploaded images (a few days ago), while we can view normally previously uploaded images. Please anyone help me to sort it out. Thanks alot. Gallery URL = http://localhost/gallery/main.php |
|
| Login or register to post comments |

Posts: 8
Hi
I've got exactly the same problem. Images are uploaded to the album folder but neither the images nor the previews are displayed. Biggest problem is, I don't know were to search for a problem because there is no error message. The title and description are displayed and it is possible to change them.
regards The Wartburgritter
Gallery-Version = 2.2.4 Kern 1.2.0.6
PHP-Version = 4.4.9 cgi
Webserver = Apache/2.0.63
Datenbank = mysqlt 5.0.37, lock.system=flock
Werkzeuge = ArchiveUpload, Exif, Getid3, ImageMagick, LinkItemToolkit, Thumbnail, Gd
Beschleunigung = none, none
Betriebssystem = FreeBSD w20.goneo.de 6.2-RELEASE-p3 FreeBSD 6.2-RELEASE-p3 #3: Tue Mar 27 15:43:45 CEST 2007
:/usr/obj/usr/src/sys/GONEO amd64
Standard-Motiv = carbon
gettext = Aktiviert
Sprache = de_DE
Browser = Mozilla/5.0 (X11; U; Linux ppc; de; rv:1.9.0.5) Gecko/2008122011 Iceweasel/3.0.5 (Debian-3.0.5-1)
Zeilen in der GalleryAccessMap Tabelle = 24
Zeilen in der GalleryAccessSubscriberMap Tabelle = 171
Zeilen in der GalleryUser Tabelle = 3
Zeilen in der GalleryItem Tabelle = 169
Zeilen in der GalleryAlbumItem Tabelle = 40
Zeilen in der GalleryCacheMap Tabelle = 0
Posts: 9283
First thing I would try is installing ImageMagick or NetPBM and getting those working and uninstalling GD.
You can put Gallery into debug mode to get more information about what it going on:
FAQ: How to set/use Gallery in debug mode?
If you copy and paste the debug output (NOT the Smarty popup window) into a plain text file, zip it and attach that to a post here we can take a look at that.
If non of that helps, then either post a link or a print out of your phpinfo, this link explains how to create a phpinfo page:
FAQ: What information is required when I ask for help in the forums?
wartburgritter, your version of Gallery is very old. Did this ever work for you? If not, is this a new install? If so, where did you get 2.2.4? You should really be on 2.3 as that's the most current version of Gallery 2 and it's fixed some performance stuff and security issues since 2.2.4.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 8
Thanks very much for the information. The gallery was installed a few month ago. Yes uploading images worked for quit a long time. I did not upgrade yet. Thing is there are two gallery at the same hosting company. Same problem with both. I do not know were this came from. I'm gone try your hints.
http://www.fotoskreativ.de/gallery_fotoskreativ/gallery2/main.php?g2_itemId=2831
http://www.lights-and-emotions.de/gallery_lights/gallery2/main.php
wartburgritter
Posts: 16
Hi nivekiam, thanks for proposed solutions. Following your recommendations I first tried with configuring ImageMagick, i installed its binary package for Windows. When i test settings, i found another problem. The screen captured is attached and also its debug output. When i do Save Settings, another error screen appeared, attached also. I also attached the debug output of Gallery when i started it in debug mode.
I'm waiting to hear from you.
Thanks again.
Vorng
Posts: 9283
vorng, oh, lovely windows. Well looks like PHP can't access or execute the needed binaries.
If you go to the command line what happens when you enter:
"c:\program files\imagemagick-6.5.3-q16\convert.exe"
and
"c:\program files\imagemagick-6.5.3-q16\composite.exe"
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 16
nivekiam, here are the outputs of convert.exe and composite.exe.
thanks,
vorng
Posts: 9283
Do you know which version of ImageMagick you installed? Static, DLL, 64bit?
http://www.imagemagick.org/script/binary-releases.php#windows
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 16
Yeah, it was Win32 dynamic at 16 bits-per-pixel and as it's name applies (ImageMagick-6.5.3-10-Q16-windows-dll.exe) I think it's dll. I used this link to download http://www.imagemagick.org/script/binary-releases.php#windows it's the same as what you gave me, and i chose the first one in the list.
vorng
Posts: 9283
Can you either post a link to phpinfo or a printout of the phpinfo page? If you can't post a link, print to PDF if you can rather than copying and pasting what's in your browser:
http://sourceforge.net/projects/pdfcreator/
This link explains how to create a phpinfo page:
FAQ: What information is required when I ask for help in the forums?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 16
Hey nivekiam, let's find the phpinfo in the attached file in pdf format.
Thanks alot.
Posts: 9283
hmm, I don't see anything that would be stopping this. I don't use Apache on Windows and I'm stuck.
well, the only other things I can think of trying.
-- Add the path to your ImageMagick directory to the path environment variable, if you're not sure how to do that, ask.
-- Uninstall and reinstall ImageMagick to another directory, something shorter without spaces, like c:\im or c:\imagemagick
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 16
Yes, I've tried to uninstall ImageMagick and reinstall it to different directory which is shorter containing no space nor dot (.). The path to ImageMagick installed is also registered in environment variable. Then i went to configure again the plugin ImageMagick in gallery, it said the same error... Failed to execute convert.exe and composite.exe.
What should i do next?
Thanks,
vorng
Posts: 9283
Just looked over your debug info and phpinfo again. I just noticed there is nothing specified for upload_tmp_dir I'd get a temp directory set for that, which the user that Apache runs as can write to. Edit php.ini and restart Apache.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 16
nivekiam, it tried to set folder for upload_tmp_dir in gallery installation folder with full permission to Everyone. I went back to configure ImageMagick, the problem persists. I tried to deactivate my Gd, then configure it, it said that my php version was not compiled with Gd library, then failed to get it work. No graphic toolkit is activated right now. Hopefully you have other effective solution for me.
vorng
Posts: 9283
Where did you get your installer for Apache, PHP and MySQL for Windows?
Go here: http://www.apachefriends.org/en/xampp.html and try their all-in-one installer. I've used that before and it just works. It's been years, but I'm pretty sure GD was there and I had ImageMagick working just by installing the IM program and telling Gallery the path to the binaries. Thought I do remember having to edit some files, I just don't remember what.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 8
It's wartburgritter again. I don't know if I should open a new subject becaus there are two of us vorng and myself ???
I deaktivated gd. Image magic is the only graphic plugin and it seems to work. The test are ok. But new attached images are still not displayed.
I changed gallery2 to debug mode. Attached you will find the output. Everything is in one line ?! Here you find the gallery http://www.fotoskreativ.de/gallery_fotoskreativ/gallery2/main.php?g2_itemId=2833
Attached the link to phpinfo
http://www.fotoskreativ.de/gallery_fotoskreativ/gallery2/phpinfo.php
regards Wartburgritter
Posts: 9283
wartburgritter,
I can take a closer look if you want. Please PM me login details (click Write to author). Please also leave Gallery in debug mode if you do that.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 16
I got Apache and PHP from their respective webiste (http://www.apache.org and http://www.php.net). I used to use xampp but not for production site where everything seemed ok too. I do not want to move back to xampp for my production site. What i wonder the most is that from the beginning my gallery worked just fine just recently that problem encountered. Please advice me more.
Thanks,
vorng
Posts: 9283
Why? They are just packaging Apache, PHP and MySQL up in a nice installer and making them just work out of the box.
There is something screwy with your setup. Did you try restarting the server after making the changes?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 16
Just in case there is another solution for my current site, if not I can try by installing xampp on another server then configure it to point the same database, in this case can i just copy the whole gallery directory to place in new apache server? will it normally work.
I didn't restart my server after making changes to php.ini file.
thanks,
vorng
Posts: 9283
Did you restart Apache? Please restart the server and try it again.
If you move Gallery to a different server, follow these instructions. MAKE SURE YOU DO NOT point two different Gallery installs to the same database. A Gallery install consists of:
Gallery
g2data
database
FAQ: How can I move my gallery installation from one server to another?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 16
Yes I did restart Apache after making change to php.ini and I check phpinfo and saw that upload_tmp_dir contains what i had set. I went to check features of XAMPP for Windows on www.apachefriends.org and learned that there is no GD come with the version for Windows. Right now i don't really know what to do.
vorng
Posts: 9283
Don't use Windows? I don't know. I don't use Windows to host my sites and every time I've tried setting this stuff on Linux it just works
All most of the time, but google finds the answers pretty quickly.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 16
Your recommendation let me think of finding ways to get Gd works for my php in the production site. By considering installing Gd library for existing php, I've have fallen to a forum (http://drupal.org/node/137061), just by uncommenting "extension=php_gd2.dll" in php.ini then restarted Apache, I could get my Gd plugin for gallery activated. Then displaying thumbnails of uploaded images was also possible. It's quite easy. Thanks alot nivekiam for your effective supports.
vorng