Projekt

Allgemein

Profil

GX-Bug #45095

Von Daniel Würdemann vor etwa 8 Jahren aktualisiert

In ProductImageContainerRepository::_getPrimaryImageAltText() wird der Alternatixtext Die genauen Umstände des Problems sind nicht bekannt. Vielleicht gibt es nicht für die jeweilige jede Sprache nur gesetzt, wenn ein Wert ungleich null Daten in der Datenbank gesetzt ist. 
 Wenn dann über DB. Das ist die Sprachen iteriert (admin/html/compatibility/product/product_images.inc.php:290) wird und der language_code nicht im Array enthalten ist, wird eine Exception geworfen. Fehlermeldung: 

 ProductImageContainerRepository sollte für alle Sprachen einen Alternativtext setzen. Wenn <!-- ALTERNATIVE TEXTS --> 
 <!-- ================= --> 
 <!-- Iterate over each image and generate the respective input field. --> 
 <div class="grid control-group"> 

 <!-- LABEL --> 
 <div class="span6"> 
 <label>Alternativtext</label> 
 </div> 

 <!-- INPUT FIELD --> 
 <div class="span4"> 
 <input type="text" 
 name="image_alt_text[EN][]" 
 value="<br /> 
 <b>Fatal error</b>: Uncaught exception 'InvalidArgumentException' with message 'EN is not a valid key.' in der Datenbank kein Text gesetzt ist, sollte man hier einen leeren String setzen. /home/www/doc/20979/bs-rescue-shop.de/www/GXEngine/Classes/CoreServices/Product/Entities/ProductImage.inc.php:84 
 Stack trace: 
 #0 /home/www/doc/20979/bs-rescue-shop.de/www/admin/html/compatibility/product/product_images.inc.php(290): ProductImage-&gt;getAltText(Object(LanguageCode)) 
 #1 /home/www/doc/20979/bs-rescue-shop.de/www/admin/html/compatibility/product/new_product.inc.php(413): include('/home/www/doc/2...') 
 #2 /home/www/doc/20979/bs-rescue-shop.de/www/admin/categories.php(540): include('/home/www/doc/2...') 
 #3 {main} 
 thrown in <b>/home/www/doc/20979/bs-rescue-shop.de/www/GXEngine/Classes/CoreServices/Product/Entities/ProductImage.inc.php</b> on line <b>84</b><br /> 

Zurück