unable to add pictures

HenkFA

Joined: 2008-08-29
Posts: 4
Posted: Fri, 2008-08-29 15:32

System information:

Gallery version = 2.2.4 core 1.2.0.6
PHP version = 4.4.9 cgi-fcgi
Webserver = Apache/1.3.37 (Unix) mod_ssl/2.8.28 OpenSSL/0.9.7d
Database = mysqlt 5.0.32-Debian_7etch5-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Gd
Acceleration = none, none
Operating system = FreeBSD wh-www7.xs4all.nl 4.10-RELEASE-p2 FreeBSD 4.10-RELEASE-p2 #0: Wed i386
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Rows in GalleryAccessMap table = 25
Rows in GalleryAccessSubscriberMap table = 2
Rows in GalleryUser table = 2
Rows in GalleryItem table = 2
Rows in GalleryAlbumItem table = 2
Rows in GalleryCacheMap table = 0

I am working with windows XP and mozilla.

I installed Gallery2 on the server, everything seems to work well, all the tests are passed.
I open an album, choose "add a picture", then I give the location of a picture on my computer (full path), I end with "add items", mozilla shows: "loading" and then I am confronted with an empty screen.
When I go with CoreFTP to my website, I see the picture in ../gallery2/g2data/albums/hfa_pics/ . The last is the name of the album I gave in the begin screen. I suppose it is a problem with the database, but as a newbie, I cannot find the problem. I am totally blind for Linux/unix possiblities/problems.

Please, can you tell me what to do?

Name of the site: www.schalken.info

Regards,

Henk

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Fri, 2008-08-29 21:02

Try a different image toolkit like NetPBM or ImageMagick.

FAQ: I am having trouble configuring a graphics toolkit (ImageMagick, NetPBM or ffmpeg). Help?

If you need further help, post a phpinfo link, this page explains how to do that:
FAQ: What information is required when I ask for help in the forums?

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
HenkFA

Joined: 2008-08-29
Posts: 4
Posted: Mon, 2008-09-01 07:44

Thanks for your quick reply. As I was away for the first summerdays :(, my answer is a little late.

Concerning the graphics toolkits: I installed two: NetPBM and Image Magick. I understood that gallery2 will make a choice as to what toolkit to use.

When I log in and click site admin, I see under the graphic toolkits only GD. When I go to Maintenance, I see 4 (including ffmpeg, which I did not install as I will not use film). When I test the settings of NetPBM everything passes, except two:
bmptopnm or bmptoppm
Failed
Error messages:
File does not exist
ppmtobmp
Failed
Error messages:
File does not exist
It says that I still can use it.
Image Magick says OK, but that I use an old versions.

The strange thing is that I see the transferred files on my server, but gallery2 does not.
I copied a phpinfo file to the gallery2 directory.

I hope you shed some light on this problem,

Best regards,

Henk

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Mon, 2008-09-01 07:55

Memory limit is 8M, that's at least one problem. I'd get that up to at least 24MB if you can. I think you can get away with 16MB, but 24MB or 32MB would be much better.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
dwtechz

Joined: 2008-09-01
Posts: 2
Posted: Mon, 2008-09-01 09:39

I have the same problem! :-(

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Mon, 2008-09-01 14:55

If it's the same problem, then you need to get your memory limit raised. You've got to contact your host about that.

Or you could try what's suggested here.
FAQ: PHP memory_limit - Why do I get the error Allowed memory size of Xxx bytes exhausted?

But if that isn't the problem, then you need to post a new topic and be sure to fill out the support template and include a link to your phpinfo:
FAQ: What information is required when I ask for help in the forums?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
HenkFA

Joined: 2008-08-29
Posts: 4
Posted: Mon, 2008-09-01 18:53

Solved!! Thanks so much. In CoreFTP I can not see the .htaccess file. I cna make it on the computer, send it to the server in the gallery directory, but I will never see it again. It is a different problem, but maybe you can say something aboyt it.

Anyway, the.htaccess file trick did not work (I got an internel server error) so I tried your other idea and put ini_set("memory_limit","32M"); in main.php and in the install/index.php . That did the trick.
I am happy now and can finally start to try to get a working site.

Thanks a lot!!

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 4353
Posted: Mon, 2008-09-01 20:29

For CuteFTP, you need to dig around in the options to enable viewing hidden files. In Unix/Linux land a file or directory with a . at the beginning is a hidden file. This is a few years old, but may still be relevant:
http://forums.globalscape.com/tm.aspx?m=6352

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
HenkFA

Joined: 2008-08-29
Posts: 4
Posted: Mon, 2008-09-01 20:49

I use CoreFTP, but your comment was helpful. I dug into sitemanager from CoreFTP and found under general an option called: advanced directory listing (for .htaccess). I should have seen it before, but ther absence of Linux knowledge and bewilderment by all the posibilities made me blind. Anyway, another step in the right direction.

Login or register to post comments