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

3olution’s picture

Exact 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!

ankitchauhan’s picture

Sounds lile a MySQL problem.

What version of MySQL and PHP are you using?

bennos’s picture

MariaDB 5.5
PHP 5.3.10

ankitchauhan’s picture

It 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?

ankitchauhan’s picture

Status: Active » Needs review

The 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

ankitchauhan’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.