我正在为一个客户做一个项目,他在wordpress中安装了几个多站点。该网站运行良好,但当我单击主页中的视频链接时,我收到一条警告消息。消息如下所示:
rocktron Uk
Warning: file_put_contents(cache/ecd2071956f5730430b8b710d168a85d.spc) [function.file-put-contents]: failed to open stream: Permission denied in /home/default/rktron.devstars.net/user/htdocs/simplepie.inc on line 8671
Warning: cache is not writeable. Make sure you\'ve set the correct relative or absolute path, and that the location is server-writable. in /home/default/rktron.devstars.net/user/htdocs/simplepie.inc on line 1780
代码在视频页面中定义。php,如下所示:
// YouTube RSS URL via FeedBurner: http://feeds.feedburner.com/rocktron
require_once(getenv("DOCUMENT_ROOT"). \'/simplepie.inc\');
$feed = new SimplePie();
$feed->set_feed_url(array(\'http://feeds.feedburner.com/rocktron\'));
$feed->enable_cache(true);
$feed->set_cache_location(\'cache\');
$feed->set_cache_duration(1800);
$feed->init();
$feed->handle_content_type();
一切正常,视频页面显示,视频也播放,但警告信息显示在视频页面顶部。
任何解开这个谜团的线索都会很有帮助。
提前感谢