FreiChat related discussions
FreiChat 5.0 - Joomla template-problems... :-(

I have some problems with FreiChat and my Joomla-template:

Online-Users are shown wenn I log in. But after some minutes, no online-users are shown any longer. This problem I found in Chrome and Firefox, but not in IE9.
Nearly the same happens with the status. When I set my status in Chrome or Firefox as "invisible" (or busy), in IE 9 the user is shown as offline/busy some seconds later. But when I change the status in IE9 and look at Firefox/Chrome, nothing changes. The user is still online.

I tested another template and there the problems isn´t. Where can be the problem in my template???

I have some problems with FreiChat and my Joomla-template: Online-Users are shown wenn I log in. But after some minutes, no online-users are shown any longer. This problem I found in Chrome and Firefox, but not in IE9. Nearly the same happens with the status. When I set my status in Chrome or Firefox as "invisible" (or busy), in IE 9 the user is shown as offline/busy some seconds later. But when I change the status in IE9 and look at Firefox/Chrome, nothing changes. The user is still online. I tested another template and there the problems isn´t. Where can be the problem in my template???

can't tell what the problem is without looking at the template, but you could use a debugger like firebug(an extension for firefox) and find the errors.

can't tell what the problem is without looking at the template, but you could use a debugger like firebug(an extension for firefox) and find the errors.
Necessity is the mother of all inventions!

I tested it again and again and found out that the problem can be solved with a manual installation instead of the automatic with installing the modul. Now all works fine (I think).

I tested it again and again and found out that the problem can be solved with a manual installation instead of the automatic with installing the modul. Now all works fine (I think).

But now I have the next problem. Now I finally installed FreiChat in my real site but it doesn´t work. The problem seems to come from the domain-forwarding of the site:

When I start my page in browser with the native server-address "http://241065.webtest.goneo.de/sw/" everything works well. But when I start it with the standard-domain "http://www.sneaksworld.de" it doesn´t work. Only the chatwindow is shown, but without the icons and in the window there is only the text "User".

I don´t have an alert that arg.php is not found. I installed freichat from "www.sneaksworld.de/freichat/installation"

<!--==========================FreiChatX====VERSIONS====5.X====START========================-->
<!-- For uninstalling ME , first remove/comment all FreiChatX related code i.e below code
Then remove FreiChatX tables frei_session & frei_chat if necessary
The best/recommended way is using the module for installation -->

<?php $session = JSession::getInstance("none",array());
$host = JURI::root();
$ses=$session->getId();

if(!function_exists("freichatx_get_hash")){
function freichatx_get_hash($ses){

if(is_file("/web/1/000/059/325/241065/htdocs/sw/freichat/arg.php")){

require "/web/1/000/059/325/241065/htdocs/sw/freichat/arg.php";

$temp_id = $ses . $uid;

return md5($temp_id);

}
else
{
echo "<script>alert('module freichatx says: arg.php file not
found!');</script>";
}

return 0;
}
}
?>
<script type="text/javascript" language="javascipt" src="<?php%20echo%20%24host;%20?>freichat/client/main.php?id=<?php%20echo%20%24ses;?>&xhash=<?php%20echo%20freichatx_get_hash(%24ses);%20?>">
</script><link rel="stylesheet" href="<?php%20echo%20%24host;%20?>freichat/client/jquery/freichat_themes/freichatcss.php" type="text/css"><!-- NOTE:: The copypaste code differs from 4.X to 5.X and may differ for further versions--><!-- So to be at a safer side always replace the entire FreiChatX code during installation--><!--===========================FreiChatX====VERSIONS====5.X====END=========================-->

But now I have the next problem. Now I finally installed FreiChat in my real site but it doesn´t work. The problem seems to come from the domain-forwarding of the site: When I start my page in browser with the native server-address &quot;http://241065.webtest.goneo.de/sw/&quot; everything works well. But when I start it with the standard-domain &quot;http://www.sneaksworld.de&quot; it doesn´t work. Only the chatwindow is shown, but without the icons and in the window there is only the text &quot;User&quot;. I don´t have an alert that arg.php is not found. I installed freichat from &quot;www.sneaksworld.de/freichat/installation&quot; &amp;lt;code&amp;gt; &amp;lt;!--==========================FreiChatX====VERSIONS====5.X====START========================--&amp;gt; &amp;lt;!-- For uninstalling ME , first remove/comment all FreiChatX related code i.e below code Then remove FreiChatX tables frei_session &amp; frei_chat if necessary The best/recommended way is using the module for installation --&amp;gt; &amp;lt;?php $session = JSession::getInstance(&quot;none&quot;,array()); $host = JURI::root(); $ses=$session-&amp;gt;getId(); if(!function_exists(&quot;freichatx_get_hash&quot;)){ function freichatx_get_hash($ses){ if(is_file(&quot;/web/1/000/059/325/241065/htdocs/sw/freichat/arg.php&quot;)){ require &quot;/web/1/000/059/325/241065/htdocs/sw/freichat/arg.php&quot;; $temp_id = $ses . $uid; return md5($temp_id); } else { echo &quot;&amp;lt;script&amp;gt;alert(&#039;module freichatx says: arg.php file not found!&#039;);&amp;lt;/script&amp;gt;&quot;; } return 0; } } ?&amp;gt; &amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascipt&quot; src=&quot;&amp;lt;?php echo $host; ?&amp;gt;freichat/client/main.php?id=&amp;lt;?php echo $ses;?&amp;gt;&amp;xhash=&amp;lt;?php echo freichatx_get_hash($ses); ?&amp;gt;&quot;&amp;gt; &amp;lt;/script&amp;gt; &amp;lt;link rel=&quot;stylesheet&quot; href=&quot;&amp;lt;?php echo $host; ?&amp;gt;freichat/client/jquery/freichat_themes/freichatcss.php&quot; type=&quot;text/css&quot;&amp;gt; &amp;lt;!-- NOTE:: The copypaste code differs from 4.X to 5.X and may differ for further versions--&amp;gt; &amp;lt;!-- So to be at a safer side always replace the entire FreiChatX code during installation--&amp;gt; &amp;lt;!--===========================FreiChatX====VERSIONS====5.X====END=========================--&amp;gt; &amp;lt;/code&amp;gt;

can you create two test accounts so that i can test it myself.
i will know what exactly is happening...

can you create two test accounts so that i can test it myself. i will know what exactly is happening...
Necessity is the mother of all inventions!

I don´t have activated Freichat yet on the mainpage because it doesn´t work and lots of users are online. So you can´t test it.

But I made some tests:
First I created a copy of my site into a second folder and linked the domain "test.sneaksworld.de" to it: Freichat worked there perfect.

I activated Freichat at my main-page again and started with "www.sneaksworld.de" and the chat didn´t work. Then I tried to start the page with "sneaksworld.de" and the chat worked wonderful.

So the problem is, that the users must start the page without the "www." to use the chat. A similar error was already discused here or is that another problem??
--> http://evnix.com/drupal2/?q=node/131

I don´t have activated Freichat yet on the mainpage because it doesn´t work and lots of users are online. So you can´t test it. But I made some tests: First I created a copy of my site into a second folder and linked the domain &quot;test.sneaksworld.de&quot; to it: Freichat worked there perfect. I activated Freichat at my main-page again and started with &quot;www.sneaksworld.de&quot; and the chat didn´t work. Then I tried to start the page with &quot;sneaksworld.de&quot; and the chat worked wonderful. So the problem is, that the users must start the page without the &quot;www.&quot; to use the chat. A similar error was already discused here or is that another problem?? --&amp;gt; http://evnix.com/drupal2/?q=node/131

If i am not mistaken , this issue has already been solved in the latest version
i.e 5.0

Which browser do you use. (for debugging)

If you are using chrome , check for the freichat requests in the network tab ,
and console in firebug.

Are they succesfull or not ?

If i am not mistaken , this issue has already been solved in the latest version i.e 5.0 Which browser do you use. (for debugging) If you are using chrome , check for the freichat requests in the network tab , and console in firebug. Are they succesfull or not ?
Necessity is the mother of all inventions!

I checked with chrome:

Screenshot

The error seems to be in freichat.php and occurs because the "www." is double. Therefore it works when I start the page without "www."

Is that screenshot OK? If you need another one let me know.

I checked with chrome: &amp;lt;a href=&quot;http://www.imgbox.de/users/public/images/284B20nqiw.jpg&quot; title=&quot;Screenshot&quot;&amp;gt;Screenshot&amp;lt;/a&amp;gt; The error seems to be in freichat.php and occurs because the &quot;www.&quot; is double. Therefore it works when I start the page without &quot;www.&quot; Is that screenshot OK? If you need another one let me know.

My first question would be , that did you make any changes in the code
related to url's

If not , in ~freichat/client/main.php , on line 57 ,
You will have to make some changes .there.

Also , i checked your site , i am unable to access it with www. ,
And yes you made a really cool theme.

My first question would be , that did you make any changes in the code related to url&#039;s If not , in ~freichat/client/main.php , on line 57 , You will have to make some changes .there. Also , i checked your site , i am unable to access it with www. , And yes you made a really cool theme.
Necessity is the mother of all inventions!

I didn´t change any code related to URL´s. I just translated some text-parts into German.

At my site I disabled the "www." in the domain-administration now, so you can´t access the domain with www. anymore. All requests with "www." are redirected to the domain without the www. So I could merge the error and FreiChat works fine now (I hope). I´ll test it out. At my site, mostly between 15-30 users are simultaneously online. So if we find more problems I´ll tell you.

And within the next days I´ll send you the completely translated german version of FreiChat and the theme I´ll share also. :-)

