Projekt

Allgemein

Profil

Aktionen

GX-Bug #70883

geschlossen

Shop ist nicht aufrufbar nach dem Import Artikeln / Online store is not accessible after importing product from afterbuy

Von Till Tepelmann vor etwa 2 Monaten hinzugefügt. Vor etwa 1 Monat aktualisiert.

Status:
Erledigt
Priorität:
Dringend
Zugewiesen an:
Kategorie:
Afterbuy
Zielversion:
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
Unbestimmt
Release Notes Langtext:

Import von Artikeln über Afterbuy verbessert


Beschreibung

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.


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

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

Aktionen #1

Von Till Tepelmann vor etwa 2 Monaten aktualisiert

Aktionen #2

Von Till Tepelmann vor etwa 2 Monaten aktualisiert

  • Datei GXEngineProduct.inc.php wurde hinzugefügt
  • Datei ProductSettings.inc.php wurde hinzugefügt
  • Beschreibung aktualisiert (Vergleich)
  • Status wurde von Gemeldet zu Testing geändert
Aktionen #4

Von Till Tepelmann vor etwa 2 Monaten aktualisiert

  • Tags wurde auf 4.9.4.0_beta1 gesetzt
  • Release Notes Langtext aktualisiert (Vergleich)
Aktionen #5

Von Till Tepelmann vor etwa 2 Monaten aktualisiert

  • Datei GXEngineProduct.inc.php wurde gelöscht
Aktionen #6

Von Till Tepelmann vor etwa 2 Monaten aktualisiert

  • Datei ProductSettings.inc.php wurde gelöscht
Aktionen #7

Von Krystian Czerwinski vor etwa 2 Monaten aktualisiert

  • Zugewiesen an wurde auf Krystian Czerwinski gesetzt
Aktionen #8

Von Krystian Czerwinski vor etwa 2 Monaten aktualisiert

  • Zugewiesen an Krystian Czerwinski wurde gelöscht
Aktionen #10

Von Rico Schreiber vor etwa 1 Monat aktualisiert

  • Zugewiesen an wurde auf Rico Schreiber gesetzt
Aktionen #12

Von Rico Schreiber vor etwa 1 Monat aktualisiert

  • Status wurde von Testing zu Erledigt geändert
  • Zielversion wurde auf 4.9.4.0 beta1 gesetzt
Aktionen

Auch abrufbar als: Atom PDF