Jump to:

17452 Posts in 4473 Topics by 1971 members


SilverStripe Forums » Archive » Can't Debug - Fatal Error

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 1567 Views
  • Josh
    SilverStripe Developer
    65 Posts

    Can't Debug - Fatal Error Link to this post


    Trying to create my first SS plugin - A competition system.

    Followed the doku for debugging but can't seem to debug my subclasses/functions

    I am going to http://localhost:8888/mysilverstripesite/CompetitionPage_Controller/TestFunction and getting the error (I get this same error for any page controllers)

    FATAL ERROR: Missing argument 1 for ContentController::__construct(), called in /Applications/MAMP/localhost/tearaway_ss/sapphire/core/control/Director.php on line 167 and defined
    At line 23 in /Applications/MAMP/localhost/tearaway_ss/sapphire/core/control/ContentController.php

    line 167 of Director.php

    line 67 of Director.php

    line 104 of main.php
    Debug (Debug::showError() in line 149 of Debug.php)

    Am I doing something wrong?

  • Josh
    SilverStripe Developer
    65 Posts

    Re: Can't Debug - Fatal Error Link to this post

    In the above example i've created a function as follows

    function GetPageID() {
    Debug::message("Echo from inside get page id");

    I'm just trying to echo some text to see if it's even working.

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.