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.

Comments

pwolanin’s picture

Thanks, looks sensible.

RockSoup’s picture

I am also experiencing this issue.

shawn_smiley’s picture

The Drupal 7 patch worked for me.

dixon_’s picture

Status: Needs review » Reviewed & tested by the community

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.

pingers’s picture

Patch worked for me too. Would be great to see this committed. Cheers Jonathon Webb.

pwolanin’s picture

Status: Reviewed & tested by the community » Fixed

thanks, committed.

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