Projekt

Allgemein

Profil

Aktionen

GX-Bug #65737

geschlossen

Multiple fatal errors & warnings in Module Settings after adding new language

Von Ahmed Hamouda vor mehr als 4 Jahren hinzugefügt. Vor mehr als 4 Jahren aktualisiert.

Status:
Erledigt
Priorität:
Normal
Zugewiesen an:
Alexandre Ataides
Kategorie:
Adminbereich
Zielversion:
% erledigt:

100%

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

Unterdrücken Sie Fehler, die durch nicht zugewiesene Standardwerte für Modulkonfigurationen verursacht werden.


Beschreibung

Adding a new language from the dashboard would cause fatal errors in module settings page which prevents the user from editing the configurations for the module completely.
User has to uninstall and reinstall the module again to be able to access the module's settings page.
After reinstalling the module, the configurations for the new language are not set correctly and show HTML warnings as content for these inputs.

Replication steps:

  1. Add new language from the dashboard then Shop Settings > Zone/Tax
  2. Head to Languages tab then Create a new language
  3. Clear cache for page output, modules, text
  4. Go to Modules > Modules-Center then try to edit any installed module with text fields (z.B Cookie Consent Panel)
  5. You will be blocked by the fatal error Uncaught Error: Cannot use object of type stdClass as array
  6. Go back & uninstall the module then reinstall it again
  7. Repeat step 3, try to edit the same module and now the input fields for the new language have HTML errors

Fatal Error Text Sample:

2020-01-08 11:16:44 (f528764d624db129b32c21fbca0cb8d6) FATAL ERROR(1): "Uncaught Error: Cannot use object of type stdClass as array in /var/www/html/gxdev/src/templates_c/4e308af4b22b50ea503e290a65371c9c6b06f9ad_2.get_usermod.modulecentergxmodulessnip.php:79

Warning Text Sample:

2020-01-08 11:19:54 (f528764d624db129b32c21fbca0cb8d6) WARNING(2): "htmlspecialchars() expects parameter 1 to be string, array given" in /var/www/html/gxdev/src/templates_c/4e308af4b22b50ea503e290a65371c9c6b06f9ad_2.get_usermod.modulecentergxmodulessnip.php:98 (Details)

Dateien


Aktionen #1

Von Ahmed Hamouda vor mehr als 4 Jahren aktualisiert

  • Status wurde von Gemeldet zu In Bearbeitung geändert
  • Zugewiesen an wurde auf Ahmed Hamouda gesetzt
  • Zielversion wurde von 133 zu 3.15.4.0 beta1 geändert
Aktionen #3

Von Ahmed Hamouda vor mehr als 4 Jahren aktualisiert

  • Status wurde von In Bearbeitung zu Testing geändert
  • Zugewiesen an wurde von Ahmed Hamouda zu Core-Entwickler geändert
Aktionen #4

Von Ahmed Hamouda vor mehr als 4 Jahren aktualisiert

  • Release Notes Langtext aktualisiert (Vergleich)
Aktionen #5

Von Alexandre Ataides vor mehr als 4 Jahren aktualisiert

  • Zugewiesen an wurde von Core-Entwickler zu Alexandre Ataides geändert
Aktionen #6

Von Ulrich Wenk vor mehr als 4 Jahren aktualisiert

  • Status wurde von Testing zu Erledigt geändert
  • % erledigt wurde von 0 zu 100 geändert
Aktionen

Auch abrufbar als: Atom PDF