Article ID: 5420, created on Jul 2, 2008, last review on May 9, 2014

  • Applies to:
  • Plesk Sitebuilder 4.5 for Linux/Unix
  • Plesk Sitebuilder 4.2 for Linux/Unix

Symptoms

RSS 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:

/etc/php.ini
--->8---
error_reporting = E_ALL
display_errors = On

---8<---

The following error is shown on the published site:

--->8---
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
---8<---

Cause

List 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.

Resolution

There 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:

/usr/local/sitebuilder/include/Modules/RssReader/Settings/channels_list.xml
--->8---
<channel name='Cnet'>
      <title>CNET News.com</title>
      <url>http://www.news.com/</url>
      <rss>http://export.cnet.com/export/feeds/news/rss/1,11176,,00.xml'</rss>  <== outdated RSS link
</channel>

...
---8<---


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":

/usr/local/sitebuilder/include/Modules/RssReader/Settings/channels_list.xml
--->8---

<channel name='Cnet'>
      <title>CNET News.com</title>
      <url>http://www.news.com/</url>
      <rss>http://news.cnet.com/2547-1_3-0-5.xml</rss>  <== outdated RSS link
</channel>

...
---8<---


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 information

Make 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
~#

ea6a61e571a858aa6019ceb068ea403a d055be4fdc562a8ecb8e6d0bf419f946 fad6dc0c8e983c17ae70a51ac7952cd0 ab881cb3d56878b5e1f6f0473a841f71 f7f840260c1591440648a375a64b5b75 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article
Save as PDF