From: skaill <sk...@ro...> - 2004-09-07 22:02:11
|
Couldn't say I was sure so I'm glad we figured out what was happening for sure. Just to emphasize, I'll repeat what you said so everyone knows or all the pages will be incorrect. Whoever is doing the pages for Multilanguage needs to move the line that sets $title to a string near the top of every page to after the session.inc include but before header.inc. header.inc uses $title so it must be set and translated before header.inc. Steve ----- Original Message ----- From: "Jesse Peterson" <je...@st...> To: <web...@li...> Sent: Tuesday, September 07, 2004 4:58 PM Subject: RE: [Web-erp-developers] Re: input & goods received mods 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. 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 ----- 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 . ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idP47&alloc_id808&op=ick _______________________________________________ Web-erp-developers mailing list Web...@li... https://lists.sourceforge.net/lists/listinfo/web-erp-developers |