Projekt

Allgemein

Profil

GX-Bug #70883

Von Till Tepelmann vor 2 Monaten aktualisiert

Shop ist nicht aufrufbar nach dem Import Artikeln 

 Wenn man Artikel von Afterbuy importiert, ist der Shop nicht erreichbar und zeit nur eine Fehlermeldung. 

 Kann wie folgt reproduziert werden: 

 1. Shop 4.9 installieren 
 2. Als Admin einloggen 
 3. Unter Module->Modul-Center das Modul "Afterbuy" installieren 
 4. Zugangsdaten für Afterbuy eintragen 
 5. Reiter Artikel-Import aufrufen 
 6. Umfang des Datenimports auf "vollständige Artikel" setzen 
 7. Artikel importieren Button "Artikelimport starten/fortsetzen" klicken 
 8. Warten 
 9. Shop öffnen 

 Erwartetes Ergebnis: 
 Der Shop sollte nach dem Import immer noch aufrufbar sein und keine Fehler anzeigen 

 Tatsächliches Ergebnis: 
 Der Shop ist nicht mehr erreichbar und zeigt eine Fehlermeldung 


 Lösung: 
 In der Datei /GXMainComponents/Services/Core/Product/Entities/GXEngineProduct.inc.php muss der Standardwert für $productTypeId auf 1 gesetzt werden. Der Wert darf niemals 0 sein. 
 Zusätzlich muss in der Datei /GXMainComponents/Services/Core/Product/Entities/ProductSettings.inc.php der Wert für $sitemapPriority auf 1 gesetzt werden und der Wert $sitemapChangeFreq auf "always". Das sind die Standardwerte, die gesetzt werden, wenn Artikel importiert werden. 

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

 Store is not accessible after importing articles 

 When importing articles from Afterbuy, the store is not accessible and only displays an error message. 

 Can be reproduced as follows: 

 1. install Shop 4.9 
 2. log in as admin 
 3. install the "Afterbuy" module under Modules->Module Center 
 4. enter access data for Afterbuy 
 5. call up the article import tab 
 6. set the scope of the data import to "complete articles" 
 7. click on the "Start/continue item import" button to import items 
 8. wait 
 9. open store 

 Expected result: 
 The store should still be accessible after the import and should not display any errors 

 Actual result: 
 The store is no longer accessible and displays an error message 


 Solution: 
 In the file /GXMainComponents/Services/Core/Product/Entities/GXEngineProduct.inc.php, the default value for $productTypeId must be set to 1. The value should never be 0. 
 In addition, in the file /GXMainComponents/Services/Core/Product/Entities/ProductSettings.inc.php the value for $sitemapPriority must be set to string 1 and the value $sitemapChangeFreq must be set to "always". These are the default values that are set when products are imported. 

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


 ``` php 
 CRITICAL] Invalid frequency () provided. Valid frequencies are: 'always', 'hourly', 'daily', 'weekly', 'monthly', 'yearly', 'never' 
 context: 
   session ID: session-65eae222e93d05.32544436 
   exception: 
     class: InvalidArgumentException 
     message: Invalid frequency () provided. Valid frequencies are: 'always', 'hourly', 'daily', 'weekly', 'monthly', 'yearly', 'never' 
     code: 0 
     file: /var/www/GambioShop/Modules/ProductListing/Model/ValueObjects/ListingItemMetaSitemapFrequency.php 
 ``` 

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

 ``` php 
 CRITICAL] Could not count total datasets for product ids "680", "684", "694", "689", "692", "685", "688", "696", "687", "686", "693" 
 context: 
   session ID: session-65ea73ad9a18d3.20810744 
   exception: 
     class: UnexpectedValueException 
     message: Could not count total datasets for product ids "680", "684", "694", "689", "692", "685", "688", "696", "687", "686", "693" 
     code: 0 
     file: /var/www/GambioShop/Modules/ProductListing/App/Data/ProductListingReader.php 
 ``` 

Zurück