[GALLERY TEAM] Bug in 1.4.1RC2 - undefined function: _()

h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Mon, 2003-11-10 21:51

Hi all!

We are aware of the bug that in some cases render 1.4.1-RC2 unusable on some systems. As far as we can tell it only effects those of you using a PHP version without gettext support, but this is inconfirmed at this point.

As a temporary workaround, try out Joans new util.php attachment here: http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=10869#49056

We are working on this at the moment, so please subscribe to this thread as we will use it for announcing any fixes and progress on this.

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Tue, 2003-11-11 11:40

OK, we now have what I believe is the definitive fix, thanks to Glen Starrett and Jens.

Anyone with this problem, please replace your util.php with this version.

Reports on success (or - please, no! - failure) would be appreciated.

 
rdnovo

Joined: 2003-11-08
Posts: 24
Posted: Tue, 2003-11-11 12:34

FWIW,

I have been trying to install Gallery for a while now. This morning, I installed RC2, and thinking to eliminate my problems, I put the util.php file directly above in before even running setup.

When I ran setup, I got nothing. A blank screen.

When I replaced util.php with the one that camne with RC2, I got to the setup screens just fine. I have not yet finished installation, but thought you should know.

The first screen ofd the setup tells me I do not have GNU gettext installed.

Danny.

 
rdnovo

Joined: 2003-11-08
Posts: 24
Posted: Tue, 2003-11-11 12:45

Me again,

I finished installation, and it is no good. This is with the original util.php. I get only a partial load of my gallery main page, as detailed in this thread elsewhere:

http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=10877&start=0&postdays=0&postorder=asc&highlight=

If I replace original util.php with the new util.php, when i load the gallery, I get absolutely nothing. Just a blank page. Thought you should know.

Any help on that other matter (in the other thread) would be appreciated.

Danny.

 
malwinka

Joined: 2003-11-11
Posts: 1
Posted: Tue, 2003-11-11 22:11

It worked for me! First I got only blank page and an error in HTML code (I didn't copy it, sorry, but it was something like that: Fatal error! Call to undefined function: _() in /.../.../..... on line 16), but after replacing util.php file my gallery showed up.
Thanks!

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Tue, 2003-11-11 23:29

malwinka, good to hear. It fixed Danny's problem too. So hopefully RC3 is released soon . . . ..

 
virshu
virshu's picture

Joined: 2003-09-13
Posts: 314
Posted: Wed, 2003-11-12 05:29

Well, I replaced util.php, reran config wizard, but I am still getting the same Fatal error: Call to undefined function: _() in /home/felix/public_html/gallery/classes/Album.php on line 42
:cry:

 
StevenO

Joined: 2003-11-12
Posts: 2
Posted: Wed, 2003-11-12 06:20

Still notta! I have tried a total of 8 times to install this, and nothing works, not even the util.php patch. I have tried 4 times with a fresh install and 4 times doing updates and nothing. I constantly get a blank screen. Anyone else still getting this blank screen even after the patch?

 
StevenO

Joined: 2003-11-12
Posts: 2
Posted: Wed, 2003-11-12 07:30

Woo Hoo, Finally after 10 tries, I got it to work! It's best to run the CONFIG, with the old util.php file, then when that is complete, and you are brought to the screen that gives you the link to your gallery to quickly upload and replace the old util with the new one, then click on the gallery link! (that is after you run all the chmods)!

Cool. :) :D

 
joan
joan's picture

Joined: 2002-10-21
Posts: 3473
Posted: Wed, 2003-11-12 08:13

Some people have trouble uncompress that zip file, so here it is plain text. Just rename it util.php.