Getting Error when sending messages
Brought to you by:
ajaximrpg
I get:
"Error: An unknown error occured while sending your message."
After installing on Ubuntu 10.04 running MySQL 14.14 dist 5.1.41 and PHP version 5.3.2-1ubuntu4.5
Interestingly enough, someone else in the lobby does still see my messages come across.
Screen shot attached.
Greg,
Sorry that it took me so long to respond. I will try to reproduce the error.
When you send the message, it is sent to the send() function in ajax_act.php on the server. The send() function sends it on to the other users (who apparently are receiving it) and responds back with either "sent" or some error message. In some configurations, the PHP script will create a warning that will mess up the "sent" response. The "sent" response is there but the PHP warning messes up the processing. I can analyze this.
If you want, you can modify im.basic.js to add the following alert() call:
var respText = xh.responseText;
alert(respText); // add the code on this line
If you upload this to your server and then reproduce the problem, you can find out the status response that is coming back from the server. If you send that to me, it will help me debug.
Whether you do that or not, I appreciate your bug report. Thanks for submitting it. I'll try to figure it out.
Dan
I added some code to HEAD to (1) pretty-print PHP errors and warnings to the chat window for easier debugging of these types of issues and (2) to make the system skip over, instead of choke, on non-critical PHP errors and warnings. If you get a chance, get the code from HEAD and try it out. If you need a personal build of HEAD, let me know.