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

[Warning] Error running : page 'Blog' couldn't be found


Reply


2 Posts   1010 Views

Avatar
vogels

Community Member, 13 Posts

3 March 2010 at 10:02am

Hello there,

I was changing text in the siverstipe theme (charity) that i was addapting. When i published the site i now get this error :

------------------------------------------------------------------------------------------------------------------
[Warning] Error running : page 'Blog' couldn't be found
GET /silverstripe/index.php
Line 72 in C:\inetpub\wwwroot\silverstripe\sapphire\core\control\ContentController.php

Source
63     */
64    public function ChildrenOf($parentRef) {
65       $SQL_parentRef = Convert::raw2sql($parentRef);
66       $parent = DataObject::get_one('SiteTree', "URLSegment = '$SQL_parentRef'");
67
68       if(!$parent && is_numeric($parentRef)) $parent = DataObject::get_by_id('SiteTree', $SQL_parentRef);
69       if($parent) {
70          return $parent->Children();
71       } else {
72          user_error("Error running <% control ChildrenOf($parentRef) %>: page '$parentRef' couldn't be found", E_USER_WARNING);
73       }
74
75    }
76
77    public function Page($url) {
78       $SQL_url = Convert::raw2sql($url);
Trace
•Error running <% control ChildrenOf(Blog) %>: page 'Blog' couldn't be found
Line 72 of ContentController.php
•ContentController->ChildrenOf(Blog)

•call_user_func_array(Array,Array)
Line 550 of ViewableData.php
•ViewableData->cachedCall(ChildrenOf,,Array)
Line 1002 of ViewableData.php
•ViewableData_Customised->cachedCall(ChildrenOf,,Array)
Line 591 of ViewableData.php
•ViewableData->hasValue(ChildrenOf,Array)
Line 79 of .cacheC..inetpub.wwwroot.silverstripe.themes.charity.templates.Page.ss
•include(C:\inetpub\wwwroot\silverstripe\silverstripe-cache\.cacheC..inetpub.wwwroot.silverstripe.themes.charity.templates.Page.ss)
Line 354 of SSViewer.php
•SSViewer->process(Page_Controller)
Line 175 of Controller.php
•Controller->handleAction(HTTPRequest)
Line 129 of RequestHandler.php
•RequestHandler->handleRequest(HTTPRequest)
Line 122 of Controller.php
•Controller->handleRequest(HTTPRequest)
Line 29 of ModelAsController.php
•ModelAsController->handleRequest(HTTPRequest)
Line 44 of RootURLController.php
•RootURLController->handleRequest(HTTPRequest)
Line 277 of Director.php
•Director::handleRequest(HTTPRequest,Session)
Line 121 of Director.php
•Director::direct()
Line 118 of main.php
•require_once(C:\inetpub\wwwroot\silverstripe\sapphire\main.php)
Line 71 of index.php
------------------------------------------------------------------------------------------------------------------

Tryed deleting and recreating but nothin works.

Hellllllp

Avatar
vogels

Community Member, 13 Posts

3 March 2010 at 10:09am

Found the problem thread can be removed....

It was as simple as changing a small H in a capital H