Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » the method 'parent' does not exist on 'EventTimeDetailsController'

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 970 Views
  • Jarek
    Avatar
    Community Member
    30 Posts

    the method 'parent' does not exist on 'EventTimeDetailsController' Link to this post

    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.

  • ajshort
    Avatar
    Community Member
    244 Posts

    Re: the method 'parent' does not exist on 'EventTimeDetailsController' Link to this post

    Could you post the full backtrace for the error?

  • Jarek
    Avatar
    Community Member
    30 Posts

    Re: the method 'parent' does not exist on 'EventTimeDetailsController' Link to this post

    [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

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