Closed (fixed)
Project:
Panels
Version:
7.x-3.0
Component:
Mini panels
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2012 at 13:20 UTC
Updated:
16 Jun 2014 at 16:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mrfelton commentedI am also getting this, for mini panels that are included as part of a Features module.
Comment #2
aschiwi commentedSame here, also with mini panels activated via Features. The mini panels packaged with the Feature don't show up in the ui, even though they're in code.
Comment #3
aschiwi commentedActually for us it must have been some sort of weird interaction with something, not a general problem. A reinstallation of a new site followed by activating our Features resulted in clean minipanels. I think this needs more info from people who still have this problem.
Comment #4
Jorrit commentedFor me, this happens because of a reference to a non-existing mini panel.
With the Devel module installed, visit /devel/php and execute:
The error will appear.
This occurs because
panels_mini_load()will enterNULLinto the$cachearray andpanels_mini_load_all()doesn't remove it.I suggest adding
array_filter()inpanels_mini_load_all()to remove NULLs.Comment #5
Jorrit commentedHere is a patch.
Comment #6
Gyver06 commentedI got exactly the same issue. I just applied the patch from Jorrit #5 and guess what, it works perfectly.
I had effectively a reference to a non-existing mini-panel.
Thank you very much Jorrit for this efficient help.
Comment #7
ksavoie commentedHad the same issue, 'Jorrit' 's patch fixed it. Thanks
Comment #8
mh86 commentedIn my case this happened because I had deleted some mini panels blocks but the entries had not been removed from the 'block' table.
Comment #9
mrfelton commentedSimilar to @mh86. Found them by running:
They had an empty delta. This will also find them.
And this will fix it:
If you ever try
panels_mini_load('nonexistent');again, you will end up with another broken entry in the block table.Comment #10
gotomoon commentedCould someone kindly tell me or direct me to an instruction how to apply Jorrit #5 patch?
Thanks!
Comment #11
nafmarcus commented#9 (mrfelton), I deleted the offending records from the database.
But when I clear the cache, a new panels_mini block record is created with an empty delta for my theme and the error re-appears. Can you explain why this happens?
Comment #12
merlinofchaos commentedThat's really interesting. I don't really understand how this happens, but the patch makes sense. One downside is that it's going to obscure the fact that there's incorrect data in the blocks table, I think, but ultimately that is harmless.
I committed and pushed this patch.