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, biapar, Willr, Ingo, swaiba, simon_w

Please help installation probs, cant find template file


Reply

3 Posts   881 Views

Avatar
b0bro

10 August 2009 at 4:06pm (Last edited: 10 August 2009 4:10pm), Community Member, 38 Posts

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

*******************************************************************************

Avatar
Willr

10 August 2009 at 5:11pm Forum Moderator, 5511 Posts

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;

Avatar
b0bro

10 August 2009 at 5:20pm Community Member, 38 Posts

Thank you, that worked!