Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Blog Module /

Discuss the Blog Module.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

[Warning] file_get_contents() [function.file-get-contents]:

Go to End

3 Posts   10365 Views


Community Member, 35 Posts

16 April 2009 at 5:56am

Edited: 16/04/2009 9:56am

When i want go on blog page, i have this error

[Warning] file_get_contents() [function.file-get-contents]: Filename cannot be empty
GET /new-blogentry/?stage=Live

Line 277 in /home/groupecgl/www/sapphire/core/SSViewer.php

268 	/**
269 	 * Used by <% include Identifier %> statements to get the full
270 	 * unparsed content of a template file.
271 	 * 
272 	 * @uses getTemplateFile()
273 	 * @param string $identifier A template name without '.ss' extension or path.
274 	 * @return string content of template
275 	 */
276 	public static function getTemplateContent($identifier) {
277 		return file_get_contents(SSViewer::getTemplateFile($identifier));
278 	}
280 	/**
281 	 * @ignore
282 	 */
283 	static private $flushed = false;

I have added it SSViewer::set_theme(''); in _config.php of blog
and now i don't have error.

But i dont see articles of the blog


Community Member, 18 Posts

7 May 2009 at 6:25am

Edited: 07/05/2009 6:38am

I have this same issue, any ideas as to how to solve it ? Only happens when I use a theme other than blackcandy..


Community Member, 15 Posts

7 May 2009 at 7:01pm