Jump to:

23023 Posts in 11882 Topics by 2830 members

General Questions

SilverStripe Forums » General Questions » SS_Viewer warnings and notices

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 969 Views
  • Room9
    Avatar
    Community Member
    19 Posts

    SS_Viewer warnings and notices Link to this post

    On my test site I'm getting the following:

    Warning: file_get_contents() [function.file-get-contents]: Filename cannot be empty
    At line 384 in /home/[edit]/releases/20110421000000/sapphire/core/SSViewer.php

    file_get_contents()
    Line 384 of SSViewer.php
    SSViewer->process(HomePage_Controller)
    Line 202 of Controller.php
    Controller->handleAction(SS_HTTPRequest)
    Line 143 of RequestHandler.php
    RequestHandler->handleRequest(SS_HTTPRequest)
    Line 147 of Controller.php
    Controller->handleRequest(SS_HTTPRequest)
    Line 199 of ContentController.php
    ContentController->handleRequest(SS_HTTPRequest)
    Line 67 of ModelAsController.php
    ModelAsController->handleRequest(SS_HTTPRequest)
    Line 111 of RootURLController.php
    RootURLController->handleRequest(SS_HTTPRequest)
    Line 282 of Director.php
    Director::handleRequest(SS_HTTPRequest,Session)
    Line 125 of Director.php
    Director::direct(/)
    Line 127 of main.php

    and

    Notice: Undefined offset: 0
    At line 373 in /home/[edit]/releases/20110421000000/sapphire/core/SSViewer.php

    SSViewer->process(HomePage_Controller)
    Line 202 of Controller.php
    Controller->handleAction(SS_HTTPRequest)
    Line 143 of RequestHandler.php
    RequestHandler->handleRequest(SS_HTTPRequest)
    Line 147 of Controller.php
    Controller->handleRequest(SS_HTTPRequest)
    Line 199 of ContentController.php
    ContentController->handleRequest(SS_HTTPRequest)
    Line 67 of ModelAsController.php
    ModelAsController->handleRequest(SS_HTTPRequest)
    Line 111 of RootURLController.php
    RootURLController->handleRequest(SS_HTTPRequest)
    Line 282 of Director.php
    Director::handleRequest(SS_HTTPRequest,Session)
    Line 125 of Director.php
    Director::direct(/)
    Line 127 of main.php

    What do these mean?

  • simon_w
    Avatar
    Forum Moderator
    467 Posts

    Re: SS_Viewer warnings and notices Link to this post

    Usually, it means it can't find an include file. Probably in your HomePage.ss, you've got an <% include Blah %>, but there's not Blah.ss in an Includes folder.

  • Room9
    Avatar
    Community Member
    19 Posts

    Re: SS_Viewer warnings and notices Link to this post

    Thanks Simon,

    I don't have any missing includes I think so I'll have to check further. Cheers.

    969 Views
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.