Instant Messenger Problem

alraben - June 4, 2009 - 15:38

Hi,

When I try to enable Instant Messenger module, I have the following error:

warning: pg_query() [function.pg-query]: Query failed: ERROR: relation "im_msg" does not exist in /opt/local/apache2/htdocs/intranet.cgcom.es/includes/database.pgsql.inc on line 139.
user warning: query: SELECT suid, sname, COUNT(*) AS num_waiting FROM im_msg WHERE ruid=1 AND suid != -1 AND received_time = '0000-00-00 00:00:00' GROUP BY suid in /opt/local/apache2/htdocs/intranet.cgcom.es/sites/all/modules/im/im.module on line 794.
warning: pg_query() [function.pg-query]: Query failed: ERROR: relation "im_msg" does not exist in /opt/local/apache2/htdocs/intranet.cgcom.es/includes/database.pgsql.inc on line 139.
user warning: query: SELECT suid, sname, COUNT(*) AS num_waiting FROM im_msg WHERE ruid=1 AND suid != -1 AND received_time = '0000-00-00 00:00:00' GROUP BY suid in /opt/local/apache2/htdocs/intranet.cgcom.es/sites/all/modules/im/im.module on line 794.

I've read in README.txt module that enabling the module, a new table called "im_msgs" is created but this table has not created ...

Any suggestion? I need a module like that :D.

Thanks for all ...

Álvaro.

nobody?

alraben - June 5, 2009 - 07:32

nobody?

module version =? when u

mm167 - June 5, 2009 - 10:33

module version =?

when u installed the module, did u see any error message?

u are using pgsql ?

We go the drupal way. How about you?
http://www.drupalway.com

Hi

Awijeet - June 5, 2009 - 12:21

I have used same module and works properly, So you need to check the module version and drupal version as well, hope you will manage all stuff according. Wish you best of luck

I use drupal 6.12 and the

alraben - June 5, 2009 - 14:48

I use drupal 6.12 and the following version of the module:

Development snapshots Date Size Links Status
6.x-1.x-dev 2009-Jun-03 80.1 KB Download · Release notes Development snapshot

Yes ... I use pgsql ... it's only for mysql? I think no ...

nobody?

alraben - June 9, 2009 - 08:28

nobody?

up!

alraben - June 13, 2009 - 14:08

up!

here's how im create a table

siodong - June 16, 2009 - 11:03

here's how im create a table on mysql :

CREATE TABLE {im_msg} (
  `mid` INT NOT NULL auto_increment,
  `suid` INT NOT NULL DEFAULT 0,
  `sname` VARCHAR(60) NOT NULL DEFAULT '',
  `ruid` INT NOT NULL DEFAULT 0,
  `rname` VARCHAR(60) NOT NULL DEFAULT '',
  `msg` VARCHAR(255) NOT NULL DEFAULT '',
  `sent_time` DATETIME NOT NULL DEFAULT 0,
  `received_time` DATETIME NOT NULL DEFAULT 0,
  PRIMARY KEY (mid),
  INDEX sender_uid (suid),
  INDEX recipient_uid (ruid)
) /*!40100 DEFAULT CHARACTER SET UTF8 */

you can check that query and maybe found incompatibility with pg query. or if there's not found, you can try to build im_msg table by that query and see if the module can work properly.

 
 

Drupal is a registered trademark of Dries Buytaert.