Jump to:

928 Posts in 247 Topics by 302 members

Blog Module

SilverStripe Forums » Blog Module » [Warning] file_get_contents() [function.file-get-contents]:

Discuss the Blog Module.

Page: 1
Go to End
Author Topic: [Warning] file_get_contents() [function.file-get-contents]: 3204 Views
  • astate
    avatar
    Community Member
    28 posts

    [Warning] file_get_contents() [function.file-get-contents]: Link to this post

    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

  • Ryoken
    avatar
    Community Member
    9 posts

    Re: [Warning] file_get_contents() [function.file-get-contents]: Link to this post

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

  • Varberg
    avatar
    Community Member
    15 posts
    3204 Views
Page: 1
Go to Top

Currently Online: There is nobody online.

Welcome to our latest member: frank09

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.