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.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | ahah.gif | 3.65 KB | liliplanet |
| #5 | ahah_helper_array_smart.patch | 1.48 KB | tayzlor |
Comments
Comment #1
kristen polI 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
Comment #2
JensH commentedSubscribe. 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
Comment #3
summit commentedHi, Had this same problem. would be great if you filed a patch, so it can be committed.
Not at home now, so I can't do it.
greetings,
Martijn
Comment #4
mautumn commentedErrr... Yes. A patch, or better still a new release, please! This crashes my whole system if I just upload this module!
Comment #5
tayzlor commentedpatch attached should cover the renaming the function in #2
Comment #6
himangshu.dutta19 commentedHi, Had this same problem. If i remove the function from the helper module. Its works fine. But i guess this is not the best solution
Thanks
Himangshu
Comment #7
summit commentedHi removing not necessary. Renaming is enough:)
Comment #8
jthomasbailey commentedsubscribe
Comment #9
liliplanet commentedHi,
Had the same errors with HS, applied the patch but now FB style links does not work when you 'attach', it just shows 'link' in text.
Results is as attached screenshot.
Would love to make this work :)
Looking forward to an update ..
Comment #10
jonhattanPatch in #5 works here. Btw, I've seen the patch for HS solves it with function_exists()
Comment #11
slip commentedmarking as a duplicate of #689196: duplicate function in project
The patch at the link above solves this with function_exists() as solved in hierarchical select here: #689222: Check if array_smart_merge() function exists before defining it