Hi!

The menu minipanels stoped working whit nicemenu in the last dev / release. I've seen these two issues where the problem was corrected and allready commited to rc6...

http://drupal.org/node/1427666 "Menu Minipanels" don't want to work with "Nice menu"
http://drupal.org/node/1505112 Update from 7.x-1.0-rc3 removes menu minipanels

I've uninstall reinstall rc6, always clear the caches, etc.

At the end, I reverted to 7.x-1.0-rc5.

Thx.

[Edit: I use the last version nice menu.]

Note: Is it possible that some variables are not uninstalled ?

Comments

dadaisme’s picture

Issue summary: View changes

[Edit: I use the last version nice menu.]

damienmckenna’s picture

Title: "Menu Minipanels" and "Nice menu" whit the last dev. » "Menu Minipanels" and "Nice Menu" with the last dev
Status: Active » Postponed (maintainer needs more info)

Did you run the database updates after upgrading to the latest version? After that, please double-check the settings page to ensure that the menus are enabled for use with Menu Minipanels. Then, please report back and I'll see if I can work out what else might be going on.

damienmckenna’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

Lets close this one and focus on #1427666: "Menu Minipanels" don't want to work with "Nice menu" instead.

dadaisme’s picture

Title: "Menu Minipanels" and "Nice Menu" with the last dev » 7.x-1.0-rc5 to rc6 minipanels won't open, qtip libairy is no longer loaded.
Component: Integration with other module » Code
Status: Closed (duplicate) » Active

Hi!

Lets reopen and focus on the update from rc5 to rc6 part of the issue.

Since I'm no longer trying to use nicemenu, I tryed again to update from Menu Minipanels 7.x-1.0-rc5 to rc6.

Result: the minipanels won't open. (Every setting is fine, update.php, clear cache, etc.)

What I noticed is that the qtip libairy is no longer loaded. Same whit dev.

Thx.

damienmckenna’s picture

Have you verified on the main Menu MiniPanels settings page that the desired menus have been enabled?

dadaisme’s picture

Hi!

Yes, they are.

Thx.

damienmckenna’s picture

Status: Active » Postponed (maintainer needs more info)

So the SCRIPT tag for loading the qtip library isn't in the output HTML? Please try the latest -dev code, that might work. Alternatively, enable & check the Database Logging module and let me know if any errors show up there. Thanks.

dadaisme’s picture

There where no script tag for loading the libary in the html.

I'll try the last dev soon.

Thx.

dadaisme’s picture

Hi!

I've just tryed the last dev version rc7, whitout sucess. The script tag still missing. Menu minipanel is activated for the menu used, cleared cache, update.php, etc..

It is failing to recognized the fact that menu items have minipanel settings, in menu_minipanels.module:

466 if (variable_get('menu_minipanels_' . $menu . '_enabled', FALSE)) { ///// this is TRUE
467 // Check whether qTip actually needs to be loaded.
468 if (menu_minipanels_prepare_links(menu_navigation_links($menu))) { //// This return FALSE even if menu items have menu_minipanels settings.

I've tried to resave the menu items settings, no change, qtip is not loading.

Here is the bug : Digging deeper, I've noticed that in rc7 and rc6 but not in rc5, it faiIed to recognized that the page is displaying the first AND second level of the menu.

For the moment, it's not realy a solution, I've bypass the second if statment, thus calling the menu_minipanels_prepare_links() and making $load_requirements = TRUE and it works. [edit: it actualy makes the menu work but makes the lightbox in admin/views go boom... and maybe other things like infinit ajax loops. It makes the lib load everywhere? added admin pages in "Don't show Menu_Minipanels on specific pages" for views to work.]

Hope this helps fixing the bug.

Thx.

damienmckenna’s picture

What happens if you change line 468 to this?

      if (menu_minipanels_prepare_links(menu_navigation_links($menu, 1))) {

Or even this?

      if (menu_minipanels_prepare_links(menu_navigation_links($menu, 2))) {
dadaisme’s picture

Hi!

I've tried both lines whitout success.

The first level of the menu does not have minipanel, only the second level.

The menu setup is : lvl1 -> lvl2 whit minipanels.

item1(selected) item2 item3 (lvl1)
item1.1(hover) item1.2 item1.3 (lvl2)
minipanel1.1(shown)

Thx.

damienmckenna’s picture

Please try the latest release, it should work fine.

dadaisme’s picture

Hi!

I've just updated to the latest dev (dec-01)... I've notice something different. Qtip is loaded on some pages but not others: It's not loaded on the front page, taxonomy pages and node or user pages... but it's loaded when the page is a view or when the page is created by another module!?

Thx.

dadaisme’s picture

Title: 7.x-1.0-rc5 to rc6 minipanels won't open, qtip libairy is no longer loaded. » Last dev (versus 7.x-1.0-rc5) minipanels won't open, qtip libairy is no longer loaded.

I checked if this works :

      // Loop through each level of the menu tree and see whether qTip needs to
      // be loaded.
      $level = 0;
      while ($items = menu_navigation_links($menu, $level)) {
        if (menu_minipanels_prepare_links($items)) {
          $load_requirements = TRUE;
        }
        $level++;
      }

It does not work. Like I said earlier, the menu setup is : lvl0 -> lvl1 whit minipanels. It seems like menu_navigation_links returns empty for level1 even if the links are there?!

To make it work, I used menu_load_links whitout the loop in menu_minipanels_page_alter

      if (menu_minipanels_prepare_links(menu_load_links($menu))) {
         $load_requirements = TRUE;
      }

And modified menu_minipanels_prepare_links by adding the 'options' key

    if (!empty($link['options']['minipanel'])) {
      $load_qtip = TRUE;
      _menu_minipanels_include($link['options']['minipanel'], $link['options']['menu_minipanels_hover']);
    }

It may not be the best, but it works now, is it viable?

Thx.

damienmckenna’s picture

@Dadaisme: please try the latest 1.1 release, let me know if that helps.

dadaisme’s picture

Title: Last dev (versus 7.x-1.0-rc5) minipanels won't open, qtip libairy is no longer loaded. » 7.x-1.1 (versus 7.x-1.0-rc5) minipanels won't open, qtip libairy is no longer loaded.

That is the last one that I have trided and the one I have modified.

; Information added by drupal.org packaging script on 2012-12-01
version = "7.x-1.1"
core = "7.x"
project = "menu_minipanels"
datestamp = "1354358783"

Thx.

dadaisme’s picture

Issue summary: View changes

errata on note.