1
Hi All,
I have been racking my brain on this for hours now
and just can't seem to find it, can anyone give me a hand ?
My host has set up a testing site for me as they are going to upgrade from php 5.1.6 to 5.2
A blank screen is being displayed after the upgrade because of an error which is being caused by xlanguage in the buffer. I have found out it is the following line in modules/xlanguage/include/functions.php
$langs =& $GLOBALS["xlanguage_handler"]->getAll(true);
I know it is this line because if i put reutrn $s; on the line before it the functions gets exited and the output to the buffer stops. My site then shows up but obviously with all the langauge tags displayed.
Does anyone know why php 5.2 might have a problem with this part of xlanguage ?
If I add this line to the .htaccess file :
AddType application/x-httpd-php-4 .php
to force the server into php4 mode everything works as expected.
Dropping Xlanguage is not an option for us and seeing as it will become part of the core this might affect others to.
This error is happing with xlanguage 2.04 and the new xlangauge 3.0 versions. Allthough the xlanguage_ml() functions differs the error is still thrown on the same line ! ($langs =& $GLOBALS["xlanguage_handler"]->getAll(true);)
Can anyone think up a good strategy to find out what is going wrong ?
Kind reagrds,
Highlander