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

Auch abrufbar als: Atom PDF