Jump to:

23491 Posts in 18996 Topics by 2878 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: 897 Views
  • vogels
    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

    63     */
    64    public function ChildrenOf($parentRef) {
    65       $SQL_parentRef = Convert::raw2sql($parentRef);
    66       $parent = DataObject::get_one('SiteTree', "URLSegment = '$SQL_parentRef'");
    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       }
    75    }
    77    public function Page($url) {
    78       $SQL_url = Convert::raw2sql($url);
    •Error running <% control ChildrenOf(Blog) %>: page 'Blog' couldn't be found
    Line 72 of ContentController.php

    Line 550 of ViewableData.php
    Line 1002 of ViewableData.php
    Line 591 of ViewableData.php
    Line 79 of .cacheC..inetpub.wwwroot.silverstripe.themes.charity.templates.Page.ss
    Line 354 of SSViewer.php
    Line 175 of Controller.php
    Line 129 of RequestHandler.php
    Line 122 of Controller.php
    Line 29 of ModelAsController.php
    Line 44 of RootURLController.php
    Line 277 of Director.php
    Line 121 of Director.php
    Line 118 of main.php
    Line 71 of index.php

    Tryed deleting and recreating but nothin works.


  • vogels
    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

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.