Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#2259 closed Bug/Fehler (fixed)

Fehler beim Editieren von Bestellungen mit PHP 8

Reported by: Karsta Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.7.2
Component: Admin Version: 2.0.7.0
Keywords: Cc:
Blocked By: Blocking:

Description

Es gibt mit PHP 8.1 ein Problem, wenn man Bestellungen editieren will.

Das sollte wahrscheinlich mehrere Zahlungsarten dann betreffen.

ERROR found for URL: /admin/orders_edit.php?edit_action=other&oID=78038
Cannot access offset of type string on string in File: /includes/modules/payment/moneyorder.php on Line: 52

Das ist die Zeile 52:

$check_query = xtc_db_query("select zone_id from ".TABLE_ZONES_TO_GEO_ZONES." where geo_zone_id = '".MODULE_PAYMENT_MONEYORDER_ZONE."' and zone_country_id = '".$order_billing."' order by zone_id");

Im vorliegenden Fall sind im Zahlungsmodul Zonen eingetragen, allerdings wird nur
Erlaubte Zonen:BE,BG,CZ,DK,DE,EE,IE,EL,ES,FR,HR,IT,CY,LV,LT,HU,MT,NL,AT,PL,PT,RO,SI,SK,FI,SE,UK,LU
Zahlungszone: EU
Aber momentan verkauft der Shop nur nach DE. Also unter Länder ist nur DE aktiviert.

Attachments (0)

Change History (5)

comment:1 by Karsta, 3 years ago

Habe es gerade in der Shop-Version 2.0.7.1 im Dev-Shop getestet. Auch dort tritt dieser Fehler auf.

comment:2 by Karsta, 3 years ago

Korrektur meines ersten Beitrags:
Zeile 52 sieht natürlich so aus:

$check_query = xtc_db_query("select zone_id from ".TABLE_ZONES_TO_GEO_ZONES." where geo_zone_id = '".MODULE_PAYMENT_MONEYORDER_ZONE."' and zone_country_id = '".$order->billing['country']['id']."' order by zone_id");

Hatte aus versehen meine editierte Zeile oben eingfügt.

comment:3 by Torsten Riemer, 3 years ago

Milestone: modified-shop-2.0.8.0modified-shop-2.0.7.2

comment:4 by Gerhard Waldemair, 3 years ago

Resolution: fixed
Status: newclosed

In 14610:

fix #2259 - fix edit order for payment modules

comment:5 by Gerhard Waldemair, 3 years ago

In 14613:

fix #2259 - fix edit order for shipping modules

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.