after enabling the module installation dies with a

Fatal error: Cannot redeclare ca_build_email_form() (previously declared in /sites/all/modules/ubercart/ca/ca.ca.inc:522) in sites/all/modules/uc_node_checkout_scheduler/uc_node_checkout_scheduler.ca.inc on line 331

around line 331 it says

/**
 * Builds an email settings form.
 */
function ca_build_email_form($form_state, $settings, $token_filters)

according to drupal naming conventions this function should be named

/**
 * Builds an email settings form.
 */
function uc_node_checkout_scheduler_build_email_form($form_state, $settings, $token_filters) 

changing this fixes the setup error

for the module to function as intended, you also have to change line 274f to:

// Email settings form
function uc_node_checkout_scheduler_action_unpublish_email_form($form_state, $settings = array()) {
  return uc_node_checkout_scheduler_build_email_form($form_state, $settings, array('global', 'user', 'node'));
}

...there you go :-)

Comments

NewZeal’s picture

Status: Active » Fixed

Sorry, I apologise for that. The function ca_build_email_form() is from uc_roles. Rather than repeat a function I copied it wholesale but forgot to test for the presence of the uc_roles module. Now I have included a test so that the conflict no longer occurs if uc_roles is enabled. Thanks for posting this.

Status: Fixed » Closed (fixed)

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

shunshifu’s picture

I still get this error

NewZeal’s picture

Have you downloaded the latest version?