Undefined index: Page
-
/home/sebamed/public_html/VectorCMS/View/Helper/HtmlHelper.php : 1348
13411342 $activePage = $pageInstance->find('first', [1343 'conditions' => [1344 'Page.id' => $pageData['page_id'] ]1345 ]1346 );13471348 array_unshift($breadcrumbs, [ !empty($activePage['Page']['title_short']) ? $activePage['Page']['title_short'] : $activePage['Page']['title'] => $activePage['Page']['slug'] ]);1349 }1350 }13511352 # Recursivelly add parents1353 $parent = $activePage;1354 while (true) {1355 $parent = $pageInstance->getParentNode($parent['Page']['id']);1356 if (empty($parent['Page']['parent_id'])) {
-
AppErrorHandler
::
handleError
(
integer: 8
, Undefined index: Page
, /home/sebamed/public_html/VectorCMS/View/Helper/HtmlHelper.php
, integer: 1348
, HUGE Array
)
/home/sebamed/public_html/VectorCMS/View/Helper/HtmlHelper.php : 134813411342 $activePage = $pageInstance->find('first', [1343 'conditions' => [1344 'Page.id' => $pageData['page_id'] ]1345 ]1346 );13471348 array_unshift($breadcrumbs, [ !empty($activePage['Page']['title_short']) ? $activePage['Page']['title_short'] : $activePage['Page']['title'] => $activePage['Page']['slug'] ]);1349 }1350 }13511352 # Recursivelly add parents1353 $parent = $activePage;1354 while (true) {1355 $parent = $pageInstance->getParentNode($parent['Page']['id']);1356 if (empty($parent['Page']['parent_id'])) { -
HtmlHelper
➝
generateBreadcrumbs
(
Array
(
)
)
/home/sebamed/public_html/VectorCMS/View/Layouts/front.ctp(45) : eval()'d code : 1 -
eval
(
)
/home/sebamed/public_html/VectorCMS/View/Layouts/front.ctp : 4538 $documentTitle = array_reverse($documentTitle);39 }40 }4142 # Render the page43 if (!empty($html)) {44 ob_start();45 eval('?>' . $html);46 $pageContent = ob_get_clean();4748 # No page supplied, show admin login49 } else {50 header('Location: ' . BACK_BASE_URL);51 exit;52 }53 -
include
(
/home/sebamed/public_html/VectorCMS/View/Layouts/front.ctp
)
/home/sebamed/public_html/lib/Cake/View/View.php : 971964 * @return string Rendered output965 */966 protected function _evaluate($viewFile, $dataForView) {967 $this->__viewFile = $viewFile;968 extract($dataForView);969 ob_start();970971 include $this->__viewFile;972973 unset($this->__viewFile);974 return ob_get_clean();975 }976977 /**978 * Loads a helper. Delegates to the `HelperCollection::load()` to load the helper979 * -
View
➝
_evaluate
(
/home/sebamed/public_html/VectorCMS/View/Layouts/front.ctp
, HUGE Array
)
/home/sebamed/public_html/lib/Cake/View/View.php : 933926 $this->_current = $viewFile;927 $initialBlocks = count($this->Blocks->unclosed());928929 $eventManager = $this->getEventManager();930 $beforeEvent = new CakeEvent('View.beforeRenderFile', $this, array($viewFile));931932 $eventManager->dispatch($beforeEvent);933 $content = $this->_evaluate($viewFile, $data);934935 $afterEvent = new CakeEvent('View.afterRenderFile', $this, array($viewFile, $content));936937 $afterEvent->modParams = 1;938 $eventManager->dispatch($afterEvent);939 $content = $afterEvent->data[1];940941 if (isset($this->_parents[$viewFile])) { -
View
➝
_render
(
/home/sebamed/public_html/VectorCMS/View/Layouts/front.ctp
)
/home/sebamed/public_html/lib/Cake/View/View.php : 473466 if ($this->hasRendered) {467 return null;468 }469470 if ($view !== false && $viewFileName = $this->_getViewFileName($view)) {471 $this->_currentType = static::TYPE_VIEW;472 $this->getEventManager()->dispatch(new CakeEvent('View.beforeRender', $this, array($viewFileName)));473 $this->Blocks->set('content', $this->_render($viewFileName));474 $this->getEventManager()->dispatch(new CakeEvent('View.afterRender', $this, array($viewFileName)));475 }476477 if ($layout === null) {478 $layout = $this->layout;479 }480 if ($layout && $this->autoLayout) {481 $this->Blocks->set('content', $this->renderLayout('', $layout)); -
View
➝
render
(
/Layouts/front
, (null value)
)
/home/sebamed/public_html/lib/Cake/Controller/Controller.php : 961954 list($plugin) = pluginSplit(App::location($className));955 $this->request->params['models'][$currentObject->alias] = compact('plugin', 'className');956 $this->View->validationErrors[$currentObject->alias] =& $currentObject->validationErrors;957 }958 }959960 $this->autoRender = false;961 $this->response->body($this->View->render($view, $layout));962 return $this->response;963 }964965 /**966 * Returns the referring URL for this request.967 *968 * @param string $default Default URL to use if HTTP_REFERER cannot be read from headers969 * @param bool $local If true, restrict referring URLs to local server -
Controller
➝
render
(
/Layouts/front
)
/home/sebamed/public_html/VectorCMS/Controller/FrontController.php : 208201 }202203 # Handle custom logic after the page has been read from the database204 $this->afterPage();205206 $this->set('html', $html);207 if (get_class($this) === 'FrontController') {208 $this->render('/Layouts/front');209 }210211 } catch (NotFoundException $ex) {212 $this->redirect('/404');213 }214 }215216 # ~ Handle cms tags parsing- - - - - - - - - - - - - - - - - - - - - - - - - - # -
FrontController
➝
beforeFilter
(
HUGE CakeEvent
)
/home/sebamed/public_html/lib/Cake/Event/CakeEventManager.php : 243236 foreach ($listeners as $listener) {237 if ($event->isStopped()) {238 break;239 }240 if ($listener['passParams'] === true) {241 $result = call_user_func_array($listener['callable'], $event->data);242 } else {243 $result = call_user_func($listener['callable'], $event);244 }245 if ($result === false) {246 $event->stopPropagation();247 }248 if ($result !== null) {249 $event->result = $result;250 }251 } -
CakeEventManager
➝
dispatch
(
HUGE CakeEvent
)
/home/sebamed/public_html/lib/Cake/Controller/Controller.php : 677670 * - triggers Component `startup` methods.671 *672 * @return void673 * @triggers Controller.initialize $this674 * @triggers Controller.startup $this675 */676 public function startupProcess() {677 $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));678 $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));679 }680681 /**682 * Perform the various shutdown processes for this controller.683 * Fire the Components and Controller callbacks in the correct order.684 *685 * - triggers the component `shutdown` callback. -
Controller
➝
startupProcess
(
)
/home/sebamed/public_html/lib/Cake/Routing/Dispatcher.php : 189182 *183 * @param Controller $controller Controller to invoke184 * @param CakeRequest $request The request object to invoke the controller for.185 * @return CakeResponse the resulting response object186 */187 protected function _invoke(Controller $controller, CakeRequest $request) {188 $controller->constructClasses();189 $controller->startupProcess();190191 $response = $controller->response;192 $render = true;193 $result = $controller->invokeAction($request);194 if ($result instanceof CakeResponse) {195 $render = false;196 $response = $result;197 } -
Dispatcher
➝
_invoke
(
HUGE FrontController
, CakeRequest Object
(
[params] => Array
(
…
)
/home/sebamed/public_html/lib/Cake/Routing/Dispatcher.php : 167160 if (!($controller instanceof Controller)) {161 throw new MissingControllerException(array(162 'class' => Inflector::camelize($request->params['controller']) . 'Controller',163 'plugin' => empty($request->params['plugin']) ? null : Inflector::camelize($request->params['plugin'])164 ));165 }166167 $response = $this->_invoke($controller, $request);168 if (isset($request->params['return'])) {169 return $response->body();170 }171172 $afterEvent = new CakeEvent('Dispatcher.afterDispatch', $this, compact('request', 'response'));173 $this->getEventManager()->dispatch($afterEvent);174 $afterEvent->data['response']->send();175 } -
Dispatcher
➝
dispatch
(
CakeRequest Object
(
[params] => Array
(
…
, CakeResponse Object
(
[_statusCodes:protected] => Array
…
)
/home/sebamed/public_html/VectorCMS/webroot/index.php : 156149 # Cronjob handler150 if (isset($argc) && $argc == 2 && isCLI()) {151 define('CRONJOB', $argv[1]);152 $Dispatcher->dispatch(new CakeRequest($argv[1]), new CakeResponse());153 exit;154 }155156 $Dispatcher->dispatch(new CakeRequest(), new CakeResponse([ 'charset' => Configure::read('App.encoding') ]));157