Davy
November 30, 2022, 6:51am
1
I get an http error 500 when modifying the price in second currency of a product added to a sales order.
create new order
add product to the order
modify the product line
change U.P (net) (currency)
Blank screen with http error 500
commande/card.php?id=712#line_1809
Even after updating to V16.0.3 the problem persists. PHP version 8.0
Does anyone have an idea on how to solve this?
Regards,
Davy
Hi Davy,
Put this at the top of the page after “<?php” where you are facing the issue. Like card.php, list.php, element.php, product.php etc. etc.
Then see what actual error you are getting that particular page and post that here.
Regards
Saikat
ksar
November 30, 2022, 8:21am
3
Hello,
Error 500 means PHP Error, verify your hosting logs
Davy
November 30, 2022, 8:39am
4
This is the error :
Fatal error: Uncaught TypeError: Unsupported operand types: string * int in /customers/f/a/6/davantech.co/httpd.www/erp/htdocs/commande/card.php:1072 Stack trace: #0 {main} thrown in /customers/f/a/6/davantech.co/httpd.www/erp/htdocs/commande/card.php on line 1072
ksar
November 30, 2022, 8:55am
5
Hi,
Sounds like a bug.
Can you create a report on GitHub ?
Thanks.
ksar
November 30, 2022, 9:41am
6
Davy
November 30, 2022, 12:22pm
7
I have Dolibarr running on another domain with Multi Currency active and PHP8.0 and the same problem occurs. It started on 28/11 when the hosting company stopped PHP7.4
jccs811
December 5, 2022, 12:00am
9
I had same problem with php 8.0 and above does your host allow you to set it to use 7.4 mine does and this fixed it for me
Davy
December 5, 2022, 5:55am
10
My host stopped supporting PHP 7.4. PHP also does not support version 7.4 anymore. Most host will follow I guess.
Davy
February 14, 2023, 12:49pm
11
Any suggestions for this problem ? Still there on Version 16.0.4
ksar
February 14, 2023, 4:28pm
12
Hello,
As you can see here : Multicurrency U.P (net) (currency) update error · Issue #22948 · Dolibarr/dolibarr · GitHub
Developers can’t reproduce the fault.
I encourage you to post on GitHub if you want to go further
Davy
February 14, 2023, 4:50pm
13
See my remark on GitHub
casting price2num
to float solved the problem for me. Any comments?