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.

All other Modules /

Discuss all other Modules here.

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

the method 'parent' does not exist on 'EventTimeDetailsController'


Reply


3 Posts   1065 Views

Avatar
Jarek

Community Member, 30 Posts

27 April 2012 at 11:12pm

Hello,

in event management module when I try to open event details I'm getting error:

[User Error] Uncaught Exception: Object->__call(): the method 'parent' does not exist on 'EventTimeDetailsController'
GET /new-calendar/impreza-druga/details/5

what is wrong? How should I fix this. To solve it I've added to class EventTimeDetailsController method parent():

public function parent()
{
return $this->parent;
}

but I don't know if it is correct way to do fix this.

Avatar
ajshort

Community Member, 244 Posts

28 April 2012 at 10:28pm

Could you post the full backtrace for the error?

Avatar
Jarek

Community Member, 30 Posts

30 April 2012 at 9:46pm

[User Error] Uncaught Exception: Object->__call(): the method 'parent' does not exist on 'EventTimeDetailsController'
GET /new-calendar/event/details/4

Line 724 in .../sapphire/core/Object.php
Source
715             
716             default :
717                throw new Exception (
718                   "Object->__call(): extra method $method is invalid on $this->class:" . var_export($config, true)
719                );
720          }
721       } else {
722          // Please do not change the exception code number below.
723          
724          throw new Exception("Object->__call(): the method '$method' does not exist on '$this->class'", 2175);
725       }
726    }
727    
728    // -----------------------------------------------------------------------------------------------------------------
729    
730    /**
Trace
Object->__call(parent,Array)
Line 181 of Page.php
EventTimeDetailsController->parent()
Line 181 of Page.php
Page_Controller->ownSumbenu()
Line 369 of ViewableData.php
ViewableData->obj(ownSumbenu,,,1,)
Line 411 of ViewableData.php
ViewableData->cachedCall(ownSumbenu,,)
Line 812 of ViewableData.php
ViewableData_Customised->cachedCall(ownSumbenu,)
Line 424 of ViewableData.php
ViewableData->hasValue(ownSumbenu)
Line 85 of .cache.themes.brown.templates.Page.ss
include(/tmp/silverstripe-cache-xxx/.cache.themes.brown.templates.Page.ss)
Line 420 of SSViewer.php
SSViewer->process(EventTimeDetailsController)
Line 32 of EventTimeDetailsController.php
EventTimeDetailsController->index(SS_HTTPRequest)
Line 143 of RequestHandler.php
RequestHandler->handleRequest(SS_HTTPRequest)
Line 147 of Controller.php
Controller->handleRequest(SS_HTTPRequest)
Line 199 of ContentController.php
ContentController->handleRequest(SS_HTTPRequest)
Line 161 of RequestHandler.php
RequestHandler->handleRequest(SS_HTTPRequest)
Line 147 of Controller.php
Controller->handleRequest(SS_HTTPRequest)
Line 199 of ContentController.php
ContentController->handleRequest(SS_HTTPRequest)
Line 184 of ContentController.php
ContentController->handleRequest(SS_HTTPRequest)
Line 67 of ModelAsController.php
ModelAsController->handleRequest(SS_HTTPRequest)
Line 282 of Director.php
Director::handleRequest(SS_HTTPRequest,Session)
Line 125 of Director.php
Director::direct(/new-calendar/event/details/4)
Line 127 of main.php