[Typo3-german] Lösung von: derjoerg

Wilfried w22 at Scubaplanet.de
Sun Dec 11 21:54:37 CET 2005


Lösung gefunden unter:
---> 
http://typo3.org/documentation/document-library/so_chat/To_Do_list-d39e9ebd34/

Date: 08-12-2005 15:37 by derjoerg

I've found the "bug" in the so_jpspan extension and why I always get this 
strange error message.

The javascript code, which is added with the call:
script type="text/javascript" 
src="en/library/index.htm?tx_sochat_pi1%5Bview%5D=chat&no_cache=1&client=1"

Have near the end the following line:
oParent.__serverurl = 
'http://domain.com/index.php?tx_sochat_pi1%5Bview%5D=chat&no_cache=1&tx_sochat_chatbox';

The problem is the index.php (I use realurl):

After long long searches I found the responsible function in Server.php -> 
resolveScriptName()

I've changed this function to the following:
function resolveScriptName() {

if (defined('TYPO3_MODE')) {
$script_name = $_SERVER['REDIRECT_URL'];
} else {

if ( isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] == 
$_SERVER['PHP_SELF'] ) {
$script_name = $_SERVER['PATH_INFO'];
} else {
$script_name = $_SERVER['SCRIPT_NAME'];
}

}

return $script_name;
}

The important thing is REDIRECT_URL.

Perhaps there is a better solution. But now, so_chat works for me.




Ciao 
Wilfried --------------------------------------------------------------------------------

PS: bei mir funktioniert es damit.





More information about the TYPO3-german mailing list