Closed
Description
When attempting to upload a favicon file of .ico extension type in Magento admin, Magento will not deem the file as valid.
Tested on a clean composer install of Magento 2.4.3-p1 with a PHP version of 7.4.13.
Perhaps the usage of PHP's imagecreatefromstring
causes for an .ico file type to always be deemed invalid by Magento. The exception is thrown: "Warning: imagecreatefromstring(): one parameter to a memory allocation multiplication is negative or zero, failing operation gracefully
in /var/www/html/vendor/magento/module-media-storage/Model/File/Validator/Image.php on line 64"
Preconditions (*)
- Unaltered, clean install of Magento version 2.4.3-p1
- PHP version 7.4.13
- DBMS: MySQL (ver. 5.5.5-10.2.40-MariaDB-1:10.2.40+maria~bionic)
Case sensitivity: plain=exact, delimited=exact
Driver: MySQL Connector/J (ver. mysql-connector-java-8.0.25 (Revision: 08be9e9b4cba6aa115f9b27b215887af40b159e0), JDBC4.2)
Effective version: MariaDB (ver. 10.2.40) - Chrome browser version Version 96.0.4664.110 (Official Build) (x86_64)
- MacBook Pro - OS: Catalina 10.15.7
Steps to reproduce (*)
- Login to Magento admin
- Navigate to Content -> Design -> Configuration
- Click 'Edit' on any of the records shown in the grid
- Scroll to 'Other Settings'
- Expand 'HTML Head'
- Under the 'Favicon Icon' section, click 'Upload'
- Select a valid .ico file, click 'Open'
Expected result (*)
- It should provide a preview of the icon below the upload form and allow for the admin user to save the configuration settings.
Actual result (*)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done