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.
function page_manager_http_response_admin_summary(...) sometimes generates function 'panels_panel_context_get_display' not found errors when trying to acces the edit panel page (user/%user) for a Panel containing a Http response Variant.
The solution is to load the panel_context.inc file just before the function call, like this:
module_load_include('inc', 'panels', 'plugins/task_handlers/panel_context');
Comment | File | Size | Author |
---|---|---|---|
#3 | 967590-not-panels-at-all.patch | 4.38 KB | merlinofchaos |
patch.diff | 633 bytes | z7 | |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedThat solution can't be correct.
1) Page Manager has no dependency on Panels, so directly referencing one if its files is wrong.
2) That's a task handler plugin. Even if we were to directly reference a Panels file, we'd use page_manager_get_task_handler(). That said, 1) is more important.
So that leads us to the question...why is a Panels function getting called when a page manager task handler is in place?
Comment #2
un11imig CreditAttribution: un11imig commentedThe patch works for me.
Thanks!
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedThe problem is that the HTTP Response task handler is cut & pasted from Panels and I didn't sufficiently scrub it. Sorry about that.
Patch attach. Fixes already committed.
Comment #5
netsensei CreditAttribution: netsensei commentedJust ran into this problem while tinkering with the page manager without having panels enabled. Patch fixes the issue. Thanks!
Comment #6
merlinofchaos CreditAttribution: merlinofchaos commentedWhy did you re-open this? I said in #3 it was committed. :/
Comment #7
merlinofchaos CreditAttribution: merlinofchaos commentedComment #8
Pls CreditAttribution: Pls commentedIt would be great to have new version of ctools as we now have to use 1.x-dev version, in order to enjoy this commit and patch. Thanks!