Guten Tag,
ich habe folgendes Problem bei v23.0.2
Wenn man in einem Prdukt der Standard Verkaufspreis ändern möchte, kann man nur bearbeiten, aber beim Speichern kommt HTTP Fehler 500 (Die Seite funktioniert nicht)
Zum Test einen neuen Dolibarr Server installiert direkt mit v23.0.2 Hier der gleiche Fehler. Also ist es grundsätzlich ein Problem von v23.0.2
Hat da einer eine Lösung?
Ich kanns nur bestätigen, eine Lösung habe ich nicht.
Hallo,
ja - ist reproduzierbar und gibt eine entsprechende Meldung im error.log des Apache aus:
[php:error] PHP Fatal error: Uncaught Error: Call to undefined method stdClass::isEmpty()
in /var/www/html/…/htdocs/product/class/product.class.php:1504
Stack trace:
#0 /var/www/html/…/htdocs/product/price.php(569): Product->update()
#1 {main}
thrown in /var/www/html/…/htdocs/product/class/product.class.php on line 1504,
referer: ``https://test.dolibarr2302.de/product/price.php?action=edit_price&token=...&id=1
Ich bin noch nicht sicher, wie man der Entwickler-Community diesen Hinweis gibt.
Kennt jemand das Vorgehen?
Ich glaube, es ist dort schon als Issue bekannt - hier zwar bei Änderung der Standardpreise bei Services, scheint aber dasselbe Problem zu sein.
offen 08:46PM - 11 May 26 UTC
Bug
### Bug
When editing the price for a service, a 500 error occurs when saving th… e modified prices. Seemed to first appear only with the price levels enabled, but is actually happening even without enabling it.
```
[Mon May 11 20:34:52.917992 2026] [php:error] [pid 3376:tid 3376] [client 192.168.80.3:55792] PHP Fatal error: Uncaught Error: Call to undefined method stdClass::isEmpty() in /var/www/html/product/class/product.class.php:1504\nStack trace:\n#0 /var/www/html/product/price.php(569): Product->update()\n#1 {main}\n thrown in /var/www/html/product/class/product.class.php on line 1504, referer: https://dolibarr.example.com/product/price.php?action=edit_level_price&token=5a9b72fa92e8cf4da45a76f6979af0d2&id=1
[Mon May 11 20:40:08.363687 2026] [php:error] [pid 3380:tid 3380] [client 192.168.80.3:51586] PHP Fatal error: Uncaught Error: Call to undefined method stdClass::isEmpty() in /var/www/html/product/class/product.class.php:1504\nStack trace:\n#0 /var/www/html/product/price.php(569): Product->update()\n#1 {main}\n thrown in /var/www/html/product/class/product.class.php on line 1504, referer: https://dolibarr.example.com/product/price.php?action=edit_level_price&token=5a9b72fa92e8cf4da45a76f6979af0d2&id=1
```
### Dolibarr Version
23.0.2 (Docker)
### Environment PHP
_No response_
### Environment Database
MariaDB LTS 11.8 (Docker)
### Steps to reproduce the behavior and expected behavior
1. Enable the services module with "Paramètres des produits / services" > "Règles pour les prix clients" > "Plusieurs niveaux de prix..."
2. Create a service.
3. In the Price tab, enter the "edit prices for each level" menu.
4. Change a price level and save.
5. Error 500.
### Attached files
<img width="2241" height="1078" alt="Image" src="https://github.com/user-attachments/assets/385e253c-7907-4639-a933-ae898fa05599" />
Aus dem GitHub:
Nice, seems like rolling back to 23.0 is the temporary fix while waiting for the release that includes the fix.
Also auf Minor-Release warten, oder zurück