GX-Bug #55944
Von Ulrich Wenk vor mehr als 5 Jahren aktualisiert
Zunächst muss über den FileManager (Toolbox) ein Unterordner angelegt werden. Anschließend kann dort über Artikel bearbeiten/erstellen ein Bild hochgeladen und ausgewählt werden. Will man dann speichern, dann:
FATAL ERROR(1): "Uncaught InvalidArgumentException: Filename "asdasdasd/Fleischsmoothie.png" is not valid in /var/www/html/local-feature/GXEngine/Shared/FileSystem/FilenameStringType.php:57
Stack trace:
#0 /var/www/html/local-feature/GXEngine/Shared/FileSystem/FilenameStringType.php(33): FilenameStringType->_validateFilename('asdasdasd/Fleis...')
#1 /var/www/html/local-feature/admin/includes/modules/set_product_image_data.inc.php(99): FilenameStringType->__construct('asdasdasd/Fleis...')
#2 /var/www/html/local-feature/admin/includes/modules/set_stored_product_data.inc.php(104): require('/var/www/html/l...')
#3 /var/www/html/local-feature/admin/categories.php(326): require('/var/www/html/l...')
#4 {main}
thrown"
----
**EDIT** 15.08.2019
1. go to toolbox > file manager, open images/product_images/original_images
2. create a new sub-folder
3. go to catalog > categories / products, open a product for editing
4. add a product image for this item by uploading it via the file manager, upload the image in your new sub-folder
5. hit save or update on your detailed product view
* expected result: the new image can be saved
* actual result: a warning gets thrown
```WARNING(2): "imagejpeg(/var/www/vhosts/hubtest.lena.hostkraft.de/httpdocs/3.13.3.0/images/product_images/info_images/test-unterordner/faf923ebe1114fa1b98945d6ce622d84.jpg): failed to open stream: No such file or directory"
WARNING(2): "imagejpeg(/var/www/vhosts/hubtest.lena.hostkraft.de/httpdocs/3.13.3.0/images/product_images/thumbnail_images/test-unterordner/faf923ebe1114fa1b98945d6ce622d84.jpg): failed to open stream: No such file or directory"
WARNING(2): "imagejpeg(/var/www/vhosts/hubtest.lena.hostkraft.de/httpdocs/3.13.3.0/images/product_images/gallery_images/test-unterordner/faf923ebe1114fa1b98945d6ce622d84.jpg): failed to open stream: No such file or directory"
WARNING(2): "Cannot modify header information - headers already sent by (output started at /var/www/vhosts/hubtest.lena.hostkraft.de/httpdocs/3.13.3.0/gm/classes/ErrorHandler.php:419)"```