Page 1 of 1

RSS Feed Not Working

Posted: Wed May 19, 2021 6:17 pm
by netmarketer
Hi,

Website: https://www.digitalkrypto.com

I am not sure if it is a WWB problem or perhaps on my server side.
I created a php.ini file in the same folder (Pablo's suggestion on another post - allow_url_fopen=0)
I have tried all possible configurations, but with no luck.

This is from the error log file of the last configuration I used from the server:

[19-May-2021 17:58:50 UTC] PHP Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/digita34/public_html/newsfeedticker2_feed.php on line 5
[19-May-2021 17:58:50 UTC] PHP Warning: file_get_contents(https://cointelegraph.com/rss.xml): failed to open stream: no suitable wrapper could be found in /home/digita34/public_html/newsfeedticker2_feed.php on line 5
[19-May-2021 17:59:10 UTC] PHP Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/digita34/public_html/newsfeedticker2_feed.php on line 5
[19-May-2021 17:59:10 UTC] PHP Warning: file_get_contents(https://cointelegraph.com/rss.xml): failed to open stream: no suitable wrapper could be found in /home/digita34/public_html/newsfeedticker2_feed.php on line 5


Thanks for any help.

Re: RSS Feed Not Working

Posted: Thu May 20, 2021 5:59 am
by Pablo
allow_url_fopen should be set to '1'
https://www.php.net/manual/en/filesyste ... ration.php

Re: RSS Feed Not Working

Posted: Thu May 20, 2021 8:05 am
by netmarketer
I tried but it did not work.

This is the php.ini file that I used:

<?php

allow_url_fopen=1;

?>



The error log file shows a problem on line 5 of the newsfeederticker2_feed.php file:

[20-May-2021 07:28:09 UTC] PHP Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/digita34/public_html/newsfeedticker2_feed.php on line 5

(It doesn't seem to recognize the php.ini file where fopen=1)


This is the newsfeedticker2_feed php file:

<?php

header('Content-Type: text/xml');

print file_get_contents('https://cointelegraph.com/rss.xml');

?>



I will contact the hosting company's support today to see if the problem is on the server side.

Re: RSS Feed Not Working

Posted: Thu May 20, 2021 8:53 am
by Pablo
The error indicates that the option is either disabled or not supported by the server.

Re: RSS Feed Not Working

Posted: Thu May 20, 2021 12:19 pm
by netmarketer
I contacted support and they activated allow_url_fopen=1.

I uploaded the site and tried again and still did not work.

However the error log gave a different error related to permissions.

When I sent the error log to support, the ticket was elevated to Tier 2. I also asked about cURL.

I am pretty sure this is a server problem.

I will let you know the result after I get it resolved, in case it might be useful for someone else in the future.

Re: RSS Feed Not Working

Posted: Thu May 20, 2021 12:49 pm
by netmarketer
Apparently maybe not on server side. This is the reply from Tier 2:

-----------------------------------------------------------------------------------------------
Yes, cURL is enabled on our servers and I have manually sent HTTP GET request to https://cointelegraph.com/rss.xml and got the same "HTTP/1.1 403 Forbidden" response:
#######
digita34@chi116 [~/public_html]# curl -i -X GET https://cointelegraph.com/rss.xml
HTTP/1.1 403 Forbidden
Date: Thu, 20 May 2021 09:46:25 GMT
Content-Type: text/plain; charset=UTF-8
Content-Length: 16
Connection: keep-alive
X-Frame-Options: SAMEORIGIN
Cache-Control: private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 01 Jan 1970 00:00:01 GMT
cf-request-id: 0a2ac4608700003fae18232000000001
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-c ... /expect-ct"
Server: cloudflare
CF-RAY: 6524a3473f723fae-ORD
#######

Please make sure that incoming HTTP request is not blocked on cointelegraph.com server side, IP 104.20.40.71 of this belongs to Cloudflare network.

-----------------------------------------------------------------

I used the following RSS feed to test:

http://www.wysiwygwebbuilder.com/rss.xml

and it works fine.

So, I don't know where to turn at this point. Any ideas would be appreciated.

Thanks for the help with the troubleshooting, Pablo.

Re: RSS Feed Not Working

Posted: Thu May 20, 2021 1:15 pm
by Pablo
This is most likely a security related issue.
This is not something I can help you with, this is unrelated to the software.

Re: RSS Feed Not Working

Posted: Fri May 21, 2021 1:15 pm
by netmarketer
The software works fine.

The problem was with a number of RSS feeds. I did find one that worked.

It is definitely a security issue.

Maybe time to look for another hosting service.