When using drush site-install (si) to install COD, some event fields are left blank which causes a number of notices when visiting the site:

Notice: Undefined index: node in cod_events_og_user_access_alter() (line 129 of modules/contrib/cod_support/cod_events/cod_events.module).
Warning: Invalid argument supplied for foreach() in cod_events_og_user_access_alter() (line 129 of modules/contrib/cod_support/cod_events/cod_events.module).
Notice: Undefined index: node in cod_events_og_user_access_alter() (line 129 of modules/contrib/cod_support/cod_events/cod_events.module).
Warning: Invalid argument supplied for foreach() in cod_events_og_user_access_alter() (line 129 of modules/contrib/cod_support/cod_events/cod_events.module).
Notice: Undefined index: node in cod_events_og_user_access_alter() (line 129 of modules/contrib/cod_support/cod_events/cod_events.module).
Warning: Invalid argument supplied for foreach() in cod_events_og_user_access_alter() (line 129 of modules/contrib/cod_support/cod_events/cod_events.module).

The easy fix is to run a bunch of isset() or empty() checks, but we probably ought to figure out how to get drush to correctly enter the information. At the moment, the safest way to install the site is to use the standard install.php via a browser.

Comments

japerry’s picture

clementr’s picture

I'm new to Drupal. I was looking forward to trying out COD but I'm getting all the warnings above and I don't see any administration menu on my first event homepage. I installed the latest version cod-6.x-1.4 just by untarring the package to the appropriate directory of my local Windows PC instance of XAMPP (ApacheFriends XAMPP Version 5.6.3).

japerry’s picture

@clementr: Are you using COD 6 or COD 7? We recommend using the 7.x version as 6 isn't maintained anymore.

japerry’s picture

Priority: Normal » Minor

I'd love to see someone make a patch for this, but I don't have time at the moment.