Home Forums WoodMart support forum intenal server error – file_get_contents

intenal server error – file_get_contents

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #256842

    [email protected]
    Participant

    in php error logs and also on google snippet i found this error:

    1.1 500 Internal Server Error
    in /home/customer/www/weedfly.shop/public_html/wp-content/plugins/woodmart-core/post-types.php on line 629
    [08-Jan-2021 16:36:46 UTC] PHP Warning: file_get_contents(https://www.weedfly.shop/wp-content/uploads/2018/04/white-electronics-best.svg): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error
    in /home/customer/www/weedfly.shop/public_html/wp-content/plugins/woodmart-core/post-types.php on line 629
    [08-Jan-2021 16:36:46 UTC] PHP Warning: file_get_contents(https://www.weedfly.shop/wp-content/uploads/2018/03/v-toy-shape-2.svg): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error
    in /home/customer/www/weedfly.shop/public_html/wp-content/plugins/woodmart-core/post-types.php on line 629
    [08-Jan-2021 16:36:46 UTC] PHP Warning: file_get_contents(https://www.weedfly.shop/wp-content/uploads/2019/06/svg-ae-energy.svg): failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error
    in /home/customer/www/weedfly.shop/public_html/wp-content/plugins/woodmart-core/post-types.php on line 629

    #256894

    Hello,

    I have submitted your issue to our dev team we shall get back to you asap.

    Best Regards

    #256977

    Artem Temos
    Keymaster

    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.

    Regards

    #257011

    [email protected]
    Participant

    Dear support,
    i verify with my hosting, but as you can see here:
    weedfly.shop/info.php
    the parameter allow_url_fopen is active on my server

    #257230

    Artem Temos
    Keymaster

    Hello,

    Then there is another issue with that function. But the fact is the error is generated by the server. Send your hosting support the error log and ask them to check this from their side.

    Kind Regards

    #257318

    [email protected]
    Participant

    i just send the error log, and the technical support say to me to execute 2 task:
    1) add php.ini with the follow row:
    allow_url_fopen = 1

    2) add this row with this row:
    SetEnv PHPRC /home/u1177-9pfavj986uu3/www/weedfly.shop/public_html/php.ini

    for your info, i notice that this error begin from 4 december

    please provide me a solution, because in seo terms are becoming a problem.

    #257337

    Artem Temos
    Keymaster

    Sorry, but it is not something that we can fix in our theme. The request is blocked by the server 500 error. https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/500
    As a workaround, you can remove SVG images and replace them with PNG or JPG.

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