# Module Adhérent (Membership management)

**URL:** <https://www.dolibarr.org/forum/t/module-adherent-membership-management/21085>\
**Category:** HR modules\
**Created:** [August 23, 2021, 10:34pm UTC](https://www.dolibarr.org/forum/t/module-adherent-membership-management/21085 "2021-08-23T22:34:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dieperie](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/dieperie/32/472_2.png) [@dieperie](https://www.dolibarr.org/forum/u/dieperie)\
**Post date:** [August 23, 2021, 10:34pm UTC](https://www.dolibarr.org/forum/t/module-adherent-membership-management/21085/1 "2021-08-23T22:34:12Z")

</div>

There is a bug since version 14.0.x with file attachments.  
Error Duplicate entry ‘adherent/2430-myfile’ for key ‘uk\_ecm\_files’.

I traced it down to file **/usr/share/dolibarr/adherents/card.php** line 2006 : **$filedir = $conf-\>adherent-\>dir\_output.’/’.get\_exdir(0, 0, 0, 0, $object, ‘member’);**

For now I fixed the issue by changing $filedir = $conf-\>adherent-\>dir\_output.’/’.get\_exdir(0, 0, 0, **1** , $object, ‘member’);  
This fix removes the “/” at the end of the string.

In file files.lib.php, function completeFileArrayWithDatabaseInfo(&$filearray, $relativedir) does not receive correct $relativedir.  
So, the system want to cre-create the record(s).

Many thanks for taking care of a fix in 14.0.2.

---

<div class="post-metadata">

**Author:** ![ksar](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/ksar/32/514_2.png) [@ksar](https://www.dolibarr.org/forum/u/ksar)\
**Post date:** [August 24, 2021, 9:11am UTC](https://www.dolibarr.org/forum/t/module-adherent-membership-management/21085/2 "2021-08-24T09:11:44Z")

</div>

Hello,

Can you post it on GitHub ?

> **[Issues · Dolibarr/dolibarr](https://github.com/Dolibarr/dolibarr/issues)**
>
> Dolibarr ERP CRM is a modern software package to manage your company or foundation activity (contacts, suppliers, invoices, orders, stocks, agenda, accounting, ...). It is open source software writ...
