SRL Archive - Web Development

Error NPobject AjaxChat


sm0k3

2011-05-24 10:37:46

hey all anyone know what a null NPobject is?

i have a Ajax/JS/Mysql shoutbox integrated with MyBB from http://blueimp.net/

ive succesfully integrated it with MyBB an for a few days it was working fine
then yesterday somthing strange happened.
i went to community.anarchy1.tk and logged in then clicked in the Shoutbox
and up popped an alert
(firefox gives the error as a null NPobject but i happenes rarly with chrome it happens every time : i will post The Firefox error as soon as i manage to screenshot it :) )



so i went to http://community.anarchy1.tk/chat/ (the actual chatroom Script)
and fter logging in i noticed that the smilies below the inputbox were not showing up ( i dont know if thats anything to do with it )

so my question is anyone know what the error in the screenie is all about or would anyone care to take a look ? i have tryed myself but i have no experiance with this kind of script.

sm0k3

2011-05-25 20:10:23

ive fixed this all so . con be closed or whatever now .. :)

HarryJames

2011-05-25 20:15:25

You should share the fix, just in case :)

sm0k3

2011-05-25 20:26:17

well basicly te error itself nt a problem . the chat will continue to work regardless .

It seems some debug code was left in the app. If you edit chat.js ( thats in your AJAXchat Directory's js folder normaly /chat/js/chat.js )

go to line 633 and just comment out the "alert(e)" message the dialog will not appear in your browser. Everything will work fine after this.