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.

CommentFileSizeAuthor
#9 ahah.gif3.65 KBliliplanet
#5 ahah_helper_array_smart.patch1.48 KBtayzlor

Comments

kristen pol’s picture

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

JensH’s picture

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

summit’s picture

Hi, 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

mautumn’s picture

Errr... Yes. A patch, or better still a new release, please! This crashes my whole system if I just upload this module!

tayzlor’s picture

StatusFileSize
new1.48 KB

patch attached should cover the renaming the function in #2

himangshu.dutta19’s picture

Hi, 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

summit’s picture

Hi removing not necessary. Renaming is enough:)

jthomasbailey’s picture

subscribe

liliplanet’s picture

StatusFileSize
new3.65 KB

Hi,

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 ..

jonhattan’s picture

Priority: Normal » Critical
Status: Active » Needs review

Patch in #5 works here. Btw, I've seen the patch for HS solves it with function_exists()

slip’s picture

Status: Needs review » Closed (duplicate)

marking 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