From: Jesse P. <je...@st...> - 2004-09-07 20:58:25
|
Ok, I took another look and realized I was just foolish in my original = post. You probably don't have gettext enabled.... I never actually = looked, only grep'd to see if the gettext stuff is in session.inc - it = is included in session.inc . Not having that function defined when = gettext is not functional has to be what is causing you problem.=20 So, I imagine to make Language support work across the board, your = original statement that session.inc needs to be the first include in = every script is dead-on. Sorry to have caused doubt/confusion. jesse -----Original Message----- From: skaill [mailto:sk...@ro...] Sent: Tuesday, September 07, 2004 3:51 PM To: web...@li... Subject: Re: [Web-erp-developers] Re: input & goods received mods If I put the $title line at the top before session.inc include then I = get an error. I have not tampered with my session.auto_start or any other php settings. That was just information I passed on the other day but did = not try. I'm thinking since the _() function is defined in session.inc as = far as I see this would mean that the $title translation call is before the translation _() function is defined. I can't remember if php sees all functions in the includes whether before encountered or not though. I'm thinking not. The error is Fatal error: Call to undefined function: _() in /home/weberp/public_html/weberpcvstest/BankAccounts.php on line 4 when $title is before the session.inc include. Steve ----- Original Message -----=20 From: "Jesse Peterson" <je...@st...> To: <web...@li...> Sent: Monday, September 06, 2004 11:54 AM Subject: Re: [Web-erp-developers] Re: input & goods received mods > > >That is interesting that you had to include session.inc before $title > >was set. This doesn't appear necessary in php 5 and I have not done = this > >in the scripts I have modified - I will go back and modify them. I > >thought it would be necessary initially. > > > > > I don't have this problem ... I even see some scripts I am running out > of yesterday's CVS have this change made and seem to work fine. = Steve, > maybe this is a result of mucking with the session.auto_start variable > you mentioned in a post some days ago?? For the record, I am running > under php 4.3.4 . |