Chat: "Undefined" Problem is BACK |
| |||
Hello Vincent! The problem with the chatroom with users showing up as "Undefined" is back. Made no change to the app. Can you fix? or anyone else? Thanks!
|
| |||
Can you fix? or anyone else? Thanks!
|
| |||
Someone else (Kevin) found the solution on this website: [url]http://anantgarg.com/2009/05/13/gmail-facebook-style-jquery-chat/[/url] Chat now works flawlessly so far for me. Basically change the lines below in chat.php : $dbh = mysql_connect(DBPATH,DBUSER,DBPASS); to @$dbh = mysql_connect(DBPATH,DBUSER,DBPASS); Kevin says that ... "My MySQL was outputting some additional information which can be disregarded with the “@” symbol, therefor the json actually passes the correct username to the script. Hope it helps!" Thank Kevin, not me, :)
|
| |||
tq for fix this error
|
| |||
[quote=monti]: $dbh = mysql_connect(DBPATH,DBUSER,DBPASS); to @$dbh = mysql_connect(DBPATH,DBUSER,DBPASS); I did change the $ to @ and still I am getting an undefined user from the chat bar
|
| |||
i think i found the problem, i tried deleting the cache and cookies, and re uploaded the chatbar to the modules, refreshed everything and its working fine now.. :) I tested it using 2 different browsers and accounts, all is good. hope i dont need to do this every now and then..
|
| |||
Kevin says that ... "My MySQL was outputting some additional information which can be disregarded with the “@” symbol, therefor the json actually passes the correct username to the script. I cant understand this ?
|
| |||
[quote=monti]Someone else (Kevin) found the solution on this website: [url]http://anantgarg.com/2009/05/13/gmail-facebook-style-jquery-chat/[/url] Chat now works flawlessly so far for me. Basically change the lines below in chat.php : $dbh = mysql_connect(DBPATH,DBUSER,DBPASS); to @$dbh = mysql_connect(DBPATH,DBUSER,DBPASS); Kevin says that ... "My MySQL was outputting some additional information which can be disregarded with the “@” symbol, therefor the json actually passes the correct username to the script. Hope it helps!" Thank Kevin, not me, :) [/quote] But this not working. Please as soon as tell how to fix it..
|