Installing Acquia SPI after installing from a D7 "minimal" profile results in the following messages:
Notice: Use of undefined constant COMMENT_PUBLISHED - assumed 'COMMENT_PUBLISHED' in acquia_spi_get_quantum() (line 162 of /path/to/docroot/sites/all/modules/acquia_connector/acquia_spi/acquia_spi.module).
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db.comment' doesn't exist: SELECT COUNT(cid) FROM {comment} WHERE status = :comment_constant; Array ( [:comment_constant] => COMMENT_PUBLISHED ) in acquia_spi_get_quantum() (line 162 of /path/to/docroot/sites/all/modules/acquia_connector/acquia_spi/acquia_spi.module).
Attached is a patch which will check for the existence of the Comment module first.
| Comment | File | Size | Author |
|---|---|---|---|
| acquia_spi-no_comments-D6.patch | 753 bytes | jonathan webb | |
| acquia_spi-no_comments-D7.patch | 890 bytes | jonathan webb |
Comments
Comment #1
pwolanin commentedThanks, looks sensible.
Comment #2
RockSoup commentedI am also experiencing this issue.
Comment #3
shawn_smiley commentedThe Drupal 7 patch worked for me.
Comment #4
dixon_I can confirm that the patch for D7 works well and solves the problem. I reviewed the patch for D6 too and it looks good. I mean, it's pretty simple :)
So, I'm marking this as RTBC.
Comment #5
pingers commentedPatch worked for me too. Would be great to see this committed. Cheers Jonathon Webb.
Comment #6
pwolanin commentedthanks, committed.