Jump to:

1851 Posts in 1606 Topics by 561 members

Blog Module

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

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 8701 Views
  • astate
    Community Member
    35 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

    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;

    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
    Community Member
    18 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
    Community Member
    15 Posts
Page: 1
Go to Top

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

Comments on this website? Please give feedback.