I didn´t change any code related to URL´s. I just translated some text-parts into German. At my site I disabled the &quot;www.&quot; in the domain-administration now, so you can´t access the domain with www. anymore. All requests with &quot;www.&quot; are redirected to the domain without the www. So I could merge the error and FreiChat works fine now (I hope). I´ll test it out. At my site, mostly between 15-30 users are simultaneously online. So if we find more problems I´ll tell you. And within the next days I´ll send you the completely translated german version of FreiChat and the theme I´ll share also. :-)

Can you remove the code that is redirecting www. request for time being for testing.

I just want to see if the below thing works.

Go to ~/freichat/client/main.php , in that file comment the following lines

if(strpos($referer_url, 'tp://www.') == TRUE)
{
$url = str_replace('http://', 'http://www.', $url);
}


i.e they should now look like

// if(strpos($referer_url, 'tp://www.') == TRUE)
// {
// $url = str_replace('http://', 'http://www.', $url);
// }


And reload your page , see if the www. requests work , if they dont work , revert everything .

Since , this is the only line that can cause your error.
So i think this should solve your problem.
thanks.

Can you remove the code that is redirecting www. request for time being for testing. I just want to see if the below thing works. Go to ~/freichat/client/main.php , in that file comment the following lines &amp;lt;code&amp;gt; if(strpos($referer_url, &#039;tp://www.&#039;) == TRUE) { $url = str_replace(&#039;http://&#039;, &#039;http://www.&#039;, $url); } &amp;lt;/code&amp;gt; i.e they should now look like &amp;lt;code&amp;gt; // if(strpos($referer_url, &#039;tp://www.&#039;) == TRUE) // { // $url = str_replace(&#039;http://&#039;, &#039;http://www.&#039;, $url); // } &amp;lt;/code&amp;gt; And reload your page , see if the www. requests work , if they dont work , revert everything . Since , this is the only line that can cause your error. So i think this should solve your problem. thanks.
Necessity is the mother of all inventions!
156
11
0
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft