Hi,

Ive been trying to search with little luck, but it seems as though the RSS Sidebox has a bug that causes it to error out if there isn't a cache file yet (page loads for the first time)

The line in question is the bold line, so it looks like somehow either the cache file is being closed before it's being created or it's because there should be an extra chmod statement


$content .= '<div id="staticRSSText">' . TEXT_STATIC_RSS_SIDEBOX . '</div>';
if (!$cache)
{ // need to create a cache file
//$content .= $content_for_cache;
if (file_exists($cache_file))
{
chmod($cache_file, 0777);
}
else {
// create cache file;
fopen($cache_file, "w");
}

if (is_writeable($cache_file)) {
fwrite(fopen($cache_file, "w"), $content_for_cache);
}

fclose($cache_file);

chmod($cache_file, 0644);


edit:

Warning: fclose(): supplied argument is not a valid stream resource in {site path} includes/templates/template_default/sideboxes/tpl_static_rss_sidebox.php on line 64