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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Blog Module /

Discuss the Blog Module.

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

Lost blogs - the method 'sidebar' does not exist on 'Page' GET /to-do-list-2/


Go to End


4 Posts   1645 Views

Avatar
evski

Community Member, 6 Posts

19 June 2011 at 4:33pm


I recently attempted an upgrade of blog module which I "backed out of " and now my online blog only shows one blog entry ( there were over 10 ) and if I clock on that link get the following error;

Any ideas appreciated

EVan

[User Error] Uncaught Exception: Object->__call(): the method 'sidebar' does not exist on 'Page'
GET /to-do-list-2/

Line 551 in /home/nzsnow/lilymax/sapphire/core/Object.php
Source

542 case isset($config['function']) :
543 return $config['function']($this, $arguments);
544
545 default :
546 throw new Exception (
547 "Object->__call(): extra method $method is invalid on $this->class:" . var_export($config, true)
548 );
549 }
550 } else {
551 throw new Exception("Object->__call(): the method '$method' does not exist on '$this->class'");
552 }
553 }
554
555 // -----------------------------------------------------------------------------------------------------------------
556
557 /**

Trace

Object->__call(SideBar,Array)
Line 116 of BlogEntry.php
Page->SideBar()
Line 116 of BlogEntry.php
BlogEntry->SideBar()
Line 525 of Object.php
Object->__call(Array,Array)
BlogEntry_Controller->SideBar(SideBar,Array)
Line 408 of ViewableData.php
ViewableData->XML_val()
Line 6 of .cache.home.nzsnow.lilymax.blog.templates.Layout.BlogEntry.ss
include(/home/nzsnow/lilymax/silverstripe-cache/.cache.home.nzsnow.lilymax.blog.templates.Layout.BlogEntry.ss)
Line 354 of SSViewer.php
SSViewer->process(Array,Array)
Line 346 of SSViewer.php
SSViewer->process(SideBar,,1)
Line 175 of Controller.php
Controller->handleAction(BlogEntry_Controller)
Line 129 of RequestHandler.php
RequestHandler->handleRequest(BlogEntry_Controller)
Line 122 of Controller.php
Controller->handleRequest(HTTPRequest)
Line 29 of ModelAsController.php
ModelAsController->handleRequest(HTTPRequest)
Line 277 of Director.php
Director::handleRequest(HTTPRequest)
Line 121 of Director.php
Director::direct(HTTPRequest)
Line 118 of main.php

Avatar
evski

Community Member, 6 Posts

19 June 2011 at 4:56pm

Interestingly enough i seem to have lost my "Tag" and "Archive" widgets. I cant seem to work out how to edit my widgets in the Blog either .....

Avatar
evski

Community Member, 6 Posts

26 June 2011 at 6:53pm

Help still no resolution to this issue I have spent quit ea while trying to work it out and no success

Avatar
Willr

Forum Moderator, 5523 Posts

8 July 2011 at 5:20pm

the method 'sidebar' does not exist on 'Page'

When you removed the blog module, all the blog entries would have reverted back to Page objects. You will need to install the blog module, then go back through your pages again make sure they are the correct page type ('Blog Entry'. Some data may have been lost but you should be able to revert those pages back using the version history in the CMS.