Installation of the 7.x-2.0-beta5 and 7.x-2.x-dev COD distributions result in errors. The first error indicated right away is during the installation:

User warning: The following module is missing from the file system: cod. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1128 of path-to-site/includes/bootstrap.inc).

If you ignore the warning and continue, everything will install. However, important rules for the redemption of tickets in the ticket_reservation module are not enabled. In fact, the 'cod_registration_email' feature is disabled.

I used drush to attempt to enable it:

drush en cod_registration_email

Result:

WD rules_config: PDOException: SQLSTATE[HY000]: General error: 1364 Field 'plugin' doesn't have a default value: INSERT INTO {rules_config} (name, status, module) VALUES (:db_insert_placeholder_0, [error]
:db_insert_placeholder_1, :db_insert_placeholder_2); Array
(
[:db_insert_placeholder_0] => rules_ticket_reservation_is_redeemed
[:db_insert_placeholder_1] => 2
[:db_insert_placeholder_2] => cod_registration_email
)
in drupal_write_record() (line 7379 of /path-to-site/includes/common.inc).
exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1364 Field 'plugin' doesn't have a default value' in [error]
/path-to-site/includes/database/database.inc:2227

The end result is that the rules are not imported for the handling of ticket reservations, and the e-mail to send out reservation codes that can be redeemed are also not in place.

Disabling ticket_reservation is not an option, because the following modules depend on it:
cod_registration, cod_paid_events, cod_registration_email, cod_registration_pages

Comments

aajones created an issue.

ShaunLaws’s picture

aajones’s picture

I can confirm that this fixes the problem.