Home › Forums › WoodMart support forum › SVG Icons do not appear, even if i have the theme setting enabled
SVG Icons do not appear, even if i have the theme setting enabled
- This topic has 24 replies, 3 voices, and was last updated 2 years, 6 months ago by Artem Temos.
-
AuthorPosts
-
April 26, 2022 at 3:07 pm #371094
supp0rtParticipantHello,
I have imported some demo pages, and even if the SVG files are inside the media library (not always) and inside the element’s settings, in the front-end, I can not make them display. I have even disabled the SVG option and added a separate plugin (as per your suggestions) but the SVG does not appear.
Also, even if I have imported the Contact page (Contact Us 2) that has the popup button inside, still the SVG icons do not appear and the files are nowhere to be found.
What I can do to fix this?
Best Regards
April 27, 2022 at 9:22 am #371281
Aizaz Imtiaz AwanKeymasterHello,
It seems that file_get_contents function for URLs is disabled on your server.
You need to contact your provider and ask to enable this option.If it still doesn’t work then provide the login details of the website.
Best Regards
April 28, 2022 at 10:20 am #371599
supp0rtParticipantI have contacted the server’s support and I am waiting for an answer.
When I will get an answer from them, I will let you know, so we can proceed accordingly.
Best Regards
April 28, 2022 at 2:06 pm #371669
Aizaz Imtiaz AwanKeymasterHello,
Ok we will wait for your next reply.
Best Regards
May 3, 2022 at 9:26 am #372657
supp0rtParticipantHello,
I would like to ask if the woodmart-core plugin has any problems with the newest versions of PHP (version: 7.4.29 and upper).
Best Regards
May 3, 2022 at 10:05 am #372660
supp0rtParticipantI also took a closer look at the div section and I see that the SVG is not loading inside the div.
I have attached an image so that you can also check. From the service provider, they said that it might be a problem with the PHP version and the plugin of woodmart.Still waiting for an answer, if the file_get_contents function is enabled on the compiler.
Best Regards
Attachments:
You must be logged in to view attached files.May 3, 2022 at 10:30 am #372670
Artem TemosKeymasterOur theme is fully compatible with PHP 7, 8+ and works without problems.
The problem with SVG is definitely caused by server configuration because it doesn’t allow to get the SVG file content using PHP functions.Kind Regards
May 3, 2022 at 11:32 am #372699
supp0rtParticipantI will let me know and report back here when I have an outcome.
Best Regards
May 5, 2022 at 12:37 pm #373289
supp0rtParticipantHello again,
From the server, they informed me that the specific function of PHP is active. And they insist that the error is on the theme.
Below you can find admin access so that you can check this further.
Let me know if you need anything else.
Best Regards
May 5, 2022 at 12:43 pm #373290
Artem TemosKeymasterSorry, but the FTP access seems to be wrong and we can’t access your files https://gyazo.com/5f4db9947dcb80556a3ea09ec29b6169
May 5, 2022 at 12:44 pm #373291
Artem TemosKeymasterPlease, enable
WP_DEBUG
in the wp-config.php file to see the error on the page https://codex.wordpress.org/WP_DEBUGMay 5, 2022 at 12:58 pm #373304
supp0rtParticipant1) I guess everything is ok with the FTP ?
2) I have enabled the debugger. Here is the warning i get:
Warning: file_get_contents(https://drawform.gr/wp-content/uploads/2021/08/wd-mobile.svg): failed to open stream: HTTP request failed! HTTP/1.1 503 Service Unavailable in /var/www/vhosts/369777736.linuxzone190.grserver.gr/drawform.gr/wp-content/plugins/woodmart-core/post-types.php on line 731Can this be a problem created from https?
Because the site does not have an active SSL yet.
My theory around that is that it tries to find the file over https://drawform.gr/wp-content/… and probably the server blocks the request, as it is on HTTP.
Could this be possible?Let me know.
May 5, 2022 at 2:05 pm #373328
Artem TemosKeymasterAs you can see, your server blocks the request to SVG image via HTTPS. So yes, it might be an issue with the SSL certificate.
Kind Regards
May 6, 2022 at 2:18 pm #373684
supp0rtParticipantThere was a self-assigned certificate on the server-side.
I have removed the certificate, but I still can not see the image. It still calls over the HTTPS.
Is there any way to fix this?
May 6, 2022 at 2:20 pm #373685
Artem TemosKeymasterIf you want, you can switch to HTTP protocol if you don’t have a valid SSL certificate. You need to change the URL in Dashboard -> Settings -> General and try to reupload the SVG image to the element.
Kind Regards
May 6, 2022 at 2:23 pm #373686
supp0rtParticipantI will try this and will inform you of the outcome.
Best Regards
May 24, 2022 at 4:05 pm #378439
supp0rtParticipantHello,
I have done a bit more search on this matter. I have changed the URLs on the database to HTTP and the SVG files still do not appear. Moreover, I am still getting this error
AH01071: Got error 'PHP message: PHP Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:\nerror:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /var/www/vhosts/servername/test.uk/wp-content/plugins/woodmart-core/post-types.php on line 731
I really do not know what else I can check and make the SVGs appear on the site. The site is still in development.
Let me know what else I can do to fix this.Best Regards
May 24, 2022 at 4:32 pm #378451
Artem TemosKeymasterThis error still says that you have problems with SSL certificate. If you change the URL in the WordPress dashboard, try to reupload the SVG image to make sure that it is loaded via http instead of https too.
Kind Regards
May 25, 2022 at 10:39 am #378625
supp0rtParticipantThank you for your answer. If I do this, then when the site will be live and will include SSL then i will have to reupload the SVG files again? Because, if the files are loading over HTTP it will be a mixed content problem. Thus, I must again upload or change the HTTP to HTTPS in the database.
But if I change the HTTP to HTTPS in the database, then the file will appear corrupted.
Is there any other way, in order to avoid all these steps?
Best Regards
May 25, 2022 at 12:26 pm #378655
Artem TemosKeymasterIt should work automatically when you change the URL in the WordPress dashboard. Anyway, check if it works when you reupload the image first and let me know.
Kind Regards
May 25, 2022 at 1:12 pm #378689
supp0rtParticipantI have changed from HTTPS to HTTP in the settings of WordPress. No SSL is active on the site or the server. have downloaded the file, renamed it, and then reupload it. The file path appears in HTTP. Still, the SVG icon does not appear at all. The file_get_content function still tries to call HTTPS. No htaccess rule is applied for the automatic redirect.
Let me know what I can do.
Credentials are provided below.
Best Regards
May 25, 2022 at 2:34 pm #378715
Artem TemosKeymasterStrange, but we see a new error generated by server 503. It might be not related to HTTPS now but you need to ask your hosting provider to check this one more time.
file_get_contents(http://drawform.gr/wp-content/uploads/2022/05/wd-mobile-http.svg): failed to open stream: HTTP request failed! HTTP/1.1 503 Service Unavailable
Kind Regards
May 25, 2022 at 2:54 pm #378723
supp0rtParticipantYou will need to add the IP of the server in the HOSTS file of your OS in order to see the site in development.
I have contacted the hosting provider also to see if they know anything else.
Best Regards
July 5, 2022 at 2:34 pm #388786
supp0rtParticipantHello,
I have contacted again the Hosting service but they insist that all the available libraries and files for PHP are up and running, and they say it is the installation problem and how they handle this. I really do not know how I can approach this anymore, or even how I can debug it.
Let me know what else I can do on my end.
Best Regards
July 5, 2022 at 3:18 pm #388805
Artem TemosKeymasterHello,
Maybe this problem is caused by the fact is that your domain is not connected to your server and you need to change the hosts file to see it. Are you able to check it on a working website?
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register