# Urgent problem: HTTP ERROR 500 when trying to register payment for invoice

**URL:** <https://www.dolibarr.org/forum/t/urgent-problem-http-error-500-when-trying-to-register-payment-for-invoice/30258>\
**Category:** Using my Dolibarr\
**Tags:** Error, Help, Invoices, Linux, Payments\
**Created:** [April 17, 2025, 1:46pm UTC](https://www.dolibarr.org/forum/t/urgent-problem-http-error-500-when-trying-to-register-payment-for-invoice/30258 "2025-04-17T13:46:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![EsDeeEm](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/esdeeem/32/8224_2.png) [@EsDeeEm](https://www.dolibarr.org/forum/u/EsDeeEm)\
**Post date:** [April 17, 2025, 1:46pm UTC](https://www.dolibarr.org/forum/t/urgent-problem-http-error-500-when-trying-to-register-payment-for-invoice/30258/1 "2025-04-17T13:46:47Z")

</div>

Hello everyone,  
I’m trying to find a solution for my problem when trying to close an invoice by marking it as paid. I hope I can get some feedback soon 🙂  
For now I change the status in the database manually

## **Currently installed versions:**

**Dolibarr:** V21.0.1  
**php:** V8.2.27  
**Database:** MariaDB 10.11.10, collation utf8mb3\_general\_ci  
Hosted on Linux with LiteSpeed

## **Problem:**

When registering an invoice as paid, I get:  
URL: [https://MyDomainName/compta/paiement.php](https://MyDomainName/compta/paiement.php)  
**ERROR 500**  
MyDomainNameis currently unable to handle this request.  
This page isn’t working [MyDomainName]

**No further error log entries found**

## **User logifile form webserver:**

[17/Apr/2025:12:31:49 +0200] “GET /compta/paiement.php?facid=1&action=create&accountid=1 HTTP/2” 200 23107 “[https://MyDomainName/compta/facture/card.php?id=1](https://MyDomainName/compta/facture/card.php?id=1)”  
[17/Apr/2025:12:31:50 +0200] “GET /theme/eldy/style.css.php?lang=nl\_NL&theme=eldy&userid=2&entity=1&layout=classic&version=21.0.1&revision=197 HTTP/2” 200 58532 “[https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1](https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1)”  
[17/Apr/2025:12:31:50 +0200] “GET /theme/custom.css.php?layout=classic&version=21.0.1&revision=197 HTTP/2” 200 868 “[https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1](https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1)”  
[17/Apr/2025:12:31:50 +0200] “GET /core/js/lib\_head.js.php?lang=nl\_NL&layout=classic&version=21.0.1 HTTP/2” 200 13595 “[https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1](https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1)”  
[17/Apr/2025:12:31:50 +0200] “GET /viewimage.php?cache=1&modulepart=mycompany&file=logos%2Fthumbs%2Flgog-wit-rond-transp\_mini.png HTTP/2” 200 4653 “[https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1](https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1)”  
[17/Apr/2025:12:31:50 +0200] “GET /viewimage.php?modulepart=userphoto&entity=1&file=2%2Fphotos%2Fthumbs%2Fsven-dolibarr\_small.png&cache=1 HTTP/2” 200 98966 “[https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1](https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1)”  
[17/Apr/2025:12:31:50 +0200] “GET /theme/eldy/img/rightarrow.png HTTP/2” 200 156 “[https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1](https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1)”  
[17/Apr/2025:12:31:50 +0200] “GET /core/js/lib\_foot.js.php?lang=nl\_NL&layout=classic&version=21.0.1 HTTP/2” 200 4205 “[https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1](https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1)”  
[17/Apr/2025:12:31:50 +0200] “GET /theme/eldy/manifest.json.php HTTP/2” 200 671 “[https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1](https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1)”  
[17/Apr/2025:12:31:50 +0200] “GET /viewimage.php?cache=1&modulepart=mycompany&file=logos%2Fthumbs%2Flgog-wit-rond-transp\_small.png HTTP/2” 200 28685 “[https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1](https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1)”  
[17/Apr/2025:12:33:32 +0200] “POST /compta/ajaxpayment.php HTTP/2” 200 56 “[https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1](https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1)”  
[17/Apr/2025:12:33:32 +0200] “POST /compta/ajaxpayment.php HTTP/2” 200 54 “[https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1](https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1)”  
[17/Apr/2025:12:33:33 +0200] “POST /compta/ajaxpayment.php HTTP/2” 200 58 “[https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1](https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1)”  
[17/Apr/2025:12:33:33 +0200] “POST /compta/ajaxpayment.php HTTP/2” 200 58 “[https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1](https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1)”  
[17/Apr/2025:12:33:34 +0200] “POST /compta/ajaxpayment.php HTTP/2” 200 61 “[https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1](https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1)”  
[17/Apr/2025:12:33:34 +0200] “POST /compta/ajaxpayment.php HTTP/2” 200 62 “[https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1](https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1)”  
[17/Apr/2025:12:33:39 +0200] “POST /compta/ajaxpayment.php HTTP/2” 200 62 “[https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1](https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1)”  
[17/Apr/2025:12:33:39 +0200] “POST /compta/paiement.php HTTP/2” 200 23575 “[https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1](https://MyDomainName/compta/paiement.php?facid=1&action=create&accountid=1)”  
[17/Apr/2025:12:33:44 +0200] “POST /compta/paiement.php HTTP/2” 200 23856 “[https://MyDomainName/compta/paiement.php](https://MyDomainName/compta/paiement.php)”  
[17/Apr/2025:12:33:46 +0200] “POST /compta/paiement.php HTTP/2” 500 0 “[https://MyDomainName/compta/paiement.php](https://MyDomainName/compta/paiement.php)”  
[17/Apr/2025:12:34:02 +0200] “GET /admin/tools/listsessions.php?mainmenu=home&leftmenu=admintools HTTP/2” 200 16676 “-”  
[17/Apr/2025:12:34:02 +0200] “GET /admin/emailcollector\_list.php?restore\_lastsearch\_values=1 HTTP/2” 200 23124 “-”  
[17/Apr/2025:12:34:02 +0200] “GET /compta/paiement.php?facid=2&action=create&accountid=1 HTTP/2” 200 21722 “-”  
[17/Apr/2025:12:34:02 +0200] “GET /index.php?mainmenu=home&leftmenu=home HTTP/2” 200 30693 “-”

---

<div class="post-metadata">

**Author:** ![jonbendtsen](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jonbendtsen](https://www.dolibarr.org/forum/u/jonbendtsen)\
**Post date:** [April 18, 2025, 6:25am UTC](https://www.dolibarr.org/forum/t/urgent-problem-http-error-500-when-trying-to-register-payment-for-invoice/30258/2 "2025-04-18T06:25:32Z")

</div>

> [@EsDeeEm](#):
>
> [17/Apr/2025:12:33:46 +0200] “POST /compta/paiement.php HTTP/2” 500 0 “[https://MyDomainName/compta/paiement.php”](https://MyDomainName/compta/paiement.php%E2%80%9D)

not much text to use here. Can you take a look in the dolibarr.log? file in the documents firectory?

---

<div class="post-metadata">

**Author:** ![EsDeeEm](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/esdeeem/32/8224_2.png) [@EsDeeEm](https://www.dolibarr.org/forum/u/EsDeeEm)\
**Post date:** [May 17, 2025, 10:29pm UTC](https://www.dolibarr.org/forum/t/urgent-problem-http-error-500-when-trying-to-register-payment-for-invoice/30258/3 "2025-05-17T22:29:36Z")

</div>

Yeah, I did, but there was nothing to find in there… Most frustrating, the usage log is the only “evidence” I’ve got to show…

---

<div class="post-metadata">

**Author:** ![EsDeeEm](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/esdeeem/32/8224_2.png) [@EsDeeEm](https://www.dolibarr.org/forum/u/EsDeeEm)\
**Post date:** [May 17, 2025, 10:41pm UTC](https://www.dolibarr.org/forum/t/urgent-problem-http-error-500-when-trying-to-register-payment-for-invoice/30258/4 "2025-05-17T22:41:55Z")

</div>

> [@EsDeeEm](#):
>
> ## **Currently installed versions:**
> 
> **Dolibarr:** V21.0.1  
> **php:** V8.2.27  
> **Database:** MariaDB 10.11.10, collation utf8mb3\_general\_ci  
> Hosted on Linux with LiteSpeed
> 
> ## **Problem:**
> 
> When registering an invoice as paid, I get:  
> URL: [https://MyDomainName/compta/paiement.php](https://MyDomainName/compta/paiement.php)  
> **ERROR 500**  
> MyDomainNameis currently unable to handle this request.  
> This page isn’t working [MyDomainName]

Assigned a Github issue for this case as well:  
[Dolibar Customer Invoicing page crashes with ERR 500 when registering payment made #34183](https://github.com/Dolibarr/dolibarr/issues/34183)
