Title: [SOLVED] Can&#8217;t upload: HTTP error &amp; problem with Media Library
Last modified: December 22, 2018

---

# [SOLVED] Can’t upload: HTTP error & problem with Media Library

 *  Resolved [richbhanover](https://wordpress.org/support/users/richbhanover/)
 * (@richbhanover)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/http-error-problem-with-media-library/)
 * **Solution:** As noted in [https://wordpress.org/support/topic/media-library-is-slow-lagging-constantly-spinning-or-crashes/](https://wordpress.org/support/topic/media-library-is-slow-lagging-constantly-spinning-or-crashes/),
   if you’re seeing a “HTTP error” message in the Media Library (especially after
   trying to upload a SVG image), then it might be a problem between Safe SVG and
   php7.
 * The fix, as described in that post, seems to be to install php7.0-xml (with `
   apt-get install php7.0-xml`) then restarting your web server.
 * ———–
    **Here is the original problem report…** I’m using WP 5.0.2, Divi Builder
   2.19, Divi Theme 3.19, and Safe SVG 1.8.1 I see two problems:
 * 0. If I don’t use Safe SVG, I get an error message, “Sorry, this file type is
   not permitted for security reasons.” (This is as expected.)
 * 1. When I attempt to drag an SVG into the Media Library, I see the upload process,
   then a “HTTP error” message. The result is that the SVG was not uploaded, nor
   does it appear in wp-content/uploads…
 * 2. With Safe SVG activated, none of the images in the Media Library are visible.
   There’s a little spinner in the header that continues to spin without change.
   De-activating Safe SVG allows the Media Library to display its images again.
 * What other information could I provide for debugging? Thanks.
 * PS I have added `AddType image/svg+xml .svg .svgz` to my .htaccess file before
   any of these problem.
 * PPS Weirdly, I see exactly the same symptoms when using SVG Support plugin, version
   2.3.15 and WP SVG Images 3.0…
    -  This topic was modified 7 years, 5 months ago by [richbhanover](https://wordpress.org/support/users/richbhanover/).
      Reason: Added info about W3 SVG Images plugin, too
    -  This topic was modified 7 years, 5 months ago by [richbhanover](https://wordpress.org/support/users/richbhanover/).

Viewing 1 replies (of 1 total)

 *  Thread Starter [richbhanover](https://wordpress.org/support/users/richbhanover/)
 * (@richbhanover)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/http-error-problem-with-media-library/#post-11042861)
 * I meant to check the “mark as resolved box” before…

Viewing 1 replies (of 1 total)

The topic ‘[SOLVED] Can’t upload: HTTP error & problem with Media Library’ is closed
to new replies.

 * ![](https://ps.w.org/safe-svg/assets/icon.svg?rev=2779013)
 * [Safe SVG](https://wordpress.org/plugins/safe-svg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/safe-svg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/safe-svg/)
 * [Active Topics](https://wordpress.org/support/plugin/safe-svg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/safe-svg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/safe-svg/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [richbhanover](https://wordpress.org/support/users/richbhanover/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/http-error-problem-with-media-library/#post-11042861)
 * Status: resolved