Conflict with hierarchical select module
marcingy - March 29, 2009 - 16:29
| Project: | AHAH helper |
| Version: | 6.x-2.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Not sure where this should set but as you are the maintainer for both modules it shouldn't matter.
Basically if this module and hierarchical select are installed on a site the following error is generated
*Fatal error*: Cannot redeclare array_smart_merge() (previously declared in /var/www/web100/sites/all/modules/ahah_helper/ahah_helper.module:268) in */var/www/web100/sites/all/modules/hierarchical_select/includes/common.inc* on line *398
No patch provided as I don't know what naming convention should be followed here.

#1
I just ran into this as well. I have to turn off HS for now in order to keep going. I get the error when I try to add a new vocabulary:
Fatal error: Cannot redeclare array_smart_merge() (previously declared in C:\apache-htdocs\htdocs_vhost-classic\sites\all\modules\ahah_helper\ahah_helper.module:268) in C:\apache-htdocs\htdocs_vhost-classic\sites\all\modules\hierarchical_select\includes\common.inc on line 415
#2
Subscribe. Both modules seems to have copied the function somewhere else and didn't renamed it properly with their module prefix. To fix it, rename the function to "ahah_helper_array_smart_merge()" and rename the corresponding function calls. I've posted this issue also to the Hierarchical Select issues. Regards Jens