SymptomsRSS Reader works correctly in Site Preview however it generates the following error on the published site:
The selected RSS channel is unavailable now.
If increase PHP error reporting to E_ALL:
error_reporting = E_ALL
display_errors = On
The following error is shown on the published site:
Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /usr/local/pem/vhosts/193868/webspace/httpdocs/include/SB/Modules/HttpRequest.php on line 178
CauseList of RSS channel registered in Parallels Plesk Sitebuilder is outdated. Several links are not valid now or redirects are configured. Due to the recent changes implemented in PHP curl extension Parallels Plesk Sitebuilder module RSS Reader does not work properly with redirected links in case open_basedir restriction is in effect.
ResolutionThere are two solutions:
1. Disable PHP curl module on publishing host. If PHP curl module is disabled the site will use sockets for connection to RSS feed.
2. Verify and replace all RSS links in file /usr/local/sitebuilder/include/Modules/RssReader/Settings/channels_list.xml and then republish entire site's content.
Login to Parallels Plesk Sitebuilder server as root and open file /usr/local/sitebuilder/include/Modules/RssReader/Settings/channels_list.xml in file editor.
Find location of RSS channel and test the URL in your web browser or with curl. For example:
<rss>http://export.cnet.com/export/feeds/news/rss/1,11176,,00.xml'</rss> <== outdated RSS link
Open URL "http://export.cnet.com/export/feeds/news/rss/1,11176,,00.xml'" in web browser to see that the link is redirected to "http://news.cnet.com/2547-1_3-0-5.xml". Replace the URL in <rss> with valid URL "http://news.cnet.com/2547-1_3-0-5.xml":
<rss>http://news.cnet.com/2547-1_3-0-5.xml</rss> <== outdated RSS link
URLs in all RSS channels should be verified and replaced in the same way.
After file channels_list.xml was reconfigured it is recommended republishing entire content of your sites. For that opened the site in Wizard and changed to page "Publish", then mark enabled option "Republish the entire site content" and click "Publish".
Additional informationMake sure that option allow_url_fopen is enabled in /etc/php.ini on the publishing server:
~# grep allow_url_fopen /etc/php.ini
allow_url_fopen = On