1770 Posts in 495 Topics by 531 members
Blog Module
SilverStripe Forums » Blog Module » Please help installation probs, cant find template file
Discuss the Blog Module.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 765 Views |
-
Please help installation probs, cant find template file

10 August 2009 at 4:06pm Last edited: 10 August 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
Source268 /**
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;*******************************************************************************
-
Re: Please help installation probs, cant find template file

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;
-
Re: Please help installation probs, cant find template file

10 August 2009 at 5:20pm
Thank you, that worked!
| 765 Views | ||
|
Page:
1
|
Go to Top |


