Projekt

Allgemein

Profil

Aktionen

GX-Bug #69483

geschlossen

Produktvarianten können nicht immer beim Update auf 4.5.1.0 importiert werden | Product variants cannot always be imported when updating to 4.5.1.0

Von Till Tepelmann vor mehr als 2 Jahren hinzugefügt. Vor etwa 2 Jahren aktualisiert.

Status:
Erledigt
Priorität:
Hoch
Zugewiesen an:
Mirko Janssen
Kategorie:
Updater
Zielversion:
% erledigt:

0%

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

Update 4.5.1.0 kann wieder erfolgreich installiert werden, wenn der MySQL Server sehr streng konfiguriert ist


Beschreibung

Produktvarianten können nicht beim Update auf 4.5.1.0 importiert werden, wenn keine Bilder in den Attributen vorhanden sind

Das Problem ist bei manchen MySQL Versionen und Serverkonfigurationen die sehr streng sind, wird auf NOT NULL geprüft und wenn dann gm_filename beim Import NULL ist, wird das Update abgebrochen. In der Tabellenstruktur wird expizit vorgegeben, dass die Spalte gm_filename nicht NULL sein darf.

Hier sollte in der Datei src/gambio_updater/updates/v4.5.1.0/product_variants_migration.php Zeile 201 folgendes angepasst werden:


Product variants cannot be imported when updating to 4.5.1.0 if there are no images in the attributes

The problem is with some MySQL versions and server configurations that are very strict, NOT NULL checked and then if gm_filename is NULL on import, the update is aborted. In the table structure, it is explicitly specified that the column gm_filename must not be NULL.

Here in the file src/gambio_updater/updates/v4.5.1.0/product_variants_migration.php line 201 the following should be adjusted:

$image                 = isset($values['display_image']) ? "'"
                                                                                   . $this->real_escape_string($values['display_image'])
                                                                                   . "'" : 'NULL';
$image                 = isset($values['display_image']) ? "'"
                                                                                   . $this->real_escape_string($values['display_image'])
                                                                                   . "'" : '';

Aktionen

Auch abrufbar als: Atom PDF