[TYPO3-install] Missing in action!! Filelinks, SearchForm Labels, Login Form Lables, and all Plugins

Matt Dayton matt at ukstudentdiary.com
Sat Sep 16 00:23:12 CEST 2006


Thank you Micheal for the insightful assist!
   
  I have debuged t3lib/class.t3lib_div.php and discoverd that my problem lies in the t3lib/class.t3lib_div.php => function getFileAbsFileName(), line 3212. 
   
  For some unknown reason, only when the FE uses this function, $filename has two prefix slashes instead of one slash witch results in the validPathStr function to return an empty $LOCAL_LANG array.  
   
  In example, the " $filename" before line:
  *****
  if (strcmp($filename,'') && t3lib_div::validPathStr($filename)) { // checks backpath.
   return $filename;
  }
*****
  is returning:  //typo3/sysext/css_styled_content/pi1/locallang.xml
  and of course even if this filename passes the validPathStr funtion, it would surely not pass the XML caching later on.
   
  Because I am new to Typo3 and PHP, I am in desperate search for some advice and maybe a helping hand. Fumbling around with an IF statement to chop of this extra slash, has proved more dificult than I had thought. 
   
  Maybe modifying the class.t3lib_div.php is overkill and I am overlooking a simple typoscript setting somewhere.  
   
  please help??
   
   
   
   
  

Michael Stucki <michael at typo3.org> wrote:
  >Hi matt,

>> /typo3/sysext/css_styled_content/pi1/locallang.xml
> >**refered to as**
>> [data]=LLL:EXT:css_styled_content/pi1/locallang.php:some called data
>> here.
>> 
> >this file exists on my server, but for some reason, typo3 is not
>> accessing it. My question to everyone is WHY???

>It is no problem that TYPO3 requests the labels in locallang.php >instead of
>locallang.xml. It automatically tried to find the same file with the .xml
>extension. However this could become more logical if setup.txt of
>css_styled_content would be changed accordingly.

>I don't believe that this has to do with your problem. But you might >want to
>debug a little bit. A good start for this are:

>t3lib/class.t3lib_div.php => function getLLfile()
>typo3/sysext/cms/tslib/class.tslib_fe.php => function sL()

>- michael





More information about the TYPO3-install mailing list