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.

Customising the CMS

popCurrent called on ModelAsController controller, but it wasn't at the top of the stack


3 Posts   1195 Views


4 July 2011 at 10:34pm Community Member, 4 Posts


I receive the error message above if a non-existent controller action is called. On the fronted-side the message "I can't handle sub-URLs of a JobList_Controller object." is issued (HTTP status 404) instead of showing the site's error page.

My controller looks basically like this:

class JobList_Controller extends StaticPage_Controller {

public static $allowed_actions = array(

public function init() {

public function view() {
// code here

Any ideas what's going wrong here?


5 July 2011 at 1:58am Community Member, 9 Posts

It can be becouse you error page in the site tree is not published, try to 'Save and Publish' it.


5 July 2011 at 2:02am Community Member, 4 Posts

The error page is published and gets displayed correctly - except for SiteTree_Controller subclasses that implement own actions.