Projekt

Allgemein

Profil

GX-Bug #70822

Von Till Tepelmann vor 11 Monaten aktualisiert

 

 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. 

 ------------------------------------ 


 ``` php 
     "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 

 ``` 

Zurück