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
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.
#2
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
Fixed in latest dev snapshot.
#4
Shouldn't have changed the version number last time.