Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AjaxChat not working after Upgrade
#1
Dear all,
i am using Blueimp's AjaxChat on my site. Ever since the 1.8.16 upgrade, it won't open any more. The MyBB integration seems broken. 
Anyone got any idea how to fix this? 


Code:
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
MyBB Internal: One or more warnings occurred. Please contact your administrator for assistance.
Query: SELECT userID, userName, userRole, channel, UNIX_TIMESTAMP(dateTime) AS timeStamp, ip FROM usr_web22_1.ajaxchat_online ORDER BY userName; Error-Report: Error-Code:


Code:
Your copy of MyBB running on Linguisten.de ([url=https://www.linguisten.de/]https://www.linguisten.de[/url]) has experienced an error. Details of the error include:
---
Type: 2
File: chat/lib/class/AJAXChatMySQLQuery.php (Line no. 24)
Message
mysql_query() expects parameter 2 to be resource, object given

Type: 2
File: chat/lib/class/AJAXChatMySQLQuery.php (Line no. 26)
Message
mysql_errno() expects parameter 1 to be resource, object given

Type: 2
File: chat/lib/class/AJAXChatMySQLQuery.php (Line no. 27)
Message
mysql_error() expects parameter 1 to be resource, object given
Reply
#2
++ bump ++
Reply
#3
P.S.: and no, the developer did not reply on email or github.
Reply
#4
On my site it's still working with 1.8.17.
Your errors look like the database connection type in chat/lib/config.php is set as "mysql". You could try changing it to "mysqli".
Reply
#5
Yay! That did it! ♥
Reply
#6
OK. Now i switched to PHP7 and i'm getting this error:

Code:
Your copy of MyBB running on Linguisten.de (https://www.linguisten.de) has experienced an error. Details of the error include:
---
Type: 2
File: chat/lib/class/AJAXChatTemplate.php (Line no. 55)
Message
preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead

The relevant code line is this:
PHP Code:
        $this->_parsedContent preg_replace($this->_regExpTemplateTags'$this->replaceTemplateTags(\'$1\', \'$2\')'$this->_parsedContent); 


How do I get it to work again, again?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)