17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1426 Views |
-
Can't Debug - Fatal Error

19 March 2008 at 5:46pm Last edited: 19 March 2008 5:47pm
Hey,
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.phpContentController->__construct()
line 167 of Director.phpDirector::getControllerForURL(/CompetitionPage_Controller/GetPageID)
line 67 of Director.phpDirector::direct(/CompetitionPage_Controller/GetPageID)
line 104 of main.php
Context
Debug (Debug::showError() in line 149 of Debug.php)Am I doing something wrong?
-
Re: Can't Debug - Fatal Error

20 March 2008 at 8:55am
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.
| 1426 Views | ||
|
Page:
1
|
Go to Top |

