Download & Extend

Conflict with Panels (work-around)

Project:SimpleMenu
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active

Issue Summary

Once simplemenu is enabled, the panels interface ceases to work. on the edit content table, none of the ajax popus to add new panels will launch.

admin/panels/panel-page/panel_name/edit/content

once I deactivated simple menu the panels interface resumed working again.
I only set this as critical due to Panels popularity in the Drupal community.

I won't have time to trouble shoot this for a couple of weeks, so anyone that's willing to take a stab at it would be extremely appreciated.

Comments

#1

Version:6.x-2.x-dev» 6.x-1.x-dev

I also have this issue with CTools 6.x-1.7 and Panels 6.x-3.7. See this comment for more background: http://drupal.org/node/718368#comment-3278822.

Why no resolution or progress in over a year - are people not experiencing this problem?

#2

I absolutely just saw this problem when upgrading Panels.

I was able to duplicate it with a clean install of Drupal 6.17, CTools 6.x-1.7, Panels 6.x-3.7, and SimpleMenu 6.x-1.9.

I just added a note to a similar issue #866794: Cannot edit or add panel (might be the simplemenu.module) which may or may not be related.

~jake

#3

Title:Conflict with Panels» Conflict with Panels (work-around)

I also tried disabling simplemenu for the 'node/*/panel_content' page but was still having the problem.

Using Firebug's console with XMLHTTPRequest logging enabled and I noticed that simplemenu's javascript files were being returned with a Panels/Ctools AJAX request. I don't know the underlying working of Panel's and Ctool's AJAX but I figured simplemenu's javascript should be not returned with a request to 'panels/ajax/*'.

So I modified my list SimpleMenu's blocked paths to include 'panels/ajax/*' and my panel nodes started to work again.

Steps
- Goto Administer > Site configuration > SimpleMenu (admin/settings/simplemenu)
- On the form open 'Advanced settings' fieldset
- In 'Show block on specific pages:' check 'Show on every page except the listed pages.' (default)
- Add the below paths to the Pages textarea.

panels/ajax/editor/*
node/*/panel_content
admin/build/pages/*

This is a not a great solution but it is a reasonable work-around. I am not sure I have all the panel related pages, that simplemenu is breaking, in my above list. Please add to the list as needed.

~jake

#4

jayson,

It was marked on 2.x and no one posted a patch... 8-)

We'll need to find the exact reason why it breaks and whether there is an easy fix. It probably is something that Panels do wrong.

Thank you.
Alexis

#5

views to -- at the time I posted this. That particular site isn't up to date with panels/views/ or simple menu.

Because I use views and panels so often.... I've switch to nice menus for sites since.

#6

Yes. Nice menus is a good solution too!

If that's working, maybe the version selection of superfish is what creates the problem. Make sure it is set to 1.4.8.

Note that I've always been using Views on all my sites and never had a problem with views.

Thank you.
Alexis

#7

THanks @AlexisWilke. Turns out that my Views issues were unrelated, but with similar in terms of symptoms. The conflict only affects Panels.

--
J.