Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm testing out rc2 (pretty slick!) but am getting the following error anytime I try to panelize the content (ex /node/1/panelizer/default/content)
Fatal error: Call to undefined function panels_get_layouts() in /Users/gusaus/Sites/panopoly/panopoly-7.x-1.0-rc2/profiles/panopoly/modules/contrib/panels/includes/common.inc on line 480
Assuming this is a panopoly issue 'cuz it was working on previous releases.
Comment | File | Size | Author |
---|---|---|---|
#6 | 1828684-layout-fix-6.patch | 485 bytes | populist |
#2 | 1828684-layout-fix.patch | 506 bytes | beeradb |
Comments
Comment #1
ericras CreditAttribution: ericras commentedI can confirm. I modified with module_load_include as follows:
Comment #2
beeradb CreditAttribution: beeradb commentedMoving to the panels queue.
I was able to reproduce this issue with just the 3.x issues of Panelizer and Panels installed independently of Panopoly. The attached patch does indeed fix the issue.
Comment #3
BenK CreditAttribution: BenK commentedI've just tested the patch in #2 and it works well for me... the issue is solved.
--Ben
Comment #4
Letharion CreditAttribution: Letharion commentedComment #5
merlinofchaos CreditAttribution: merlinofchaos commentedThis is panels. We use ctools_include, not module_load_include().
In this case, ctools_include('plugins', 'panels')
Comment #6
populist CreditAttribution: populist commentedHere is a patch which switches the code inclusion to ctools_include().
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedsuccessfully patched. thanks
Comment #8
beeradb CreditAttribution: beeradb commentedI kind of feel dumb for not thinking about using ctools_include. I should know better by now :)
Either way, patch in #6 fixes for me. It's a fairly trivial fix, so going ahead and moving to RBTC.
Comment #9
gusaus CreditAttribution: gusaus commentedTested and works for me. Thanks all!
Comment #10
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted and pushed.
Comment #11
merlinofchaos CreditAttribution: merlinofchaos commentedCommitted and pushed.