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.

General Questions /

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

SS_Viewer warnings and notices


Reply


3 Posts   1169 Views

Avatar
Room9

Community Member, 19 Posts

26 April 2011 at 9:49am

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?

Avatar
simon_w

Forum Moderator, 474 Posts

26 April 2011 at 11:02am

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.

Avatar
Room9

Community Member, 19 Posts

27 April 2011 at 9:20am

Thanks Simon,

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