I don't mean to be double-posting, but since my serious problem seems to be interaction between Views and Panels and I have no clue which is the cause, I'm posting for both. (And baffling, some threads suggest the real problem is Ctools.)

I updated to Drupal 6.20, Panels 3.8, Views 2.12, Ctools 1.8. Immediately, about two-dozen existing views broke -- and remain broken.

What broke the views is that style plugin panels_twocol_stack vanished. In the view it is no longer listed as an available style. In fact, NO panel layouts are listed.

Because the plugin is no longer available to a view, the view fails to render, so the web user encounters "page not found", which is also the only error in the log.

It seems that whatever process makes panels plugins visible to views -- or allows views to see panels plugins -- has totally failed.

While it is panels that are missing from views (therefore breaking views), panels work otherwise. I can go to Panels and choose and use a 2 column stack layout. I just can't use this same panel layout (anymore) in Views.

I've reinstalled and cleared caches and all that. I also tried reverting to prior versions of the modules (Panels 3.7, Views 2.11, etc), but I didn't go back to Drupal 6.19, since that's much more difficult to do.

I found several patches, posted for possibly similar problems -- patches to Views, Panels, and Ctools. I tried them individually and in various combinations, but no help (so I reverted them).

The problem was not cured by doing any of this. So perhaps the problem is in Drupal 6.20?

The only workaround has been to change the views to use a standard row style rather than a much more attractive and useful 2-column panel style. That's a very unpleasant and I hope temporary situation.

Ideas?

Comments

merlinofchaos’s picture

What broke the views is that style plugin panels_twocol_stack vanished. In the view it is no longer listed as an available style. In fact, NO panel layouts are listed.

I'm confused. At what point are Panels layouts listed in views? There is the 'Panels fields' style, perhaps, but that's new in Panels 3.8.

sgabe’s picture

I have a similar issue. I've just updated to the latest development snapshot and all views disappeared from my panels.

hawkdrupal’s picture

Sorry if I'm misstating, but since views are broken, I can't see normal behavior, and haven't touched the design of these views in many months, so don't recall.

What I know is that the view design -- as shown via Export, is looking for this, and I believe, not finding the plugin:

$handler->override_option('style_plugin', 'panels_twocol_stack');

Somehow (months ago) I set the view (actually, many views) to this design, which worked perfectly. But now there's the error message no ability to restore this plugin, because Styles only lists the standard view styles. How could I have set up all these views if the 2 column panels design wasn't available to Views? This seems to indicate something broken IN Views or Panels, or something wrong between them.

What else should I check or do?

merlinofchaos’s picture

That isn't a style that's normally available to Views from anything that I'm involved in.

Maybe it was in the Views Bonus Pack which has some Panels integration with Views?

merlinofchaos’s picture

#2: Your problem is reported and there's at least one issue in every queue about it. There's a patch.

sgabe’s picture

@merlinofchaos: Sorry, I see that I posted in the wrong issue. I've found the similar issues, but no patch so far. Only rolling back #1001542: $view->set_display($display_id); returns TRUE for displays that do not exist. helped for me.

Note that I'm using Drupal 6.20, Panels 6.x-3.8, CTools 6.x-1.8 and Views 6.x-3.x-dev. I saw #1013170: Views ctools integration broken because of issue with preview() but this only applies on 7.x.

merlinofchaos’s picture

dawehner’s picture

Status: Active » Closed (duplicate)

And the patch got a rerole against 6.x-3.x/6.x-2.x so this is indeed a duplicate.

merlinofchaos’s picture

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

Not dupe, accidental hijack. Marking NMI though because there's an outstanding question about Views Bonus Pack in #4.

hawkdrupal’s picture

Status: Postponed (maintainer needs more info) » Active

Pretty big mystery! All I did was update modules, as stated, and all the views broke, implicating the missing plugin that provided the desired 2-column Style.

But if plugin 'panels_twocol_stack' doesn't come from Views or Panels, where does it come from? How could it have been added as the Style of dozens of view designs?

It's not in Views Bonus Pack that I know of, which seems to provide only paged feed and export.

I didn't change/enable/disable any modules since a few days ago when it was all working perfectly.

If the functionality I relied on is truly "gone", is there another way to get the same result? I was using a view as a page of nodes, formatted as 2 columns. I don't see any way to get back to a 2-column view.

hawkdrupal’s picture

MY VIEWS ARE FIXED! Thanks to a clue from merlinofchaos.

The clue was stating that Views Bonus Pack provides some panels functionality. Mine does not, as shown in Modules. So I downloaded VBP again, opened, and found a panels subfolder that my installation lacks. I copied it in, refreshed Modules, discovered the new submodule offered, checked the box, saved, and the views are now working again, because they can find the plugin.

Thank you for the clue! I didn't spot it because I was looking at my Modules page and all the Views Bonus Pack submodules were enabled. I didn't realize one had vanished.

So the new mystery is, what happened to the folder 'views_bonus\panels' on my server? How did it get (presumably) deleted? I have no clue.

Sorry to implicate Views and Panels and Ctools, though I have to say that there's so much discussion and so many patches and debate about them that it's a tad confusing to know the correct and stable way to go.

dawehner’s picture

Status: Active » Fixed

Cool so this is fixed.

Status: Fixed » Closed (fixed)

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