Home Forums WoodMart support forum PHP warning failed to open steam 403 forbidden

PHP warning failed to open steam 403 forbidden

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #546807

    Puddle123
    Participant

    Hi,

    Since moving to a new web-host. Some SVG images have stopped showing on my website. The images relate to icons used as part of information boxes created on WPBakery builder.

    I contacted the host and they said:

    “These are Php warnings related to the plugin woodmart core which is sending request with an empty user-agent and getting this as we don’t allow an empty user-agent. You can ignore it, but it would be better if the developer assign a user-agent with the request which you can request.”

    Would you be able to help me implement this so that the images will show?

    #546979

    Hello,

    Can you please share some screenshots for better understanding and share the page url, Also share the wp logins details so i will check and give you a possible solution.

    Best Regards.

    #547016

    Puddle123
    Participant

    Sure, please see info in private content.

    #547285

    Hello,

    I have checked your site and the brand images are showing fine.

    See the screenshot for clarification:
    https://ibb.co/qRTVwHk

    Best Regards.

    #547293

    Puddle123
    Participant

    The issue does not relate to the brand images. Please see the text boxes below “Why Buy From Us?” There are 4 information boxes, each has an icon attached, but the icons are not showing.

    #547464

    Hello,

    There is no problem with SVG uploading. The problem is that your server blocks the request to get the SVG icon content using PHPfile_get_contents function.

    Kind Regards

    #547481

    Puddle123
    Participant

    Hi,

    Thanks for looking at this. Yes the SVG uploads okay. I mentioned above that it is being blocked. My host says they are blocked due to WoodMart Core sending the request with an “empty user-agent” – they don’t allow this. To fix it they said to assign a user-agent with the request – please can you instruct me how to assign the user-agent?

    Thanks

    #547857

    Artem Temos
    Keymaster

    Hello,

    These requests are sent using the file_get_contents PHP function. They should accept these requests. Otherwise, SVG can’t be displayed on your website, unfortunately.

    Kind Regards

    #547957

    Puddle123
    Participant

    Hi,

    Thanks for your reply. SVG images are loading from other areas of the website though, for example SVG icons for the product categories load fine – attached screenshot. Can the request for SVG icons used in the main page not be sent the same way as the category icon SVG icons which do load?

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #547960

    Artem Temos
    Keymaster

    Hello,

    Currently, there is no way to change this request for particular elements like Infobox. But we will consider improving this in our future updates.

    Kind Regards

    #548050

    Puddle123
    Participant

    Hi,

    Thanks for your reply. I clarified it with our host. They said “Even though its using file_get_contents, the request can’t go with an unspecified user agent. Because it’s basically trying to cURL the images. They need to set a user agent.”

    Hopefully you can look at it for a future update.

    Thanks

    #548155

    Artem Temos
    Keymaster

    Hello,

    We will try to remake this mechanism and not load SVG at all. It will be displayed as <img src="path/to/svg" /> HTML tag.

    Kind Regards

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