I have mini panels that are included in Features and exported into code. Upon updating to Panels 7.x-3.6, the admin UI (/admin/structure/mini-panels) shows an empty list. When I re-export the Features containing the mini panels, they are deleted from the exported code. Once that happens, the mini panels are gone from the site altogether and only recoverable via code reverts.

Putting the priority at Major as the potential for data loss exists. Downgrading fixes the problem, but then we don't have the security update.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sjancich created an issue. See original summary.

ladybug_3777’s picture

I have the same exact issue.

bernd.horn’s picture

We may be hitting this issue as well. I have narrowed an issue down to commit 87dd920. Once I apply this commit mini-panels applied to a node disappear from the rendered page.

/admin/structure/mini-panels also does not show the mini-panels until "Apply" is performed.

generalconsensus’s picture

Add fix to badly placed return statement, which will incorrectly return prior to loading feature-based mini panels

generalconsensus’s picture

FileSize
559 bytes

Fix to file location

sjancich’s picture

#5 fixes the issue for me.

ladybug_3777’s picture

I will test out your patch... but in case this helps someone, in order to fix this manually I took the following steps:

I went to our dev environment (Where my mini panels still existed) and grabbed the export code for them. I then imported the mini panels onto my local machine where my panels had been deleted. Importing just one mini panel caused them all to re-appear magically. I then was able to put them back into the correct block assignments and all appears to be OK. (My feature is back to being "Default").

I'm now going to look at the patch and I'll report back with what I find.

PapaGrande’s picture

dsnopek’s picture

sjancich’s picture

ladybug_3777, another workaround is to simply create a mini-panel via the UI.

japerry’s picture

Priority: Major » Critical
ladybug_3777’s picture

Priority: Critical » Major

The patch in #5 seems to do the trick! Thumbs up!

ladybug_3777’s picture

oops didn't mean to knock down the priorty with my comment. That was an accident.

ladybug_3777’s picture

Priority: Major » Critical
dsnopek’s picture

Status: Active » Reviewed & tested by the community

I actually don't think this is related to #1391450: Panels does not hide an empty mini panel.

Basically, if you have no Mini Panels in the database, it won't ever show the Mini Panels in code because of the early return in panels_mini_load_all().

I'm able to reproduce this by putting all my Mini Panels in code. As soon as revert them all, then they disappear from the list at /admin/structure/mini-panels

Applying the patch fixes it and my Mini Panels appear again!

dsnopek’s picture

Targeting 7.x-3.7 rather than 7.x-3.8

PapaGrande’s picture

PapaGrande’s picture

Reading #2391073: panels_mini_load & friends need caching, particularly comment #8, I'm very curious why @mikeytown2, @joelpittet, or @japerry never saw this issue. We need to get their input before we just rip out those three lines.

japerry’s picture

Status: Reviewed & tested by the community » Fixed

Yes, that cache cid return totally is the culprit. Fixed.

Status: Fixed » Closed (fixed)

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