# Html\_entity\_decode() expects parameter 1 ERROR WHEN CREATING A NEW INVOICE

**URL:** <https://www.dolibarr.org/forum/t/html-entity-decode-expects-parameter-1-error-when-creating-a-new-invoice/18142>\
**Category:** Other native modules\
**Tags:** Issue\
**Created:** [November 25, 2019, 7:51pm UTC](https://www.dolibarr.org/forum/t/html-entity-decode-expects-parameter-1-error-when-creating-a-new-invoice/18142 "2019-11-25T19:51:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abravo999999](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/a/f475e1/32.png) [@abravo999999](https://www.dolibarr.org/forum/u/abravo999999)\
**Post date:** [November 25, 2019, 7:51pm UTC](https://www.dolibarr.org/forum/t/html-entity-decode-expects-parameter-1-error-when-creating-a-new-invoice/18142/1 "2019-11-25T19:51:31Z")

</div>

Hello everyone, I need help to solve this problem, dolibarr throws this at the time of creating a new supplier invoice

**Warning** : html\_entity\_decode() expects parameter 1 to be string, object given in **/home/soinesvi/public\_html/spr/core/lib/functions.lib.php** on line **940**

**Catchable fatal error** : Object of class FactureFournisseur could not be converted to string in **/home/soinesvi/public\_html/spr/core/lib/functions.lib.php** on line **3821**

---

<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:** [November 26, 2019, 3:11pm UTC](https://www.dolibarr.org/forum/t/html-entity-decode-expects-parameter-1-error-when-creating-a-new-invoice/18142/2 "2019-11-26T15:11:57Z")

</div>

Hi,

Difficult to answer without knowing that dolibarr version and what hosting version you use.

---

<div class="post-metadata">

**Author:** ![abravo999999](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/a/f475e1/32.png) [@abravo999999](https://www.dolibarr.org/forum/u/abravo999999)\
**Post date:** [November 27, 2019, 7:34pm UTC](https://www.dolibarr.org/forum/t/html-entity-decode-expects-parameter-1-error-when-creating-a-new-invoice/18142/3 "2019-11-27T19:34:19Z")

</div>

Hi, im workin currently with Dolibar 10.0 and that are details for my hosting  
|—|---|  
|Paquete de alojamiento|sellit|  
|cPanel Versión|84.0 (build 15)|  
|Versión Apache|2.4.41|  
|Versión PHP|7.0|  
|Versión MySQL|5.6.46-cll-lve|  
|Arquitectura|x86\_64|  
|Sistema operativo|linux|  
|Versión Perl|5.10.1|
