E_WARNING

Invalid argument supplied for foreach()

/homepages/12/d336454118/htdocs/maxiflug2021/_core/libraries/navigation.class.php (Line 92)

  1.                     {
  2.                     $this->tree[$branch][$id] =& $this->nodes[$id];
  3.                     }
  4.                 }
  5.             }
  6.         $nodes =& $this->nodes;
  7.         
  8.         // now create the references in between
  9.         foreach ($nodes as $id => $node)
  10.             {
  11.             // add as child to parent
  12.             if (isset($nodes[$node['parent']]))
  13.                 {
  14.                 $nodes[$node['parent']]['children'][$id] =& $nodes[$id];
  15.                 }
  16.             }
  17.         //dump($nodes);

Navigation->add()

/homepages/12/d336454118/htdocs/maxiflug2021/_core/libraries/navigation.class.php (Line 48)

  1.             $this->add($data);
  2.             // set active page
  3.             $page Factory::load('page');
  4.             $this->setActive($page->get('alias'));
  5.             }
  6.         else
  7.             {
  8.             // fills $nodes and $tree
  9.             $this->add($data);
  10.             }
  11.         }
  12.         
  13.     public function add($data$branch null)
  14.         {
  15.         if (!is_null($branch)) $data = array($branch => $data);
  16.         
  17.         foreach ($data as $branch => $tree)
  18.             {
  19.             // first create the flat tree

ReflectionClass->newInstanceArgs()

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

  1.             
  2.             if (self::$use_fallback)
  3.                 {
  4.                 $instance self::createObjArray($classname$args);
  5.                 }
  6.             else
  7.                 {
  8.                 // use reflection class to inject the args as single parameters (php > 5.1.3)
  9.                 $reflectionObj = new ReflectionClass($classname);
  10.                 $instance $reflectionObj->newInstanceArgs($args);
  11.                 }
  12.             }
  13.         return $instance;
  14.         }
  15.     
  16.     // fallback for creating an object with an array as the single params
  17.     public static function createObjArray($type,$args=array())
  18.         {
  19.         $paramstr = array();
  20.         for ($i 0$i count($args); $i++)

Factory::load()

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

  1.                     $tree_temp[$node['tree_name']][$node['alias']] = $node;
  2.                     $tree_alias[$node['alias']] =& $node;
  3.                 }
  4.             }
  5.             $this->tree_nav $tree_temp;
  6.             if (isset($tree_alias)) $this->tree_alias[$lang] = $tree_alias;
  7.         }
  8.         $this->navigation Factory::load('navigation:' $inst_name$this->tree_nav$nodes);
  9.         if (is_null($page)) {
  10.             $page key(current($this->tree_nav));
  11.         } else {
  12.             $page $page['fe_alias'];
  13.         }
  14.         // remove hidden if necessary
  15.         if($sitemap == false) {
  16.             $this->navigation->setActive($page);
  17.             $this->breadcrumb $this->navigation->getBreadcrumb($lang);

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 131)

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

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 )