Undefined variable: output in yuimenu.module on line 348.

yngens - May 5, 2008 - 01:26
Project:YUI Menu
Version:6.x-1.1-1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I have different error outputs in my logs:

Undefined variable: output in /home/mysite/public_html/sites/all/modules/yuimenu/yuimenu.module on line 343.
Undefined variable: output in /home/mysite/public_html/sites/all/modules/yuimenu/yuimenu.module on line 348.

#1

drupalhizmetleri - May 5, 2008 - 06:28

It seems that the menu item that you are selecting in yui-menu admin page has no items. Or has something different. Please can you test the menu with the primary menu. Just select the primary menu from the yui-menu administration page.

#2

yngens - May 5, 2008 - 07:07

bakyildiz, the same story with primary menu.

maybe there is something wrong with my page.tpl.php file?

<?php
// $Id: page.tpl.php,v 1.28 2008/01/24 09:42:52 goba Exp $
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language ?>" xml:lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">

<head>
  <title><?php print $head_title ?></title>
  <?php print $head ?>
  <?php print $styles ?>
  <?php print $scripts ?>
  <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
</head>

<body>
<table class="hd" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td>
<tr><td>
<table width="100%" border="0" cellpadding="3" cellspacing="0"><tr><td>
<table class="hdr" align="center" height="10" width="1000" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td id="logo">
      <?php if ($logo) { ?><a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><img src="<?php print $logo ?>" alt="<?php print t('Home') ?>" /></a><?php } ?>
      <?php if ($site_name) { ?><h1 class='site-name'><a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><?php print $site_name ?></a></h1><?php } ?>
      <?php if ($site_slogan) { ?><div class='site-slogan'><?php print $site_slogan ?></div><?php } ?>
    </td>
    <td id="menu">
      <?php if (isset($primary_links)) { ?><?php print theme('links', $primary_links, array('class' =>'linx', 'id' => 'navlist')) ?><?php } ?>
      <?php print $search_box ?>
    </td>
  </tr>
</table></td></tr></table></td></tr></table>

<table class="mid" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td>
<table align="center" width="1000" border="0" cellpadding="0" cellspacing="0">
<tr>
    <td class="in"><div><?php print $header ?>
<?php if (module_hook('yuimenu','menu') && ("tns" == variable_get('yuimenu_type','tns') || "tnm"==variable_get('yuimenu_type','tns')) ){?>
<?php print html_menu(variable_get('yuimenu_root','1') ); ?>
   <?php }?></div></td>
  </tr>
</table></td></tr></table>

<table class="cen" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td>
<table align="center" width="1000" border="0" cellpadding="0" cellspacing="0"><tr><td>
<table border="0" cellpadding="0" cellspacing="0" id="content">
  <tr>
    <?php if ($left) { ?><td id="sidebar-left">
      <?php print $left ?>
    </td><?php } ?>
    <td valign="top">
<div width="100%" class="grey">
    <br />
        <h1 class="title"><?php print $title ?></h1>
  </div>
      <?php if ($mission) { ?><div id="mission"><?php print $mission ?></div><?php } ?>
      <div id="main">
        <?php print $help ?>
        <?php print $messages ?>
<div class="tabs"><?php print $tabs ?></div>
        <?php print $content; ?>
      </div>
    </td>
    <?php if ($right) { ?><td id="sidebar-right">
      <?php print $right ?>
    </td><?php } ?>
  </tr>
</table>

</td></tr></table>
</td></tr></table>
<table align="center" width="1000" border="0"><tr><td><div id="footer">
  <?php print $footer_message ?>
</div>
<?php print $closure ?>
</td></tr></table>
</body>
</html>

#3

drupalhizmetleri - September 21, 2008 - 08:28
Status:active» fixed

temp

Anonymous (not verified) - October 5, 2008 - 08:36

Automatically closed -- issue fixed for two weeks with no activity.

temp

Anonymous (not verified) - October 5, 2008 - 08:43

Automatically closed -- issue fixed for two weeks with no activity.

#4

Anonymous (not verified) - October 5, 2008 - 08:51
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.