SVG not showing | allow_url_fopen is on
-
Hello!
SVG icons are not showing.
allow_url_fopen is on
Safe svg plugin is installed.
What could be solution?
Attachments:
You must be
logged in to view attached files.
Hello,
Please, disable all external plugins that are not related to our theme and enable WP_DEBUG in wp-config.php file temporarily so we can check this.
Kind Regards
I did this. Saw that there is shown, that it is disabled file_get_contents. As in different support tickets, was written that it should be asked to hosting company, already asked them. And this was their response. But I have already installed safe swg plugin.
_______Response from hosting company______
Hello,
There is no server-side ban on SVG uploads for WordPress pages. All file formats are allowed to be uploaded from the server.
By default, WordPress does not allow you to upload SVG files.
This is done for security purposes.
You have the option to install separate plugins for your WordPress page that allow uploading files in SVG format.
There is no problem with SVG uploading. The problem is that your server blocks the request to get the SVG icon content using PHP file_get_contents
function.
Kind Regards
Thanks a lot, Artem!
Hosting provider have solved this problem! 😉
Great, we are happy to hear that. Feel free to contact us if you have any further questions.
The topic ‘SVG not showing | allow_url_fopen is on’ is closed to new replies.