Undefined index: topMenu

There is an error. Please report the message and full backtrace in the Piwik forums.

Notice: Undefined index: topMenu in /tmp/templates_c/%%A5^A51^A51D6D8B%%top_bar.tpl.php on line 8

Backtrace -->

#0 Piwik_ErrorHandler(8, Undefined index: topMenu, /home/analise_cds/analise.cds.com.br/tmp/templates_c/%%A5^A51^A51D6D8B%%top_bar.tpl.php, 8, Array ([this] => Piwik_Smarty Object ([template_dir] => Array ([0] => /home/analise_cds/analise.cds.com.br/plugins,[1] => /home/analise_cds/analise.cds.com.br/themes/default,[2] => /home/analise_cds/analise.cds.com.br/themes),[compile_dir] => /home/analise_cds/analise.cds.com.br/tmp/templates_c,[config_dir] => configs,[plugins_dir] => Array ([0] => /home/analise_cds/analise.cds.com.br/core/SmartyPlugins,[1] => /home/analise_cds/analise.cds.com.br/libs/Smarty/plugins),[debugging] => ,[error_reporting] => 6143,[debug_tpl] => ,[debugging_ctrl] => NONE,[compile_check] => 1,[force_compile] => ,[caching] => 0,[cache_dir] => /home/analise_cds/analise.cds.com.br/tmp/cache,[cache_lifetime] => 3600,[cache_modified_check] => ,[php_handling] => 0,[security] => ,[secure_dir] => Array (),[security_settings] => Array ([PHP_HANDLING] => ,[IF_FUNCS] => Array (…#1 include(/home/analise_cds/analise.cds.com.br/tmp/templates_c/%%A5^A51^A51D6D8B%%top_bar.tpl.php) called at [/home/analise_cds/analise.cds.com.br/libs/Smarty/Smarty.class.php:1869]#2 Smarty->_smarty_include(Array ([smarty_include_tpl_file] => CoreHome/templates/top_bar.tpl,[smarty_include_vars] => Array ())) called at [/home/analise_cds/analise.cds.com.br/tmp/templates_c/%%38^383^383EA889%%header.tpl.php:37]#3 include(/home/analise_cds/analise.cds.com.br/tmp/templates_c/%%38^383^383EA889%%header.tpl.php) called at [/home/analise_cds/analise.cds.com.br/libs/Smarty/Smarty.class.php:1869]#4 Smarty->_smarty_include(Array ([smarty_include_tpl_file] => CoreAdminHome/templates/header.tpl,[smarty_include_vars] => Array ())) called at [/home/analise_cds/analise.cds.com.br/tmp/templates_c/%%5A^5A5^5A553E34%%manage.tpl.php:8]#5 include(/home/analise_cds/analise.cds.com.br/tmp/templates_c/%%5A^5A5^5A553E34%%manage.tpl.php) called at [/home/analise_cds/analise.cds.com.br/libs/Smarty/Smarty.class.php:1263]#6 Smarty->fetch(TranslationsAdmin/templates/manage.tpl) called at [/home/analise_cds/analise.cds.com.br/core/View.php:172]#7 Piwik_View->render() called at [/home/analise_cds/analise.cds.com.br/plugins/TranslationsAdmin/Controller.php:353]#8 Piwik_TranslationsAdmin_Controller->index() called at [(null):0]#9 call_user_func_array(Array ([0] => Piwik_TranslationsAdmin_Controller Object ([] => TranslationsAdmin,[] => 2011-04-04,[] => Piwik_Date Object ([] => 1301923487,[] => UTC),[] => 1,[] => Piwik_Site Object ([] => 1)),[1] => index), Array ()) called at [/home/analise_cds/analise.cds.com.br/core/FrontController.php:125]#10 Piwik_FrontController->dispatch() called at [/home/analise_cds/analise.cds.com.br/index.php:57]

solution at [quote=plugins/CoreHome/templates/top_bar.tpl]
[/quote]


<div id="topBars">

<div id="topLeftBar">
{if isset($topMenu)}

{foreach from=$topMenu key=label item=menu name=topMenu}
    
        {if isset($menu._html)}
            {$menu._html}
        {elseif $menu._url.module == $currentModule}
            <span class="topBarElem"><b>{$label|translate}</b></span> | 
        {else}
            <span class="topBarElem"><a id="topmenu-{$menu._url.module|strtolower}" href="index.php{$menu._url|@urlRewriteWithParameters}">{$label|translate}</a></span> | 
        {/if}
    
{/foreach}

{/if}
</div>

<div id="topRightBar">
<span class="topBarElem">{'General_HelloUser'|translate:"<strong>$userLogin</strong>"}</span>
{if $userLogin != 'anonymous'}| <span class="topBarElem"><a href='index.php?module=CoreAdminHome'>{'General_Settings'|translate}</a></span>{/if}
| <span class="topBarElem">{if $userLogin == 'anonymous'}<a href='index.php?module={$loginModule}'>{'Login_LogIn'|translate}</a>{else}<a href='index.php?module={$loginModule}&action=logout'>{'Login_Logout'|translate}</a>{/if}</span>
</div>


</div>

{if $showSitesSelection}{include file="CoreHome/templates/sites_selection.tpl"}{/if}


The updated TranslationsAdmin plugin will require the next Piwik release. Plugin: Translate Piwik in your own language with this easy to use plugin · Issue #5591 · matomo-org/matomo · GitHub