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.

Blog Module /

Discuss the Blog Module.

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

Please help installation probs, cant find template file

Go to End

3 Posts   1279 Views


Community Member, 38 Posts

10 August 2009 at 4:06pm

Edited: 10/08/2009 4:10pm

The Blog seems to work fine in the cms, i can create a blogholder and modify the settings etc.

However when i navigate to the blog page on my site i get the following error. Have done a db/build/?flush=1 and flushed the site. Any ideas???


[Warning] file_get_contents() [function.file-get-contents]: Filename cannot be empty
GET /pixelchildv2/blog/

Line 277 in C:\xampp\htdocs\pixelchildv2\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;



Forum Moderator, 5523 Posts

10 August 2009 at 5:11pm

perhaps try wrapping that in a file_exists so that it doesn't call it if it doesn't exist

return (file_exists(SSViewer::getTemplateFile($identifier)) ? file_get_contents(SSViewer::getTemplateFile($identifier)) : false;


Community Member, 38 Posts

10 August 2009 at 5:20pm

Thank you, that worked!