Jump to:

1851 Posts in 1606 Topics by 561 members

Blog Module

SilverStripe Forums » Blog Module » Website error when browsing by date

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 1153 Views
  • mrwindupbird
    Avatar
    Community Member
    26 Posts

    Website error when browsing by date Link to this post

    I installed the Blog module and added the archive widget and when I click on the only month listed (I posted one blog entry as a placeholder) I get this very generic error...

    "Website Error

    Forbidden

    The website server has not been able to respond to your request."

    Did some searching and figured I should run ?isDev=1 to help debug, but when I do I get this error:

    "Action '2009' isn't allowed on class BlogHolder_Controller"

    Now sure where to go from here... I'm adept at computers but not a web designer by any means, so I'm figuring this all out as I go. Any help or pointers would be appreciated.

    Thanks!

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Website error when browsing by date Link to this post

    Have a look at http://silverstripe.org/blog-module-forum/show/265986 and the ticket - http://open.silverstripe.org/ticket/4376. I think you should be able to fix this by updating to a daily build of blog.

  • mrwindupbird
    Avatar
    Community Member
    26 Posts

    Re: Website error when browsing by date Link to this post

    Worked like a charm, thank so much!

  • mrwindupbird
    Avatar
    Community Member
    26 Posts

    Re: Website error when browsing by date Link to this post

    Ahhh wait!! I just clicked on the "subscribe via rss" module link and got the following error:

    "Action 'rss' isn't allowed on class BlogHolder_Controller"

    ...and just now I went to my /admin page to check some content in CMS and I got this enormous error....

    ------------------------------------------------------

    [User Error] DataObject::getComponent(): Unknown 1-to-1 component 'SideBar' on class 'BlogHolder'
    GET /admin

    Line 1059 in /home/mrwindup/www/www/sapphire/core/model/DataObject.php
    Source

    1050
    1051          // If no component exists, create placeholder object
    1052          if(!$component) {
    1053             $component = $this->createComponent($componentName);
    1054          }
    1055
    1056          $this->components[$componentName] = $component;
    1057          return $component;
    1058       } else {
    1059          user_error("DataObject::getComponent(): Unknown 1-to-1 component '$componentName' on class '$this->class'", E_USER_ERROR);
    1060       }
    1061    }
    1062
    1063    /**
    1064     * A cache used by component getting classes
    1065     * @var array

    Trace

    * DataObject::getComponent(): Unknown 1-to-1 component 'SideBar' on class 'BlogHolder'
    Line 1059 of DataObject.php
    * DataObject->getComponent(SideBar)
    Line 39 of WidgetAreaEditor.php
    * WidgetAreaEditor->Value()
    * call_user_func_array(Array,Array)
    Line 408 of ViewableData.php
    * ViewableData->XML_val(Value,,1)
    Line 19 of .cache.home.mrwindup.www.www.cms.templates.WidgetAreaEditor.ss
    * include(/home/mrwindup/www/www/silverstripe-cache/.cache.home.mrwindup.www.www.cms.templates.WidgetAreaEditor.ss)
    Line 354 of SSViewer.php
    * SSViewer->process(WidgetAreaEditor)
    Line 773 of ViewableData.php
    * ViewableData->renderWith(WidgetAreaEditor)
    Line 12 of WidgetAreaEditor.php
    * WidgetAreaEditor->FieldHolder()
    * call_user_func_array(Array,Array)
    Line 408 of ViewableData.php
    * ViewableData->XML_val(FieldHolder,,1)
    Line 74 of .cache.home.mrwindup.www.www.sapphire.templates.TabSetFieldHolder.ss
    * include(/home/mrwindup/www/www/silverstripe-cache/.cache.home.mrwindup.www.www.sapphire.templates.TabSetFieldHolder.ss)
    Line 354 of SSViewer.php
    * SSViewer->process(TabSet)
    Line 773 of ViewableData.php
    * ViewableData->renderWith(TabSetFieldHolder)
    Line 62 of TabSet.php
    * TabSet->FieldHolder()
    * call_user_func_array(Array,Array)
    Line 408 of ViewableData.php
    * ViewableData->XML_val(FieldHolder,,1)
    Line 59 of .cache.home.mrwindup.www.www.sapphire.templates.TabSetFieldHolder.ss
    * include(/home/mrwindup/www/www/silverstripe-cache/.cache.home.mrwindup.www.www.sapphire.templates.TabSetFieldHolder.ss)
    Line 354 of SSViewer.php
    * SSViewer->process(TabSet)
    Line 773 of ViewableData.php
    * ViewableData->renderWith(TabSetFieldHolder)
    Line 62 of TabSet.php
    * TabSet->FieldHolder()
    * call_user_func_array(Array,Array)
    Line 408 of ViewableData.php
    * ViewableData->XML_val(FieldHolder,,1)
    Line 70 of .cache.home.mrwindup.www.www.sapphire.templates.Includes.Form.ss
    * include(/home/mrwindup/www/www/silverstripe-cache/.cache.home.mrwindup.www.www.sapphire.templates.Includes.Form.ss)
    Line 354 of SSViewer.php
    * SSViewer->process(Form)
    Line 773 of ViewableData.php
    * ViewableData->renderWith(Array)
    Line 982 of Form.php
    * Form->forTemplate()
    Line 424 of ViewableData.php
    * ViewableData->XML_val(EditForm,,1)
    Line 14 of .cache.home.mrwindup.www.www.cms.templates.Includes.CMSMain_right.ss
    * include(/home/mrwindup/www/www/silverstripe-cache/.cache.home.mrwindup.www.www.cms.templates.Includes.CMSMain_right.ss)
    Line 354 of SSViewer.php
    * SSViewer->process(CMSMain)
    Line 773 of ViewableData.php
    * ViewableData->renderWith(Array)
    Line 484 of LeftAndMain.php
    * LeftAndMain->Right()
    * call_user_func_array(Array,Array)
    Line 408 of ViewableData.php
    * ViewableData->XML_val(Right,,1)
    Line 71 of .cache.home.mrwindup.www.www.cms.templates.LeftAndMain.ss
    * include(/home/mrwindup/www/www/silverstripe-cache/.cache.home.mrwindup.www.www.cms.templates.LeftAndMain.ss)
    Line 354 of SSViewer.php
    * SSViewer->process(CMSMain)
    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 277 of Director.php
    * Director::handleRequest(HTTPRequest,Session)
    Line 121 of Director.php
    * Director::direct(/admin)
    Line 118 of main.php

    ------------------------------------------------------

    ...I am a bit surprised that just updating the blog module could cause such damage to the whole of CMS... should I revert back to my old blog module or is there another workaround for this?

    Thanks for ALL your help!

  • mrwindupbird
    Avatar
    Community Member
    26 Posts

    Re: Website error when browsing by date Link to this post

    ...ok, so deleting the cache got me back into CMS *AND* fixed the RSS problem.

    Sorry for so many posts.... These last few days I have gone from never having made a website before to all this customization of templates and scripts and learning PHP and HTML and whathaveyou... it's a learning process...

    Thanks for your patience!

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