Closed (fixed)
Project:
Node Checkout Scheduler
Version:
6.x-1.0-alpha1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Sep 2010 at 22:12 UTC
Updated:
26 Apr 2011 at 00:19 UTC
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
Comment #1
NewZeal commentedSorry, 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.
Comment #3
shunshifu commentedI still get this error
Comment #4
NewZeal commentedHave you downloaded the latest version?