I am working on one project for a client who has several multisite installed in wordpress. Site is working well but I am experiencing a warning message when I click the Video link in home page.The message is shown below:
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
The code is defined in videos-page.php which is shown below:
// 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();
Everything works , video page shown, videos also play but warning message shown on top of the video page.
Any clue to solve this mystery will be really helpful.
Thanks in advance