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

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 :slight_smile:
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
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
[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
[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
[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
[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
[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
[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
[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
[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
[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
[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
[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
[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
[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
[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
[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
[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
[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
[17/Apr/2025:12:33:44 +0200] “POST /compta/paiement.php HTTP/2” 200 23856 “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
[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 “-”

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

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…

Assigned a Github issue for this case as well:
Dolibar Customer Invoicing page crashes with ERR 500 when registering payment made #34183