E_WARNING

Trying to access array offset on value of type bool

/www/htdocs/w015c135/version2023v5/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.  
  8.         $nodes = array();
  9.         if (!is_null($page)) {
  10.             $nodes        explode('_'$page['fe_alias']);
  11.             $inst_name    'nav' $lang $page['fe_alias'];
  12.         }
  13.  
  14.         // nested is always generated, id and alias are saved (with lang-key)
  15.         $tree_nested = array();
  16.  
  17.         // only get entire tree if it has not been fetched (for language)
  18.         if (is_null($this->tree_id) || !isset($this->tree_id[$lang])) {
  19.             $this->tree_id            = array();
  20.             $this->tree_id[$lang]    = array();

PagesModel->getTree()

/www/htdocs/w015c135/version2023v5/_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.  
  6.         foreach($try as $path) { if(is_file($path)) { include ($path); break; } }
  7.         }
  8.     
  9.     protected function _getTree($lang$page null) {
  10.         $this->_tree $this->pagesmodel->getTree($langfalsefalsefalse$page);
  11.         return $this->_tree;
  12.     }
  13.  
  14.     public function getTree($lang$page null){
  15.         $tree $this->_getTree($lang$page);
  16.         return $tree;
  17.     }
  18.  
  19.     public function getSitemap($lang$page null) {
  20.         $sitemap $this->pagesmodel->getTree($langfalsefalsefalsenulltrue);

Arguments (5)

Array ( [0] => de [1] => [2] => [3] => [4] => )

sFs7cms->_getTree()

/www/htdocs/w015c135/version2023v5/_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.  
  6.  
  7.     public function getPage($id$lang){
  8.         #$show_hidden = $this->isPreviewMode() == 'preview' ? true : false;
  9.         $page $this->pagemodel->get($id$langfalsefalse);
  10.         $this->_getTree($lang$page);
  11.         return $page;
  12.     }
  13.  
  14.     public function getPageByAlias($alias$lang ){
  15.         $this->_getTree($lang);
  16.         $tree $this->pagesmodel->getTreeAlias($langfalse);
  17.         if(!isset($tree[$alias])) return false;
  18.         $id $tree[$alias]['id'];
  19.         return $this->getPage($id$lang);
  20.     }

Arguments (2)

Array ( [0] => de [1] => )

sFs7cms->getPage()

/www/htdocs/w015c135/version2023v5/_libs/sfs7cms.class.php (Line 135)

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

Arguments (2)

Array ( [0] => 251 [1] => de )

sFs7cms->getPageByAlias()

/www/htdocs/w015c135/version2023v5/main/_controller/_globalcontroller.class.php (Line 89)

  1.                 $block['content']['error']     = true;
  2.             }
  3.         }
  4.         /* ---- end of newsletter ----- */
  5.         /* ---- end of additionals ----- */
  6.  
  7.         // get page either by pid or by alias
  8.         $alias $this->page->get('alias');
  9.         if (!is_null($pid)) $cmspage    $this->cms->getPage($pid$lang);
  10.         else $cmspage                    $this->cms->getPageByAlias($alias$lang);
  11.  
  12.         //redirect maybe
  13.         if(!empty($cmspage['redirect'])) {
  14.             $this->url->redirect$cmspage['redirect'] );
  15.         }
  16.  
  17.         // ooops page does not exist. check URL Redirect list and if ever there's no redirect use first page in tree
  18.         if (!$cmspage) {
  19.             $cmspage $this->cms->getFirstPage($lang'main');
  20.             if (!$cmspage) die('Please add a valid page in the CMS. If you have already created one, keep in mind that the page has to be visible and published.');

Arguments (2)

Array ( [0] => service-und-informationen_der-landpartie-reiseschutz_reisen-in-corona-zeiten [1] => de )

GlobalController->setup()

/www/htdocs/w015c135/version2023v5/_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.  
  14.         // Inhalte zuweisen
  15.         $this->view->setContent($this->page->get(), 'page');
  16.  
  17.         // if the client accepts encoding serve it
  18.         $compression_level 0;
  19.         if (isset($_SERVER['HTTP_ACCEPT_ENCODING']) && strstr($_SERVER['HTTP_ACCEPT_ENCODING'],'gzip'))
  20.             $compression_level 6;

Morrow->_run()

/www/htdocs/w015c135/version2023v5/_core/morrow.class.php (Line 29)

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

Morrow->__construct()

/www/htdocs/w015c135/version2023v5/_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.  
  7.         // create object
  8.         if (is_null($args))
  9.             {
  10.             $instance = new $classname;
  11.             }
  12.         else
  13.             {
  14.             if (is_null(self::$use_fallback)) self::$use_fallback version_compare(PHP_VERSION'5.1.3''<');
  15.             
  16.             if (self::$use_fallback)
  17.                 {
  18.                 $instance self::createObjArray($classname$args);
  19.                 }
  20.             else

Factory::load()

/www/htdocs/w015c135/version2023v5/_core/_root.php (Line 38)

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

Arguments (1)

Array ( [0] => Array ( [0] => morrow [1] => morrow [2] => internal ) )

require()

/www/htdocs/w015c135/version2023v5/index.php (Line 32)

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

Arguments (1)

Array ( [0] => /www/htdocs/w015c135/version2023v5/_core/_root.php )