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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   11275 Views

Avatar
astate

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
Source

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 	}
279 	
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

Avatar
Ryoken

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

Avatar
Varberg

Community Member, 15 Posts

7 May 2009 at 7:01pm