$error_page = $this->Page->find('first', array('conditions'=>array('Page.site_id'=>$this->site['id'], 'Page.is_error_page'=>1)));// we set this to the default 404 page for this site. $this->set('current_page', $error_page['Page']['id']);
$error_page = array()
AppController::beforeRender() - APP/Controller/AppController.php, line 82
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 248
Controller::render() - CORE/Cake/Controller/Controller.php, line 921
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 274
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 198
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 176
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 123
call_user_func - [internal], line ??
ErrorHandler::handleFatalError() - CORE/Cake/Error/ErrorHandler.php, line 234
ErrorHandler::handleError() - CORE/Cake/Error/ErrorHandler.php, line 184
call_user_func - [internal], line ??
App::_checkFatalError() - CORE/Cake/Core/App.php, line 926
App::shutdown() - CORE/Cake/Core/App.php, line 899
[main] - [internal], line ??
Errors
Notice (8): Undefined variable: page [APP/View/Layouts/xhtml.ctp, line 17]
include - APP/View/Layouts/xhtml.ctp, line 17
View::_evaluate() - CORE/Cake/View/View.php, line 947
View::_render() - CORE/Cake/View/View.php, line 909
View::renderLayout() - CORE/Cake/View/View.php, line 535
View::render() - CORE/Cake/View/View.php, line 479
Controller::render() - CORE/Cake/Controller/Controller.php, line 948
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 274
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 198
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 176
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 123
call_user_func - [internal], line ??
ErrorHandler::handleFatalError() - CORE/Cake/Error/ErrorHandler.php, line 234
ErrorHandler::handleError() - CORE/Cake/Error/ErrorHandler.php, line 184
call_user_func - [internal], line ??
App::_checkFatalError() - CORE/Cake/Core/App.php, line 926
App::shutdown() - CORE/Cake/Core/App.php, line 899
[main] - [internal], line ??
Notice (8): Undefined variable: page [APP/View/Layouts/xhtml.ctp, line 24]
include - APP/View/Layouts/xhtml.ctp, line 24
View::_evaluate() - CORE/Cake/View/View.php, line 947
View::_render() - CORE/Cake/View/View.php, line 909
View::renderLayout() - CORE/Cake/View/View.php, line 535
View::render() - CORE/Cake/View/View.php, line 479
Controller::render() - CORE/Cake/Controller/Controller.php, line 948
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 274
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 198
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 176
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 123
call_user_func - [internal], line ??
ErrorHandler::handleFatalError() - CORE/Cake/Error/ErrorHandler.php, line 234
ErrorHandler::handleError() - CORE/Cake/Error/ErrorHandler.php, line 184
call_user_func - [internal], line ??
App::_checkFatalError() - CORE/Cake/Core/App.php, line 926
App::shutdown() - CORE/Cake/Core/App.php, line 899
[main] - [internal], line ??
Notice (8): Undefined variable: page [APP/View/Layouts/xhtml.ctp, line 28]
// THIS IS WHERE THE ACTUAL TEMPLATE COMESecho $this->element('templates/'.$page['Page']['template'], array('content_for_layout'=>$content_for_layout, 'page'=>$page));
include - APP/View/Layouts/xhtml.ctp, line 28
View::_evaluate() - CORE/Cake/View/View.php, line 947
View::_render() - CORE/Cake/View/View.php, line 909
View::renderLayout() - CORE/Cake/View/View.php, line 535
View::render() - CORE/Cake/View/View.php, line 479
Controller::render() - CORE/Cake/Controller/Controller.php, line 948
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 274
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 198
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 176
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 123
call_user_func - [internal], line ??
ErrorHandler::handleFatalError() - CORE/Cake/Error/ErrorHandler.php, line 234
ErrorHandler::handleError() - CORE/Cake/Error/ErrorHandler.php, line 184
call_user_func - [internal], line ??
App::_checkFatalError() - CORE/Cake/Core/App.php, line 926
App::shutdown() - CORE/Cake/Core/App.php, line 899
[main] - [internal], line ??
Notice (8): Undefined variable: page [APP/View/Layouts/xhtml.ctp, line 28]
// THIS IS WHERE THE ACTUAL TEMPLATE COMESecho $this->element('templates/'.$page['Page']['template'], array('content_for_layout'=>$content_for_layout, 'page'=>$page));
include - APP/View/Layouts/xhtml.ctp, line 28
View::_evaluate() - CORE/Cake/View/View.php, line 947
View::_render() - CORE/Cake/View/View.php, line 909
View::renderLayout() - CORE/Cake/View/View.php, line 535
View::render() - CORE/Cake/View/View.php, line 479
Controller::render() - CORE/Cake/Controller/Controller.php, line 948
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 274
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 198
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 176
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 123
call_user_func - [internal], line ??
ErrorHandler::handleFatalError() - CORE/Cake/Error/ErrorHandler.php, line 234
ErrorHandler::handleError() - CORE/Cake/Error/ErrorHandler.php, line 184
call_user_func - [internal], line ??
App::_checkFatalError() - CORE/Cake/Core/App.php, line 926
App::shutdown() - CORE/Cake/Core/App.php, line 899
[main] - [internal], line ??
Notice (1024): Element Not Found: Elements/templates/.ctp [CORE/Cake/View/View.php, line 421]
View::element() - CORE/Cake/View/View.php, line 421
include - APP/View/Layouts/xhtml.ctp, line 28
View::_evaluate() - CORE/Cake/View/View.php, line 947
View::_render() - CORE/Cake/View/View.php, line 909
View::renderLayout() - CORE/Cake/View/View.php, line 535
View::render() - CORE/Cake/View/View.php, line 479
Controller::render() - CORE/Cake/Controller/Controller.php, line 948
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 274
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 198
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 176
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 123
call_user_func - [internal], line ??
ErrorHandler::handleFatalError() - CORE/Cake/Error/ErrorHandler.php, line 234
ErrorHandler::handleError() - CORE/Cake/Error/ErrorHandler.php, line 184
call_user_func - [internal], line ??
App::_checkFatalError() - CORE/Cake/Core/App.php, line 926
Notice (8): Undefined variable: page [APP/View/Layouts/xhtml.ctp, line 31]
include - APP/View/Layouts/xhtml.ctp, line 31
View::_evaluate() - CORE/Cake/View/View.php, line 947
View::_render() - CORE/Cake/View/View.php, line 909
View::renderLayout() - CORE/Cake/View/View.php, line 535
View::render() - CORE/Cake/View/View.php, line 479
Controller::render() - CORE/Cake/Controller/Controller.php, line 948
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 274
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 198
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 176
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 123
call_user_func - [internal], line ??
ErrorHandler::handleFatalError() - CORE/Cake/Error/ErrorHandler.php, line 234
ErrorHandler::handleError() - CORE/Cake/Error/ErrorHandler.php, line 184
call_user_func - [internal], line ??
App::_checkFatalError() - CORE/Cake/Core/App.php, line 926
App::shutdown() - CORE/Cake/Core/App.php, line 899
[main] - [internal], line ??