[Typo3-dev] $LANG is always NULL

Franz Holzinger franz at fholzinger.com
Thu Aug 4 16:12:32 CEST 2005


Hello,

at the site  http://81.223.48.238/sbmp.at/Monitore.28.0.html
  I have a problem with the $LANG and $GLOBALS['LANG'] variables.


E.g. at the beginning of the class.tx_ttproducts.php:

/**
  * Main method. Call this from TypoScript by a USER cObject.
  */
function main_products($content,$conf)	{
	global $TSFE, $LANG;
		// getting configuration values:
	$this->conf=$conf;

debug($LANG,'main_products: $LANG', __LINE__, __FILE__);
debug($GLOBALS['LANG'],'$GLOBALS[\'LANG\']', __LINE__, __FILE__);


The variables always give back NULL as result.


[debug] in 
/var/www/vhosts/sbmp.at/httpdocs/sbmp.at/typo3conf/ext/tt_products/pi/class.tx_ttproducts.php 
on line 113
user variable debug
==> Variable scope report
Mixed 	main_products: $LANG	NULL


How can this be solved?



Greetings,

Franz


Here are infos about the server:


### DEBUG SYSTEM INFORMATION - START ###
HTTP_HOST           : 81.223.48.238
TYPO3_HOST_ONLY     : 81.223.48.238
TYPO3_PORT          :
PATH_INFO           :
QUERY_STRING        : TYPO3_INSTALL[type]=phpinfo
REQUEST_URI         : 
/sbmp.at/typo3/install/index.php?TYPO3_INSTALL[type]=phpinfo
HTTP_REFERER        : http://81.223.48.238/sbmp.at/typo3/install/index.php?
TYPO3_REQUEST_HOST  : http://81.223.48.238
TYPO3_REQUEST_URL   : 
http://81.223.48.238/sbmp.at/typo3/install/index.php?TYPO3_INSTALL[type]=phpinfo
TYPO3_REQUEST_SCRIPT: http://81.223.48.238/sbmp.at/typo3/install/index.php
TYPO3_REQUEST_DIR   : http://81.223.48.238/sbmp.at/typo3/install/
TYPO3_SITE_URL      : http://81.223.48.238/sbmp.at/
TYPO3_SITE_SCRIPT   : typo3/install/index.php?TYPO3_INSTALL[type]=phpinfo
TYPO3_SSL           :
SCRIPT_NAME         : /sbmp.at/typo3/install/index.php
TYPO3_DOCUMENT_ROOT : /var/www/vhosts/sbmp.at/httpdocs
SCRIPT_FILENAME     : 
/var/www/vhosts/sbmp.at/httpdocs/sbmp.at/typo3/install/index.php
REMOTE_ADDR         : 62.178.150.71
REMOTE_HOST         :
HTTP_USER_AGENT     : Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; 
rv:1.7.10) Gecko/20050717 Firefox/1.0.6
HTTP_ACCEPT_LANGUAGE: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
CONST: PHP_OS       : Linux
CONST: TYPO3_OS     :
CONST: PATH_thisScri: 
/var/www/vhosts/sbmp.at/httpdocs/sbmp.at/typo3/install/index.php
CONST: php_sapi_name: apache2handler
OTHER: TYPO3_VERSION: 3.8.0
OTHER: PHP_VERSION  : 4.3.10-15
imagecreatefromgif(): 1
imagecreatefrompng(): 1
imagecreatefromjpeg(: 1
imagegif()          : 1
imagepng()          : 1
imagejpeg()         : 1
imagettftext()      : 1
OTHER: IMAGE_TYPES  : 15
OTHER: memory_limit : 32M
SERVER: SERVER_PORT : 80
SERVER: SERVER_SOFTW: Apache/2.0.54 (Debian GNU/Linux) 
FrontPage/5.0.2.2635 mod_python/3.1.3 Python/2.3.5 PHP/4.3.10-15 
mod_ssl/2.0.54 OpenSSL/0.9.7e mod_perl/1.999.21 Perl/v5.8.4
SERVER: GATEWAY_INTE: CGI/1.1
SERVER: SCRIPT_NAME : /sbmp.at/typo3/install/index.php
SERVER: PATH_TRANSLA: 
/var/www/vhosts/sbmp.at/httpdocs/sbmp.at/typo3/install/index.php
T3CV_GFX: image_proc: 1
T3CV_GFX: gdlib     : 1
T3CV_GFX: gdlib_png : 0
T3CV_GFX: gdlib_2   : 1
T3CV_GFX: im        : 1
T3CV_GFX: im_path   : /var/www/safebin/
T3CV_GFX: im_path_lz: /var/www/safebin/
T3CV_GFX: im_version: 1
T3CV_GFX: im_negate_: 1
T3CV_GFX: im_imvMask: 0
T3CV_GFX: im_combine: composite
### DEBUG SYSTEM INFORMATION - END ###




More information about the TYPO3-dev mailing list