Undefined index: Page


  • /home/sebamed/public_html/VectorCMS/View/Helper/HtmlHelper.php : 1348
    1341  
    1342                 $activePage = $pageInstance->find('first', [ 
    1343                         'conditions' => [ 
    1344                             'Page.id' => $pageData['page_id'] ] 
    1345                     ] 
    1346                 ); 
    1347  
    1348                 array_unshift($breadcrumbs, [ !empty($activePage['Page']['title_short']) ? $activePage['Page']['title_short'] : $activePage['Page']['title'] => $activePage['Page']['slug'] ]); 
    1349             } 
    1350         } 
    1351  
    1352         # Recursivelly add parents 
    1353         $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 : 1348
    1341  
    1342                 $activePage = $pageInstance->find('first', [ 
    1343                         'conditions' => [ 
    1344                             'Page.id' => $pageData['page_id'] ] 
    1345                     ] 
    1346                 ); 
    1347  
    1348                 array_unshift($breadcrumbs, [ !empty($activePage['Page']['title_short']) ? $activePage['Page']['title_short'] : $activePage['Page']['title'] => $activePage['Page']['slug'] ]); 
    1349             } 
    1350         } 
    1351  
    1352         # Recursivelly add parents 
    1353         $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 : 45
    38         $documentTitle array_reverse($documentTitle); 
    39     
    40 
    41  
    42 # Render the page 
    43 if (!empty($html)) { 
    44     ob_start(); 
    45     eval('?>' $html); 
    46     $pageContent ob_get_clean(); 
    47  
    48     # No page supplied, show admin login 
    49 } 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 : 971
    964  * @return string Rendered output 
    965  */ 
    966     protected function _evaluate($viewFile$dataForView) { 
    967         $this->__viewFile $viewFile
    968         extract($dataForView); 
    969         ob_start(); 
    970  
    971         include $this->__viewFile
    972  
    973         unset($this->__viewFile); 
    974         return ob_get_clean(); 
    975     
    976  
    977 /** 
    978  Loads a helperDelegates to the `HelperCollection::load()to load the helper 
    979  
  • View _evaluate ( /home/sebamed/public_html/VectorCMS/View/Layouts/front.ctp , HUGE Array )
    /home/sebamed/public_html/lib/Cake/View/View.php : 933
    926         $this->_current $viewFile
    927         $initialBlocks count($this->Blocks->unclosed()); 
    928  
    929         $eventManager $this->getEventManager(); 
    930         $beforeEvent = new CakeEvent('View.beforeRenderFile'$this, array($viewFile)); 
    931  
    932         $eventManager->dispatch($beforeEvent); 
    933         $content $this->_evaluate($viewFile$data); 
    934  
    935         $afterEvent = new CakeEvent('View.afterRenderFile'$this, array($viewFile$content)); 
    936  
    937         $afterEvent->modParams 1
    938         $eventManager->dispatch($afterEvent); 
    939         $content $afterEvent->data[1]; 
    940  
    941         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 : 473
    466         if ($this->hasRendered) { 
    467             return null; 
    468         } 
    469  
    470         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         } 
    476  
    477         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 : 961
    954                 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         
    959  
    960         $this->autoRender false
    961         $this->response->body($this->View->render($view$layout)); 
    962         return $this->response
    963     
    964  
    965 /** 
    966  Returns the referring URL for this request
    967  
    968  * @param string $default Default URL to use if HTTP_REFERER cannot be read from headers 
    969  * @param bool $local If truerestrict referring URLs to local server 
  • Controller render ( /Layouts/front )
    /home/sebamed/public_html/VectorCMS/Controller/FrontController.php : 208
    201             
    202  
    203             # Handle custom logic after the page has been read from the database 
    204             $this->afterPage(); 
    205  
    206             $this->set('html'$html); 
    207             if (get_class($this) === 'FrontController') { 
    208                 $this->render('/Layouts/front'); 
    209             
    210  
    211         } catch (NotFoundException $ex) { 
    212             $this->redirect('/404'); 
    213         
    214     
    215  
    216     # ~ Handle cms tags parsing- - - - - - - - - - - - - - - - - - - - - - - - - - # 
  • FrontController beforeFilter ( HUGE CakeEvent )
    /home/sebamed/public_html/lib/Cake/Event/CakeEventManager.php : 243
    236         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 : 677
    670  * - triggers Component `startupmethods
    671  
    672  * @return void 
    673  * @triggers Controller.initialize $this 
    674  * @triggers Controller.startup $this 
    675  */ 
    676     public function startupProcess() { 
    677         $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize'$this)); 
    678         $this->getEventManager()->dispatch(new CakeEvent('Controller.startup'$this)); 
    679     
    680  
    681 /** 
    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 `shutdowncallback
  • Controller startupProcess ( )
    /home/sebamed/public_html/lib/Cake/Routing/Dispatcher.php : 189
    182  
    183  * @param Controller $controller Controller to invoke 
    184  * @param CakeRequest $request The request object to invoke the controller for. 
    185  * @return CakeResponse the resulting response object 
    186  */ 
    187     protected function _invoke(Controller $controllerCakeRequest $request) { 
    188         $controller->constructClasses(); 
    189         $controller->startupProcess(); 
    190  
    191         $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 : 167
    160         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         } 
    166  
    167         $response = $this->_invoke($controller, $request); 
    168         if (isset($request->params['return'])) { 
    169             return $response->body(); 
    170         } 
    171  
    172         $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 : 156
    149 # Cronjob handler 
    150 if (isset($argc) && $argc == 2 && isCLI()) { 
    151     define('CRONJOB', $argv[1]); 
    152     $Dispatcher->dispatch(new CakeRequest($argv[1]), new CakeResponse()); 
    153     exit; 
    154 } 
    155  
    156 $Dispatcher->dispatch(new CakeRequest(), new CakeResponse([ 'charset' => Configure::read('App.encoding') ])); 
    157