E_NOTICE

Trying to access array offset on value of type bool

/homepages/12/d336454118/htdocs/maxiflug2021/cms/_model/pagesmodel.class.php (Line 45)

  1.         return $this->navigation->get($category$alias);
  2.     }
  3.         
  4.     public function getTree($lang$flat false$show_hidden false$show_hidden_in_tree true$page null$sitemap false) {
  5.         // create instance name for navigation class (lang and page are important)
  6.         $inst_name 'nav' $lang;
  7.         $nodes = array();
  8.         if (!is_null($page)) {
  9.             $nodes        explode('_'$page['fe_alias']);
  10.             $inst_name    'nav' $lang $page['fe_alias'];
  11.         }
  12.         // nested is always generated, id and alias are saved (with lang-key)
  13.         $tree_nested = array();
  14.         // only get entire tree if it has not been fetched (for language)
  15.         if (is_null($this->tree_id) || !isset($this->tree_id[$lang])) {
  16.             $this->tree_id            = array();
  17.             $this->tree_id[$lang]    = array();

PagesModel->getTree()

/homepages/12/d336454118/htdocs/maxiflug2021/_libs/sfs7cms.class.php (Line 100)

  1.         $try[] = $fw_path.'_core/libraries/'.$class_name.'.class.php';
  2.         $try[] = $fw_path.'_core/helpers/'.$class_name.'.class.php';
  3.         $try[] = $this->cms_path.'_model/'.$class_name.'.class.php';
  4.         $try[] = $this->cms_path.'_libs/'.$class_name.'.class.php';
  5.         foreach($try as $path) { if(is_file($path)) { include ($path); break; } }
  6.         }
  7.     
  8.     protected function _getTree($lang$page null) {
  9.         $this->_tree $this->pagesmodel->getTree($langfalsefalsefalse$page);
  10.         return $this->_tree;
  11.     }
  12.     public function getTree($lang$page null) {
  13.         $tree $this->_getTree($lang$page);
  14.         return $tree;
  15.     }
  16.     public function getSitemap($lang$page null) {
  17.         $sitemap $this->pagesmodel->getTree($langfalsefalsefalsenulltrue);

sFs7cms->_getTree()

/homepages/12/d336454118/htdocs/maxiflug2021/_libs/sfs7cms.class.php (Line 126)

  1.         $node =  $this->pagesmodel->getChildren($lang$parent$active);
  2.         $children = isset($node['children'])?$node['children']:array();
  3.         return $children;
  4.     }
  5.     public function getPage($id$lang){
  6.         #$show_hidden = $this->isPreviewMode() == 'preview' ? true : false;
  7.         $page $this->pagemodel->get($id$langfalsefalse);
  8.         $this->_getTree($lang$page);
  9.         return $page;
  10.     }
  11.     public function getPageByAlias($alias$lang ){
  12.         $this->_getTree($lang);
  13.         $tree $this->pagesmodel->getTreeAlias($langfalse);
  14.         if(!isset($tree[$alias])) return false;
  15.         $id $tree[$alias]['id'];
  16.         return $this->getPage($id$lang);
  17.     }

sFs7cms->getPage()

/homepages/12/d336454118/htdocs/maxiflug2021/_libs/sfs7cms.class.php (Line 135)

  1.         $this->_getTree($lang$page);
  2.         return $page;
  3.     }
  4.     public function getPageByAlias($alias$lang ){
  5.         $this->_getTree($lang);
  6.         $tree $this->pagesmodel->getTreeAlias($langfalse);
  7.         if(!isset($tree[$alias])) return false;
  8.         $id $tree[$alias]['id'];
  9.         return $this->getPage($id$lang);
  10.     }
  11.     public function getFirstPage($lang$tree_name null){
  12.         $tree $this->pagesmodel->getTree($langfalsefalsetrue);
  13.         if(!is_null($tree_name) && isset($tree[$tree_name])){
  14.             $nav $tree[$tree_name];
  15.         }
  16.         else $nav current($tree);
  17.         if(!is_array($nav)) return false;
  18.         $page current($nav);

sFs7cms->getPageByAlias()

/homepages/12/d336454118/htdocs/maxiflug2021/main/_controller/_globalcontroller.class.php (Line 119)

  1.                 if($url_page !== FALSE) {
  2.                     $this->url->redirect$url_page['path'] );
  3.                 }
  4.             }
  5.         }
  6.         // get page either by pid or by alias
  7.         $alias $this->page->get('alias');
  8.         if (!is_null($pid)) $cmspage    $this->cms->getPage($pid$lang);
  9.         else $cmspage                    $this->cms->getPageByAlias($alias$lang);
  10.         //redirect maybe
  11.         if(!empty($cmspage['redirect'])) {
  12.             $this->url->redirect$cmspage['redirect'] );
  13.         }
  14.         
  15.         // ooops page does not exist. check URL Redirect list and if ever there's no redirect use first page in tree
  16.         if (!$cmspage) {
  17.             $cmspage $this->cms->getFirstPage($lang'main');

GlobalController->setup()

/homepages/12/d336454118/htdocs/maxiflug2021/_core/morrow.class.php (Line 294)

  1.         // include page controller class
  2.         if (is_file($page_controller_file)) {
  3.             include($page_controller_file);
  4.             $controller = new PageController();
  5.             if (method_exists($controller'setup')) $controller->setup();
  6.             $controller->run();
  7.             if (method_exists($controller'teardown')) $controller->teardown();
  8.         } else {
  9.             $controller = new GlobalController();
  10.             if (method_exists($controller'setup')) $controller->setup();
  11.             if (method_exists($controller'teardown')) $controller->teardown();
  12.         }
  13.         // Inhalte zuweisen
  14.         $this->view->setContent($this->page->get(), 'page');
  15.         // if the client accepts encoding serve it
  16.         $compression_level 0;
  17.         if (isset($_SERVER['HTTP_ACCEPT_ENCODING']) && strstr($_SERVER['HTTP_ACCEPT_ENCODING'],'gzip'))
  18.             $compression_level 6;

Morrow->_run()

/homepages/12/d336454118/htdocs/maxiflug2021/_core/morrow.class.php (Line 29)

  1.     along with this program.  If not, see <http://www.gnu.org/licenses/>.
  2. ////////////////////////////////////////////////////////////////////////////////*/
  3. class Morrow {
  4.     public function __construct() {
  5.         $this->_run();
  6.     }
  7.     public function errorHandler($errno$errstr$errfile$errline) {
  8.         // get actual error_reporting
  9.         $error_reporting error_reporting();
  10.         // request for @ error-control operator
  11.         if ($error_reporting == 0) return;
  12.         // return if error should not get processed

Morrow->__construct()

/homepages/12/d336454118/htdocs/maxiflug2021/_core/factory.class.php (Line 62)

  1.                 {
  2.                 trigger_error('instance "'.$instancename.'" already defined of class "'.get_class($instance).'"'E_USER_ERROR);
  3.                 return false;
  4.                 }
  5.             }
  6.         // create object
  7.         if (is_null($args))
  8.             {
  9.             $instance = new $classname;
  10.             }
  11.         else
  12.             {
  13.             if (is_null(self::$use_fallback)) self::$use_fallback version_compare(PHP_VERSION'5.1.3''<');
  14.             
  15.             if (self::$use_fallback)
  16.                 {
  17.                 $instance self::createObjArray($classname$args);
  18.                 }
  19.             else

Factory::load()

/homepages/12/d336454118/htdocs/maxiflug2021/_core/_root.php (Line 38)

  1.     echo $debug->dump($args);
  2. }
  3. /* the autoloader for all classes
  4. ********************************************************************************************/
  5. include(FW_PATH.'_core/autoloader.php');
  6. /* load framework
  7. ********************************************************************************************/
  8. Factory::load('morrow:morrow:internal');

require()

/homepages/12/d336454118/htdocs/maxiflug2021/index.php (Line 32)

  1. //$time_start = microtime(true);
  2. // include E_STRICT in error_reporting
  3. error_reporting(E_ALL E_STRICT);
  4. // set framework path
  5. define ("FW_PATH"dirname(__FILE__).'/');
  6. // include starter
  7. require(FW_PATH "_core/_root.php");
  8. //$time_end = microtime(true);
  9. //$time = $time_end - $time_start;
  10. //Factory::load('log')->set(round($time*1000, 2).' ms');

Arguments (1)

Array ( [0] => /homepages/12/d336454118/htdocs/maxiflug2021/_core/_root.php )