Closed (fixed)
Project:
Google Chat
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Apr 2013 at 00:37 UTC
Updated:
10 May 2013 at 05:40 UTC
TYP PHP
DATUM Samstag, April 6, 2013 - 00:32
BENUTZER admin
STANDORT http://dev.domain.com/googlechat/chatheartbeat?_=1365208336518
REFERRER http://dev.domain.com/admin/reports
NACHRICHT Warning: mysql_real_escape_string(): A link to the server could not be established in googlechat_chatheartbeat() (Zeile 203 von /data/disk/o1/static/domain1/sites/domain.com/modules/googlechat/googlechat.module).
SCHWEREGRAD Warnung
Comments
Comment #1
3olution commentedExact same problem on the Drupal 6 Version here.
warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/filefolder/public_html/sites/all/modules/googlechat/googlechat.module on line 196.
warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/filefolder/public_html/sites/all/modules/googlechat/googlechat.module on line 126.
Chat works, except heartbeat seems to be broken....
Great module by the way! Keep up your good work!
Comment #2
ankitchauhan commentedSounds lile a MySQL problem.
What version of MySQL and PHP are you using?
Comment #3
bennos commentedMariaDB 5.5
PHP 5.3.10
Comment #4
ankitchauhan commentedIt seems as if your db connection is on a different scope or just not working. Can you do a db query before that line of code to make sure your db connection is working as intended? Or var_dump your connection var to make sure there is something there?
Comment #5
ankitchauhan commentedThe mysql_real_escape_string() error is because the db calls aren't using the Drupal db abstraction functions. So removing it for a while. Try the latest code
Comment #6
ankitchauhan commented