Fatal Error After Server Upgrade

bradb

Joined: 2003-12-12
Posts: 9
Posted: Fri, 2004-01-16 02:53

I started getting an error today after my host upgraded the apache and php on my server. This is the error:

Fatal error: Call to undefined function: _() in /home/bradbrug/public_html/gallery/classes/Album.php on line 42

Any help would be outstanding, the versions listed below are after the upgrade. Thanks!
----
Gallery URL : www.bradbrugger.com/gallery
Gallery version: 1.4.1
Apache version: 1.3.29
PHP version : 4.3.3
Graphics Toolkit:
Operating system: linux
Web browser/version : IE 6

 
bradb

Joined: 2003-12-12
Posts: 9
Posted: Fri, 2004-01-16 20:57

Well my host has reinstalled php and apache and then upgraded the php tp 4.3.4 and still no go. I can reinstall but I really need to get the comments from one of the albums. Where would I look to find that info?

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Fri, 2004-01-16 22:03

Moving to Translations...

 
bradb

Joined: 2003-12-12
Posts: 9
Posted: Fri, 2004-01-16 22:26
joyoflinux wrote:
Moving to Translations...

Sorry for putting it in the wrong forum!

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Fri, 2004-01-16 22:46

bradb, it has. The _(insert stuff here. :) ) is a part of the translation bit. Tim_J'll probably answer.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Fri, 2004-01-16 22:57

Jep, he will.

Hi Brad.

_() is a short form for gettext(). Which is the function that does the translation in Gallery.

This error Message cant appear if gallery 1.4.1 was installed or upgraded correctly.
Because either PHP is compiled with gettext, then _() is a built in function or it wasnt then we substitute it.

So please check that your installation or upgrade of GALLERY went well.
especially the files init.php and util.php are very important.

If it still does not work, please let me know.
But then i would need access to your Server to do some test.

Regards,

Jens

P.S.: if i had 7 posts (now 8 ) and someone with over 5600 does something.. i would believe him :)

 
bradb

Joined: 2003-12-12
Posts: 9
Posted: Sat, 2004-01-17 03:12
Quote:
P.S.: if i had 7 posts (now 8 ) and someone with over 5600 does something.. i would believe him :)

Ok,

Sorry for the questioning of the post, please forgive my ignorance.

I just backed it all up and deleted my gallery folder and reinstalled and it works now.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Sat, 2004-01-17 14:11

Hi,

You edited your post :)

Maybe you were not running 1.4.1 before ? Maybe 1.4pl1 ?

Anyway, good to hear it works now.

Jens