WebsiteBaker Support (2.8.x) > Templates, Menus & Design
show_menu2 error: $aOptions is invalid. No flags from group 1 supplied!
Craxx:
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?
best regards
Craxx;)
Argos:
--- Quote from: Craxx on April 29, 2010, 10:38:43 AM ---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?
--- End quote ---
Not sure what you mean with cgi_error.log, but there must be an error in your menu call. Check http://www.websitebakers.de/sm2/
Craxx:
Hy Argos,
thx for answer. I looked in docu, but cannot see the error...? Could you please help. Here is my index.php from template:
--- Code: ---<!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>
--- End code ---
THX and best regards
Craxx;)
Argos:
You have 2 menu calls:
--- Code: ---<?php show_menu2(0, SM2_ROOT, SM2_START, SM2_PRETTY, '<li [if(class==menu-current){id="menu-current"}]>[a]<span>[menu_title]</span></a>'); ?>
--- End code ---
--- Code: ---<?php show_menu2(0, SM2_ROOT+1, SM2_CURR+1, SM2_PRETTY, '<dt>[a][menu_title]</a>', '</dt>', '<dl class="nav3-grid">' , '</dl>');?>
--- End code ---
One of them or both generate the error. Please look in the menu docu what part of the menu(s) $aOptions exactly is, and correct the call. I don't have time right now to investigate for you. But there must be something wrong with your menu call(s). Investigate by using elementary calls first, like
--- Code: ---<?php show_menu2(0); ?>
--- End code ---
to see what menu is wrong.
Craxx:
Hy Argos,
thx for answer and tipp. On bothe there is an error with SM2_PRETTY. There is no error with:
<?php show_menu2(0, SM2_ROOT, SM2_START); ?>
-> The Menu on top is ok!!!
and
<?php show_menu2(0, SM2_ROOT+1, SM2_CURR+1);?>
-> The Menue on the left side is not correct formatted.
But it is an error when i write
<?php show_menu2(0, SM2_ROOT+1, SM2_CURR+1, '<dt>[a][menu_title]</a>', '</dt>', '<dl class="nav3-grid">' , '</dl>');?>
The original Template is Multiflex-1 and i modified it for me. When i use the Multiflex-1 Template i have same errors.
Please can you give me another tipp.
THX and best regards
Craxx;)
Navigation
[0] Message Index
[#] Next page
Go to full version