Forum

Thread tagged as: Problem, Error

Assets toolbar SVG images missing

Have double checked files have uploaded OK but I'm not seeing the Assets toolbar svg images in my Perch 1.8.4 to 2.5.1 upgrade. That's perch/core/assets/img/assets.svg and perch/core/assets/img/search.svg. I can click on the image in the source code and view it but it's not displayed in the admin. I'm not seeing any errors in my error log.

I've tried Chrome, Firefox and even IE but get the same result.

Thanks for your help.

Clive Walker

Clive Walker 22 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you get a 404 or anything like that?

No 404s. For example, I can right click on "missing" search.svg image and show it in a new tab.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you see the response headers for the SVG file, in particular the content type the server is sending it with?

Content-Type: text/xml

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ah, they should be image/svg+xml. Can you try adding this to your .htaccess file?

AddType image/svg+xml svg svgz

OK, that's worked! Thanks.

(My web host is also adding the appropriate line to httpd.conf which should remove the .htaccess requirement)

Drew McLellan

Drew McLellan 2638 points
Perch Support

Great. It's unusual that it's not there already.