Jump to:

23003 Posts in 11856 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » [Warning] Error running : page 'Blog' couldn't be found

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: 824 Views
  • vogels
    Avatar
    Community Member
    13 Posts

    [Warning] Error running : page 'Blog' couldn't be found Link to this post

    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

  • vogels
    Avatar
    Community Member
    13 Posts

    Re: [Warning] Error running : page 'Blog' couldn't be found Link to this post

    Found the problem thread can be removed....

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

    824 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.