which version of g2 should i try?

draco2002

Joined: 2003-04-28
Posts: 70
Posted: Mon, 2003-04-28 16:45

I am a long time user of gallery, and am very interested in using and perhaps helping with the develpment of G2.
I have tried a few installs of the cvs snapshots, and was wondering, which might be the best as of now to get it to install, and start playing with the Ui? anyhelp would be greatly appreciated. I tried the 28th version of G2 and i get

Warning: Wrong parameter count for setlocale() in /var/www/html/gallery2/modules/core/classes/GalleryTranslator.class on line 156

Warning: Cannot add header information - headers already sent by (output started at /var/www/html/gallery2/modules/core/classes/GalleryTranslator.class:156) in /var/www/html/gallery2/main.php on line 139

Draco

 
draco2002

Joined: 2003-04-28
Posts: 70
Posted: Mon, 2003-04-28 16:52

Of course i didn't try the 27th before posting that and of course th 27th installed perfectly, off to test and play with

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Mon, 2003-04-28 21:00

If you're going to submit patches or help development, you should probably download a copy directly from CVS, so you can 'cvs update' things, etc.. It'll make it a whole lot easier...

 
kvdb

Joined: 2002-10-10
Posts: 29
Posted: Tue, 2003-04-29 17:38
Quote:
Warning: Wrong parameter count for setlocale() in /var/www/html/gallery2/modules/core/classes/GalleryTranslator.class on line 156
Draco

From PHP help:
Passing multiple locales is not available before PHP 4.3
So I think your PHP is not up to date (I'm running 4.2.x myself, and have run into the same problem).

A way around this is changing line 156 to:
setlocale(LC_ALL, "${language}_${country}");

 
draco2002

Joined: 2003-04-28
Posts: 70
Posted: Tue, 2003-04-29 18:55

the first error on the head

php-4.2.2-8.0.7.i386.rpm, and your fix seems to be working, although, i commented that entire line out and it seemed to have the same affect.

Now on to pounder how to fix the next issue, while looking for a 4.3 php for rh 8.0

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2003-04-29 21:45

Oops, I forgot that the locale fallback parameter was not in PHP before 4.3.0. I've removed it from the code so you shouldn't have to modify it by hand any more.