FreiChat related discussions
Freichatx stops working - gives "is undefined" error

I have run into the (hopefully!) last bug with Freichatx. After running Freichatx for a couple of hours on my localhost joomla installation, it stops wroking, and I get a javascript error in internet explorer. Clicking the error brings up the message:
----------------

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Fri, 13 Jan 2012 22:07:21 UTC

Message: 'FreiChat' is undefined
Line: 1
Char: 1
Code: 0
URI: http://evnix-dot-com.appspot.com/?time=1326492245
----------------

Restarting the PC that the localhost joomla installation is running on solves this problem, but I don't want to have to restart every couple of hours just to keep the chat working. I have looked through the code at what might be causing this, and there is a javascript instance connecting this URL back to the chatroom (which I've hidden anyway, I dont' want the chatroom on the page). Is there a way to get rid of the:
script type="text/javascript" src="http://evnix-dot-com.appspot.com/?time=1326491699" /script
code that is causing this problem?

If I remove the http://evnix-dot-com.appspot.com/?time='.time()) instance from the module PHP file, the chat stops working. I'm lost!

Any help would be appreciated! Thank you

I have run into the (hopefully!) last bug with Freichatx. After running Freichatx for a couple of hours on my localhost joomla installation, it stops wroking, and I get a javascript error in internet explorer. Clicking the error brings up the message: ---------------- Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) Timestamp: Fri, 13 Jan 2012 22:07:21 UTC Message: 'FreiChat' is undefined Line: 1 Char: 1 Code: 0 URI: http://evnix-dot-com.appspot.com/?time=1326492245 ---------------- Restarting the PC that the localhost joomla installation is running on solves this problem, but I don't want to have to restart every couple of hours just to keep the chat working. I have looked through the code at what might be causing this, and there is a javascript instance connecting this URL back to the chatroom (which I've hidden anyway, I dont' want the chatroom on the page). Is there a way to get rid of the: script type="text/javascript" src="http://evnix-dot-com.appspot.com/?time=1326491699" /script code that is causing this problem? If I remove the http://evnix-dot-com.appspot.com/?time='.time()) instance from the module PHP file, the chat stops working. I'm lost! Any help would be appreciated! Thank you

the javascript is downloaded from one of our server instances,
This javascript code cannot be cached and is updated every now and then (all security related fixes are streamed from here). this code doesn't come under the license that you get when you download FreiChatX.
Since we allow our program to be downloaded without any requirement for registration, we have no control over who uses the program, since the JS code is downloaded from our server, we can stop rogue elements(terrorists and similar) from using our program.

From FreiChatX 7(next major version), we will allow this dependency to be removed by registering(site url) with us.

the javascript is downloaded from one of our server instances, This javascript code cannot be cached and is updated every now and then (all security related fixes are streamed from here). this code doesn't come under the license that you get when you download FreiChatX. Since we allow our program to be downloaded without any requirement for registration, we have no control over who uses the program, since the JS code is downloaded from our server, we can stop rogue elements(terrorists and similar) from using our program. From FreiChatX 7(next major version), we will allow this dependency to be removed by registering(site url) with us.
Necessity is the mother of all inventions!

Thank you for your in-depth reply! That actually makes sense. I'm still running into that problem where after a period of time, the chat module will time out though, and the only way to get it back is to restart the server that the joomla installation is on. The error that it's giving me is that "Freichatx is undefined" error. Do you have any idea what would be causing this or how to correct it?

Thank you!

Thank you for your in-depth reply! That actually makes sense. I'm still running into that problem where after a period of time, the chat module will time out though, and the only way to get it back is to restart the server that the joomla installation is on. The error that it's giving me is that "Freichatx is undefined" error. Do you have any idea what would be causing this or how to correct it? Thank you!

I have used freichat in PHP.
I got the js generated from http://evnix-dot-com.appspot.com/?time=1325470593 via some web proxy and named tmp.js, then I modified test.php to

<script type="text/javascript" language="javascipt" src="tmp.js?time=&lt;?php%20echo%20time()%20?&gt;"></script>

to use the tmp.js instead the original url.

But it cause an error.
"$jn is not a function"

Can you please give me solution?

I have used freichat in PHP. I got the js generated from http://evnix-dot-com.appspot.com/?time=1325470593 via some web proxy and named tmp.js, then I modified test.php to &amp;lt;script type=&quot;text/javascript&quot; language=&quot;javascipt&quot; src=&quot;tmp.js?time=&amp;lt;?php echo time() ?&amp;gt;&quot; &amp;gt;&amp;lt;/script&amp;gt; to use the tmp.js instead the original url. But it cause an error. &quot;$jn is not a function&quot; Can you please give me solution?

Please note, The JS files loaded externally are not included with this license. So you are not supposed to download/modify them.
so please use the external JS instead of making a local copy.

Please note, The JS files loaded externally are not included with this license. So you are not supposed to download/modify them. so please use the external JS instead of making a local copy.
Necessity is the mother of all inventions!
79
4
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