Thread:Extension talk:MediaWikiChat/Database Error: A database query error has occurred. This may indicate a bug in the software./reply (12)

Okay, that error means your user does not have the permission to chat. (The 'chat' permission). Perhaps setting that (using wgGroupPermissions) might fix the problem?