• Hi,

    recently I checked my wordpress website error_log file i found there is too many PHP Warnings from Easy Liveblogs plugin. I noticed allow_url_fopen=0 , is it safe to enable allow_url_fopen on the server? is other errors related to allow_url_fopen ?

    [08-Jan-2024 23:52:23 UTC] PHP Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/domain/public_html/wp-content/plugins/easy-liveblogs/includes/elb-functions.php on line 577
    [08-Jan-2024 23:52:23 UTC] PHP Warning: file_get_contents(https://xxxxxx.com/wp-json/easy-liveblogs/v1/liveblog/98746): Failed to open stream: no suitable wrapper could be found in /home/domain/public_html/wp-content/plugins/easy-liveblogs/includes/elb-functions.php on line 577
    [08-Jan-2024 23:52:23 UTC] PHP Warning: Trying to access array offset on value of type null in /home/domain/public_html/wp-content/plugins/easy-liveblogs/includes/elb-functions.php on line 524
    [08-Jan-2024 23:52:23 UTC] PHP Warning: Trying to access array offset on value of type null in /home/domain/public_html/wp-content/plugins/easy-liveblogs/includes/elb-functions.php on line 525
    [09-Jan-2024 01:05:40 UTC] PHP Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/domain/public_html/wp-content/plugins/easy-liveblogs/includes/elb-functions.php on line 577
    [09-Jan-2024 01:05:40 UTC] PHP Warning: file_get_contents(https://xxxxxx.com/wp-json/easy-liveblogs/v1/liveblog/105832): Failed to open stream: no suitable wrapper could be found in /home/domain/public_html/wp-content/plugins/easy-liveblogs/includes/elb-functions.php on line 577
    [09-Jan-2024 01:05:40 UTC] PHP Warning: Trying to access array offset on value of type null in /home/domain/public_html/wp-content/plugins/easy-liveblogs/includes/elb-functions.php on line 524
    [09-Jan-2024 01:05:40 UTC] PHP Warning: Trying to access array offset on value of type null in /home/domain/public_html/wp-content/plugins/easy-liveblogs/includes/elb-functions.php on line 525
Viewing 1 replies (of 1 total)
  • Plugin Author Jeffrey van Rossum

    (@jeffreyvr)

    Hi,

    Using the file_get_contents function should be fine on most servers, unless allow_url_fopen is disabled – which is probably a security motivated decision.

    I will see if in a future update, I can refactor this so that it uses a different method.

Viewing 1 replies (of 1 total)
  • The topic ‘plugin writes too many PHP Warnings into error_log’ is closed to new replies.