Projekt

Allgemein

Profil

Aktionen

GX-Bug #70822

geschlossen

Deprecated Meldungen unter PHP 8.2 beheben

Von Till Tepelmann vor 4 Monaten hinzugefügt. Vor 2 Monaten aktualisiert.

Status:
Erledigt
Priorität:
Dringend
Zugewiesen an:
Kategorie:
Core
Zielversion:
% erledigt:

0%

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

Korrekturen für PHP 8.2


Beschreibung

Kann wie folgt reproduziert werden:

  1. Shop 4.9.2.0 installieren
  2. Auf dem Server in der Datei config/.env.php die Zeile 'LOG_DEPRECATED_WARNINGS' auf true setzen

Erwartetes Ergebnis:
Es sollten keine Deprecated Warnungen mehr im Log angezeigt werden

Tatsächliches Ergebnis:
Es werden viele Deprecated Warnungen im Log angezeigt.


Can be reproduced as follows:

Install Shop 4.9.2.0
Set the line 'LOG_DEPRECATED_WARNINGS' to true in the /config/.env.php file on the server

Expected result:
Deprecated warnings should no longer be displayed in the log

Actual result:
Many deprecated warnings are displayed in the log.


    "error": "<br \/>\n<b>Deprecated<\/b>:  Creation of dynamic property LogControl::$max_filesize is deprecated in <b>\/system\/core\/logging\/LogControl.inc.php<\/b> on line <b>70<\/b><br \/>\n<br \/>\n<b>Deprecated<\/b>:  Creation of dynamic property AutoUpdaterShopExcludedAjaxController::$autoUpdaterFactory is deprecated in <b>\/GXMainComponents\/Controllers\/HttpView\/Admin\/auto_updater\/AutoUpdaterShopExcludedAjaxController.inc.php<\/b> on line <b>77<\/b><br \/>\n",


WARNING] Creation of dynamic property main::$SHIPPING is deprecated
context:
  session ID: session-6596c9edb3c891.87023058
  code: 8192
  file: /includes/classes/main.php
  line: 23
  code snippet:   
         public function __construct() {
    ├─          $this->SHIPPING = array();
      
      
  trace:
    0:
      file: /GXMainComponents/Application.inc.php


 WARNING] Creation of dynamic property shoppingCart::$tax is deprecated
context:
  session ID: session-6596c9edb3c891.87023058
  code: 8192
  file: /var/www/pb/4920updatetest/GXMainComponents/Application.inc.php
  line: 911
  code snippet:           gm_set_session_parameters();
              unset($_GET[session_name()]);
    ├─         session_start();
          }
          
  trace:
    0:
      file: /GXMainComponents/Application.inc.php



 WARNING] Creation of dynamic property xtcPrice::$showNormalPriceOnlyForNationalShipping is deprecated
context:
  session ID: session-6596c9edb3c891.87023058
  code: 8192
  file: /includes/classes/xtcPrice.php
  line: 51
  code snippet:          $this->v_coo_language_text_manager = MainFactory::create_object('LanguageTextManager', array('price', $_SESSION['languages_id']));
      
    ├─      $this->showNormalPriceOnlyForNationalShipping = gm_get_conf('SHOW_NORMAL_PRICE_ONLY_FOR_NATIONAL_SHIPPING');
             
             // select Currencies
  trace:
    0:
      file: /GXMainComponents/Application.inc.php


WARNING] Creation of dynamic property messageStack::$messages is deprecated
context:
  session ID: session-6596c9edb3c891.87023058
  code: 8192
  file: /includes/classes/message_stack.php
  line: 32
  code snippet:       public function __construct() {
      
    ├─       $this->messages = array();
      
            if (isset($_SESSION['messageToStack'])) {
  trace:
    0:
      file: /GXMainComponents/Application.inc.php



WARNING] Return type of Gambio\Shop\Modules\ProductListing\Model\Collections\ListingItemIds::getIterator(): Traversable|array should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice
context:
  session ID: session-6596c9edb3c891.87023058
  code: 8192
  file: /GambioShop/Modules/ProductListing/Model/Collections/ListingItemIds.php
  line: 91
  code snippet:        * @return ListingItemId[]|iterable
           */
    ├─     public function getIterator(): iterable


Aktionen #1

Von Till Tepelmann vor 4 Monaten aktualisiert

  • Thema wurde von Module aus dem Store sind nicht installierbar, wenn man PHP 8.2 nutzt zu Deprecated Meldungen unter PHP 8.2 beheben geändert
  • Beschreibung aktualisiert (Vergleich)
Aktionen #2

Von Till Tepelmann vor 4 Monaten aktualisiert

  • Kategorie wurde von Gambio Store zu Core geändert
Aktionen #3

Von Till Tepelmann vor 4 Monaten aktualisiert

Aktionen #4

Von Till Tepelmann vor 4 Monaten aktualisiert

  • Tags wurde auf 4.9.3.0_beta1 gesetzt
  • Status wurde von Gemeldet zu Testing geändert
Aktionen #5

Von Josua Michalak vor 4 Monaten aktualisiert

  • Zugewiesen an wurde auf Josua Michalak gesetzt
Aktionen #6

Von Josua Michalak vor 4 Monaten aktualisiert

  • Zugewiesen an Josua Michalak wurde gelöscht
Aktionen #7

Von Krystian Czerwinski vor 4 Monaten aktualisiert

  • Zugewiesen an wurde auf Krystian Czerwinski gesetzt
Aktionen #8

Von Krystian Czerwinski vor 4 Monaten aktualisiert

  • Zugewiesen an Krystian Czerwinski wurde gelöscht
Aktionen #9

Von Krystian Czerwinski vor 3 Monaten aktualisiert

  • Zugewiesen an wurde auf Krystian Czerwinski gesetzt
Aktionen #10

Von Krystian Czerwinski vor 3 Monaten aktualisiert

  • Status wurde von Testing zu Erledigt geändert
  • Zielversion wurde auf 4.9.3.0 beta1 gesetzt
Aktionen

Auch abrufbar als: Atom PDF