Changes between Initial Version and Version 1 of Ticket #2301
- Timestamp:
- Aug 16, 2022, 8:42:48 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #2301
- Property Milestone → modified-shop-2.0.8.0
-
Ticket #2301 – Description
initial v1 2 2 3 3 Ursache hierfür ist ganz am Ende die Bedingung: 4 {{{ 4 5 if (count($shipping_content) <= 1) { 5 6 }}} 6 7 Wenn das oben genannte Modul deaktiviert ist, dann wird das Array $shipping_content nicht initialisiert, wodurch die Variable NULL ist. Seit PHP 8 unterstützt die COUNT Funktion aber keine NULL Werte mehr und liefert dementsprechend einen Fehler. 7 8 8 9 Mögliche Lösung: 9 10 Nach dem Block: 11 {{{ 10 12 } elseif (defined('MODULE_ORDER_TOTAL_SHIPPING_STATUS') 11 13 && MODULE_ORDER_TOTAL_SHIPPING_STATUS == 'true' 12 14 ) 13 15 { 14 16 }}} 15 17 folgenden neuen Block einbauen: 18 {{{ 16 19 } else { 17 20 $shipping_content = array (); 18 21 } 22 }}}
