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

Viewing 25 posts - 1 through 25 (of 25 total)
  • Author
    Posts
  • #371094

    supp0rt
    Participant

    Hello,

    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

    #371281

    Hello,

    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

    #371599

    supp0rt
    Participant

    I 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

    #371669

    Hello,

    Ok we will wait for your next reply.

    Best Regards

    #372657

    supp0rt
    Participant

    Hello,

    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

    #372660

    supp0rt
    Participant

    I 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.
    #372670

    Artem Temos
    Keymaster

    Our 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

    #372699

    supp0rt
    Participant

    I will let me know and report back here when I have an outcome.

    Best Regards

    #373289

    supp0rt
    Participant

    Hello 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

    #373290

    Artem Temos
    Keymaster

    Sorry, but the FTP access seems to be wrong and we can’t access your files https://gyazo.com/5f4db9947dcb80556a3ea09ec29b6169

    #373291

    Artem Temos
    Keymaster

    Please, enable WP_DEBUG in the wp-config.php file to see the error on the page https://codex.wordpress.org/WP_DEBUG

    #373304

    supp0rt
    Participant

    1) 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 731

    Can 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.

    #373328

    Artem Temos
    Keymaster

    As 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

    #373684

    supp0rt
    Participant

    There 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?

    #373685

    Artem Temos
    Keymaster

    If 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

    #373686

    supp0rt
    Participant

    I will try this and will inform you of the outcome.

    Best Regards

    #378439

    supp0rt
    Participant

    Hello,

    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

    #378451

    Artem Temos
    Keymaster

    This 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

    #378625

    supp0rt
    Participant

    Thank 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

    #378655

    Artem Temos
    Keymaster

    It 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

    #378689

    supp0rt
    Participant

    I 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

    #378715

    Artem Temos
    Keymaster

    Strange, 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

    #378723

    supp0rt
    Participant

    You 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

    #388786

    supp0rt
    Participant

    Hello,

    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

    #388805

    Artem Temos
    Keymaster

    Hello,

    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

Viewing 25 posts - 1 through 25 (of 25 total)