Franz Holzinger

Verse of the day

Bei Gott ist mein Heil, meine Ehre, der Fels meiner Stärke; meine Zuversicht ist auf Gott.
Psalm 62:7

© Bible Gateway's Verse of the Day


autor  
23-03-17 09:52:50 Fehlermeldung bei Lieferschein (DELIVERY) und Rechnung (BILL)
Harald S.
Hallo Herr Holzinger,

nach Eingeben des Bestellstatus-Code für das DELIVERY oder das BILL wird im Frontend diese Fehlermeldung gezeigt:
Oops, an error occurred! Code: 201703230823471f062e36 PHP Warning: number_format() expects parameter 1 to be double, string given in ../typo3conf/ext/tt_products/lib/class.tx_ttproducts_billdelivery.php line 398 exception code:1 file:/typo3/sysext/core/Classes/Error/ErrorHandler.php line:111 fh_debug trace: file: " line: function:handleError file: /typo3conf/ext/tt_products/lib/class.tx_ttproducts_billdelivery.php" line:398 function:number_format file: /typo3conf/ext/tt_products/control/class.tx_ttproducts_main.php" line:881 function:getInformation file: /typo3conf/ext/tt_products/control/class.tx_ttproducts_main.php" line:621 function:products_tracking file: /typo3conf/ext/tt_products/pi1/class.tx_ttproducts_pi1_base.php" line:73 function:run file: /typo3conf/ext/tt_products/pi1/class.tx_ttproducts_pi1.php" line:64 function:main file: " line: function:main file: /typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php" line:7311 function:call_user_func_array

Die Tracking-Seite (TRACKING) funktioniert dagegen reibungslos.
23-03-17 15:10:16 Korrektur
Franz Holzinger
Die Zeile Nr 398 in der Datei tt_products/lib/class.tx_ttproducts_billdelivery.php muss um ein float Cast ergänzt werden:

$taxstr = strval(number_format((float) $taxrate, 2));

24-03-17 07:45:54 Vielen Dank!
Harald S.
Hallo Herr Holzinger,

perfekt! Das war's!
< Zurück zum Forum