Projekt

Allgemein

Profil

Aktionen

GX-Bug #69973

geschlossen

Type error with "Soon" ribbon in PHP 8.1

Von Josua Michalak vor mehr als 1 Jahr hinzugefügt. Vor mehr als 1 Jahr aktualisiert.

Status:
Erledigt
Priorität:
Normal
Zugewiesen an:
Kategorie:
Frontend
Zielversion:
% erledigt:

0%

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

Ein Problem, das einen fatalen Fehler bei der Anzeige des Artikel-Ribbons "Bald" in modernen PHP-Versionen verursachte, wurde behoben.


Beschreibung

With PHP 8.1 if you have a product with the 'Soon' ribbon, you get an error on the start page of your shop if the product is shown there.


Steps to reproduce:

  1. Install 4.7.1.0 beta1 under PHP 8.1.x
  2. Edit a product thats shown on the start page.
  3. Set the 'Date Available' property to something in the future.
  4. Open the front page of the shop.

Expected result:
The shop should show the product as usual with the "Soon" ribbon.

Actual result:

The shop throws unexpected error regarding

CRITICAL: mktime(): Argument #1 ($hour) must be of type int, string given
src/GXMainComponents/SmartyPlugins/function.product_ribbons.php:250

Aktionen #1

Von Josua Michalak vor mehr als 1 Jahr aktualisiert

  • Tags wurde auf 4.7.1.0_RC1 gesetzt
  • Projekt wurde von 11058 zu GX-Entwicklung geändert
  • Kategorie wurde auf Frontend gesetzt
  • Betroffene Versionen 4.7.1.0 beta1 wurde hinzugefügt
Aktionen #3

Von Josua Michalak vor mehr als 1 Jahr aktualisiert

Aktionen #4

Von Josua Michalak vor mehr als 1 Jahr aktualisiert

  • Zielversion wurde auf 4.7.1.0 RC1 gesetzt
Aktionen #5

Von Ahmed Hamouda vor mehr als 1 Jahr aktualisiert

  • Status wurde von Anerkannt zu In Bearbeitung geändert
  • Zugewiesen an wurde auf Ahmed Hamouda gesetzt
Aktionen #6

Von Ahmed Hamouda vor mehr als 1 Jahr aktualisiert

  • Status wurde von In Bearbeitung zu Testing geändert
  • Zugewiesen an Ahmed Hamouda wurde gelöscht
  • Release Notes Langtext aktualisiert (Vergleich)
Aktionen #8

Von Alexandre Ataides vor mehr als 1 Jahr aktualisiert

  • Zugewiesen an wurde auf Alexandre Ataides gesetzt
Aktionen #9

Von Alexandre Ataides vor mehr als 1 Jahr aktualisiert

  • Zugewiesen an Alexandre Ataides wurde gelöscht
Aktionen #10

Von Josua Michalak vor mehr als 1 Jahr aktualisiert

  • Zugewiesen an wurde auf Josua Michalak gesetzt
Aktionen #11

Von Josua Michalak vor mehr als 1 Jahr aktualisiert

  • Status wurde von Testing zu Erledigt geändert
Aktionen #12

Von Moritz Bunjes vor mehr als 1 Jahr aktualisiert

  • Tags 4.7.1.0_RC1 wurde gelöscht
Aktionen #13

Von Moritz Bunjes vor mehr als 1 Jahr aktualisiert

  • Release Notes Langtext aktualisiert (Vergleich)
Aktionen

Auch abrufbar als: Atom PDF