Projekt

Allgemein

Profil

GX-Bug #70136

Von Alexandre Ataides vor mehr als 1 Jahr aktualisiert

Fehlender Eintrag MODULE_PAYMENT_EUTRANSFER_SORT_CODE, verhindert Bestellungen unter PHP 8 

 Kann wie folgt reproduziert werden: 

 1. Shop 4.0 installieren 
 2. Gambio Admin öffnen 
 3. Unter Module->Zahlungsweisen->Sonstige das Modul eustandardtransfer installieren 
 4. KU auf 4.7.1.2 installieren 
 5. PHP Version auf 8.0 oder 8.1 umstellen 
 6. Testbestellung durchführen 

 Erwartetes Ergebnis: 
 Wenn man das Modul eustandardtransfer vor einem Update bereits installiert hatte, sollte der Bestellvorgang weiterhin unter PHP 8 funkktionieren und der Eintrag MODULE_PAYMENT_EUTRANSFER_SORT_CODE sollte während des Updates hinzugefügt werden 

 Tatsächliches Ergebnis: 
 Beim Update wird der Eintrag MODULE_PAYMENT_EUTRANSFER_SORT_CODE nicht hinzugefügt, sodass der Bestellvorgang bei installiertem Modul eustandardtransfer und PHP 8 nicht funktioniert 

 ------------------ 

 Missing MODULE_PAYMENT_EUTRANSFER_SORT_CODE entry, prevents orders under PHP 8. 

 Can be reproduced as follows: 

 1. install Shop 4.0 
 2. open Gambio Admin 
 3. install the module eustandardtransfer under Modules->Modes of Payment->Other 
 4. install KU on 4.7.1.2 
 5. change PHP version to 8.0 or 8.1 
 6. perform test order 

 Expected result: 
 If you had already installed the eustandardtransfer module before an update, the order process should still work under PHP 8 and the MODULE_PAYMENT_EUTRANSFER_SORT_CODE entry should be added during the update. 

 Actual result: 
 During the update, the MODULE_PAYMENT_EUTRANSFER_SORT_CODE entry is not added, so the order process does not work with the eustandardtransfer module and PHP 8 installed. 

 ------------------ 
 **How to test the fix:** 

 1. Install a fresh shop using PHP >= 8 
 1. Go to `Admin > Modules > Payment Systems > Miscellaneous (tab)` 
 1. Install the "EU Standard Bank Transfer" and **activate** the module 
 1. Check if the "configuration/MODULE_PAYMENT_EUTRANSFER_SORT_CODE" exists by running the query: 
 ```sql 
 SELECT * FROM `gx_configurations` WHERE `key` = 'configuration/MODULE_PAYMENT_EUTRANSFER_SORT_CODE'; 
 ``` 
 1. If it exists, delete the entry 
 1. Run the `gambio_updater`, and force the version selection to `v4.7.1.2` 

 Result: the "configuration/MODULE_PAYMENT_EUTRANSFER_SORT_CODE" should have been added again and the orders can be placed without errors

Zurück