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

Auch abrufbar als: Atom PDF