Fails on multisite config

scedwar - November 23, 2007 - 15:32
Project:OG Contact
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:gnat
Status:closed
Description

Installing the module on a subsite of a multisite install (where the only shared tables are the user tables) fails:

Visiting a group home page exhibits this warning:

user warning: Table 'my_drupal.og_contact' doesn't exist query: SELECT gid FROM og_contact WHERE gid=38 in /home/username/public_html/includes/database.mysql.inc on line 172.

It appears as though the module is ignoring the database prefix???

#1

gnat - November 27, 2007 - 16:04
Assigned to:Anonymous» gnat
Status:active» reviewed & tested by the community

There was a check against the og_contact tabe that didn't have { } around it, that was likely what was causing this error, as in your case, it was calling "og_contact" instead of "prefix_og_contact".

I'm traveling right now, and don't have my CVS password with me, so I can't commit this patch to a new dev version until I get home, but here's the patch, its a single line change.

AttachmentSize
og_contact_patch.txt 482 bytes

#2

scedwar - November 26, 2007 - 16:42

that's fixed it! Thanks. I really need to get my head around the modules more and I can do some of my own fixes.

#3

gnat - December 8, 2007 - 17:27
Version:5.x-1.x-dev» 5.x-2.x-dev
Status:reviewed & tested by the community» closed

Fixed in latest dev snapshot.

#4

gnat - December 8, 2007 - 17:31
Version:5.x-2.x-dev» 5.x-1.x-dev

Shouldn't have changed the version number last time.

 
 

Drupal is a registered trademark of Dries Buytaert.