CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Links disappeared in civi admin menu
Pages: [1]

Author Topic: Links disappeared in civi admin menu  (Read 1173 times)

j.benit

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 3.4.7
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5
Links disappeared in civi admin menu
December 15, 2011, 08:27:57 am
Hi All.

A couple of days ago, all the links of my civicrm admin menu disappeared suddenly. I don't get any js error in firebug and it isn't a css issue because the problem is that the html for the list elements of the menu is not generated directly. Anyone had a similar problem in the past?

thanks for your time.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Links disappeared in civi admin menu
December 15, 2011, 08:59:56 am

1. do a menu rebuild: as admin run: q=civicrm/menu/rebuild&reset=1

2. disable drupal js/css aggregation and see if that fixes it

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

j.benit

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 3.4.7
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5
Re: Links disappeared in civi admin menu
December 15, 2011, 09:08:37 am
Thanks for your quick response Lobo... unfortunately i already tried that

I have been checking this template: civicrm/templates/CRM/common/Navigation.tpl

In that template you can find this code snippet:

Code: [Select]
<div id="menu-container" style="display:none;">
    <ul id="civicrm-menu">
        {if call_user_func(array('CRM_Core_Permission','giveMeAllACLs'))}
        <li id="crm-qsearch" class="menumain">
            <form action="{crmURL p='civicrm/contact/search/basic' h=0 }" name="search_block" id="id_search_block" method="post" onsubmit="getSearchURLValue( );">
            <div id="quickSearch">
            </div>
            </form>
        </li>
{/if}
        {$navigation}
    </ul>
</div>

Notice that the menu links are inserted using the variable $navigation

If i add to the top of the template the famous {debug} and i go to http://my-civi-site/civicrm&smartyDebug=1, i obtain the popup debug civicrm window and i cannot find {$navigation}... so for some strange reason the template is not receiving that variable.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Links disappeared in civi admin menu

This forum was archived on 2017-11-26.