WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
Hy,i get in the cgi_error.log the following error:show_menu2 error: $aOptions is invalid. No flags from group 1 supplied!How can i get rid off that?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title><?php page_title(); ?></title><meta http-equiv="Content-Type" content="text/html; charset=<?php if(defined('DEFAULT_CHARSET')) { echo DEFAULT_CHARSET; } else { echo 'utf-8'; }?>" /><meta name="description" content="<?php page_description(); ?>" /><meta name="keywords" content="<?php page_keywords(); ?>" /><link rel="stylesheet" type="text/css" media="screen,projection" href="<?php echo TEMPLATE_DIR; ?>/layout4_setup.css" /><link rel="stylesheet" type="text/css" media="screen,projection" href="<?php echo TEMPLATE_DIR; ?>/layout4_text.css" /><link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/print.css" media="print" /><title>???</title></head><!-- Global IE fix to avoid layout crash when single word size wider than column width --><!--[if IE]><style type="text/css"> body {word-wrap: break-word;}</style><![endif]--><body><body><!-- Main Page Container --><div class="page-container"><!-- For alternative headers START PASTE here --><!-- A. HEADER --><div class="header"> <!-- A.2 HEADER MIDDLE --> <div class="header-middle"> <!-- Site message --> <div class="sitemessage"> </div> </div> <!-- A.3 HEADER BOTTOM --> <div class="header-bottom"> <div class="nav2"> <!-- Navigation item --><?php if(SHOW_MENU) { /* Only shown menu if we need to */ ?> <?php show_menu2(0, SM2_ROOT, SM2_START, SM2_PRETTY, '<li [if(class==menu-current){id="menu-current"}]>[a]<span>[menu_title]</span></a>'); ?> <?php } ?> </div> </div><!-- </div> --> <!-- B. MAIN --> <div class="main"> <!-- B.1 MAIN NAVIGATION --> <div class="main-navigation"> <!-- Navigation Level 3 --> <div class="round-border-topright"></div> <h1 class="first">Übersicht</h1> <!-- Navigation with grid style --> <?php show_menu2(0, SM2_ROOT+1, SM2_CURR+1, SM2_PRETTY, '<dt>[a][menu_title]</a>', '</dt>', '<dl class="nav3-grid">' , '</dl>');?> <br><br> <div class="searchform"> <?php if(SHOW_SEARCH) { /* Only show search box if search is enabled */ ?> <fieldset> <form name="search" action="<?php echo WB_URL; ?>/search/index<?php echo PAGE_EXTENSION; ?>" method="post" class="field" /> <input value="" name="string" class="field" /> <input type="submit" value="Suchen" name="submit" /> </fieldset> </form> <?php } ?> </div> <!-- Template infos --> <?php if(FRONTEND_LOGIN == 'enabled' AND VISIBILITY != 'private' AND $wb->get_session('USER_ID') == '') { ?> <form name="login" action="<?php echo LOGIN_URL; ?>" method="post" class="login_table"> <h1><?php echo $TEXT['LOGIN']; ?></h1> <p><?php echo $TEXT['USERNAME']; ?>:</p> <p><input type="text" name="username" style="text-transform: lowercase;" /></p> <p><?php echo $TEXT['PASSWORD']; ?>:</p> <p><input type="password" name="password" /></p> <p><?php if(is_numeric(FRONTEND_SIGNUP)) { ?> <a href="<?php echo SIGNUP_URL; ?>"><?php echo $TEXT['SIGNUP']; ?></a> <?php } ?></p> </form> <?php } elseif(FRONTEND_LOGIN == 'enabled' AND is_numeric($wb->get_session('USER_ID'))) { ?> <p><form name="logout" action="<?php echo LOGOUT_URL; ?>" method="post" class="login_table"></p> <h1><?php echo $TEXT['LOGGED_IN']; ?></h1> <p><?php echo $TEXT['WELCOME_BACK']; ?>, <?php echo $wb->get_display_name(); ?> <br /></p> <p><input type="submit" name="submit" value="<?php echo $MENU['LOGOUT']; ?>" /><p> <p><a href="<?php echo PREFERENCES_URL; ?>"><?php echo $MENU['PREFERENCES']; ?></a></p><p> <a href="<?php echo ADMIN_URL; ?>/index.php"><?php echo $TEXT['ADMINISTRATION']; ?></a></p> </form> <p><a href="javascript:window.print()">Diese Seite drucken</a></p> <p><?php frontend_edit(); ?></p> <p><a href="<?php echo ADMIN_URL; ?>/index.php" target="_blank"><?php echo "Administration der Website" ?></p> <?php } ?> </div> <!-- B.2 MAIN CONTENT --> <div class="main-content"> <!-- Pagetitle --> <br> <h1 class="pagetitle"><?php echo PAGE_TITLE; ?></h1> <!-- Content unit - One column --> <div class="column1-unit"> <?php page_content(); ?> </div> </div> <!-- C. FOOTER AREA --> <div class="footer"> <p><?php page_footer(); ?></p> <p class="credits">designed by Administrator und Webmaster <a href="http://www.???.com" target="_blank"><?php echo "???" ?></a></p> </div></div></body></html>
<?php show_menu2(0, SM2_ROOT, SM2_START, SM2_PRETTY, '<li [if(class==menu-current){id="menu-current"}]>[a]<span>[menu_title]</span></a>'); ?>
<?php show_menu2(0, SM2_ROOT+1, SM2_CURR+1, SM2_PRETTY, '<dt>[a][menu_title]</a>', '</dt>', '<dl class="nav3-grid">' , '</dl>');?>
<?php show_menu2(0); ?>
<?php show_menu2(0, SM2_ROOT+1, SM2_CURR+1, '<dt>[a][menu_title]</a>', '</dt>', '<dl class="nav3-grid">' , '</dl>');?>
<?php show_menu2( [$aMenu,[$aStart,[$aMaxLevel,[$aOptions,[$aItemOpen,[$aItemClose,[$aMenuOpen,[$aMenuClose,[$aTopItemOpen,[$aTopMenuOpen]]]]]]]]]] ); ?>
$aMenu = 0, $aStart = SM2_ROOT+1,$aMaxLevel = SM2_CURR+1, $aOptions = '<dt>[a][menu_title]</a>'
show_menu2(0, SM2_ROOT, SM2_CURR, SM2_CRUMB, '<span class="[class]"> » [a][menu_title]</a></span>', '', '', '', ''.$breadcrumbstart.' » <span class="[class]">[a][menu_title]</a></span>');
show_menu2(1, SM2_ROOT+1, SM2_ALL, SM2_ALL, '<li class="[class]"><a href="[url]" target=[target] class="[class]"><span>[menu_title]</span></a>', "</li>", '<ul>', '</ul>', true, '<ul id="topmenu" class="nav sm sm-clean">');
show_menu2(1, SM2_CURR+1, SM2_CURR+1, '', '<li class="[class]">[a][menu_title]</a></li>', '', '', '', '');
show_menu2(1, SM2_CURR+1, SM2_CURR+1, 'SM2_TRIM', '<li class="[class]">[a][menu_title]</a></li>', '', '', '', '');
Done - with aposthrophe ' xxx '?
GROUP 1 ------- Exactly one flag from this group must always be supplied. These flags affect how the siblings in the tree are removed from the output. SM2_ALL or SM2_TRIM or SM2_CRUMB or SM2_SIBLING
<?php show_menu2(0, SM2_ROOT+1, SM2_CURR+1, SM2_ALL|SM2_PRETTY, '<dt>[a][menu_title]</a>', '</dt>', '<dl class="nav3-grid">' , '</dl>'); ?>
<?php show_menu2(0, SM2_ROOT, SM2_ALL, SM2_ALL|SM2_PRETTY, '<li><a href="[url]" class="[class]"><span>[menu_title]</span></a>', "</li>", '<ul>', "</ul>", true, '<ul id="main-menu" class="sm sm-mint">' , '</ul>'); ?>
[13-Feb-2017 14:44:42 Etc\/UTC] show_menu2 error: $aOptions is invalid. No flags from group 1 supplied!"
do you have more Show_menu2-Call's in your template?
Quotedo you have more Show_menu2-Call's in your template?YES! Didn't think about it. Will see and test, but I am confident that the errors are gone after that. Thank you!