1

I'm trying to change the logo of my Magento store so I go to Content > Design > Configuration, I click Edit on the Default Store View, I scroll down to Other Settings and open Header... I already have a logo there so I click on the trash icon to remove it, then I click on Upload and select the new logo I want from my computer. The logo loads properly, but when I click on Save Configuration, I get the following error message:

"Something is wrong with the file upload settings."

enter image description here

Also I remove the Favicon Icon and I was able to save the configurations with no error, but the icon still appears in the front end even though the Admin shows that there is no icon.

Note: My Magento 2 version is 2.4.4

Amit Dwivedi
1,57020 silver badges38 bronze badges
asked Oct 15, 2022 at 5:13
3
  • Which version you have of Magento 2 ? Commented Oct 15, 2022 at 5:22
  • Magento 2 version 2.4.4 Commented Oct 15, 2022 at 6:03
  • /pub/media/logo/stores/ check for the proper permission Commented Oct 15, 2022 at 12:38

3 Answers 3

0

You face this issue because your file is not allowed. Allowed extensions for logo files are jpg, jpeg, gif, and png.

answered Oct 15, 2022 at 15:16
2
  • my logo extension is png, so that's not the issue Commented Oct 15, 2022 at 16:18
  • Make sure your logo extension is lowercase. Eg: if the logo file is mylogo.PNG, magento will throw the error. Commented Oct 15, 2022 at 18:11
0

Just experienced the same. In my case it was because the file extension was UPPER CASE. Renaming .JPG to .jpg worked a treat for me at least.

I can't quite believe that was the simple answer, but worked in my case. Crazily poor error message if that was the reason!

answered Apr 28, 2023 at 18:14
0

Go to file vendor\magento\framework\Image\Adapter\Gd2.php

Change function 'validateURLScheme' with the below code:

private function validateURLScheme(string $filename) : bool
 {
 $allowed_schemes = ['ftp', 'ftps', 'http', 'https'];
 $url = parse_url($filename);
 if ($url && isset($url['scheme']) && !in_array($url['scheme'], $allowed_schemes) && !file_exists($filename)) {
 return false;
 }
 return true;
 }
answered Oct 18, 2024 at 7:04

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.