Views / Panels / Panelizer / Ctools latest -dev's, this shouldn't be affected by panelizer though.
I have a view with a context pane, which I am using to display the view in a panel page. The first time the page is viewed after clearning the cache the view is displayed correctly. After the first page view I only get non-views panes (or nothing if there are none).
I have attempted to trace this for the view header and it looks like views_content_context_get_output() attaches the view object as $context->output, which then gets returned to views_content_views_header_content_type_render(). At this point it tries to assign $output['header'] to $block->content, but that array element doesn't exist - header is at $output['view']->header, and its neither markup or a renderable array (as far as i can tell).
Strangely, if I add an exposed filter or sort to the view, everything renders correctly. I've managed to replicate the issue using bartik instead of a custom theme, so that rules out a lot of errors.
Here's a backtrace if it helps.
| 1 0 views_content_views_header_content_type_render() /home/sam/www/gateway/docroot/sites/all/modules/contrib/ctools/views_content/plugins/content_types/views_header.inc:32
| 2 1 ctools_content_render() /home/sam/www/gateway/docroot/sites/all/modules/contrib/ctools/includes/content.inc:280
| 3 2 panels_renderer_standard->render_pane_content() /home/sam/www/gateway/docroot/sites/all/modules/contrib/panels/plugins/display_renderers/panels_renderer_standard.class.php:553
| 4 3 panels_renderer_standard->render_pane() /home/sam/www/gateway/docroot/sites/all/modules/contrib/panels/plugins/display_renderers/panels_renderer_standard.class.php:484
| 5 4 panels_renderer_standard->render_panes() /home/sam/www/gateway/docroot/sites/all/modules/contrib/panels/plugins/display_renderers/panels_renderer_standard.class.php:465
| 6 5 panels_renderer_standard->render_layout() /home/sam/www/gateway/docroot/sites/all/modules/contrib/panels/plugins/display_renderers/panels_renderer_standard.class.php:390
| 7 6 panels_renderer_standard->render() /home/sam/www/gateway/docroot/sites/all/modules/contrib/panels/plugins/display_renderers/panels_renderer_standard.class.php:358
| 8 7 panels_display->render() /home/sam/www/gateway/docroot/sites/all/modules/contrib/panels/panels.module:752
| 9 8 panels_render_display() /home/sam/www/gateway/docroot/sites/all/modules/contrib/panels/panels.module:1084
| 10 9 panels_panel_context_render() /home/sam/www/gateway/docroot/sites/all/modules/contrib/panels/plugins/task_handlers/panel_context.inc:328
| 11 10 ctools_context_handler_render_handler() /home/sam/www/gateway/docroot/sites/all/modules/contrib/ctools/includes/context-task-handler.inc:121
| 12 11 ctools_context_handler_render() /home/sam/www/gateway/docroot/sites/all/modules/contrib/ctools/includes/context-task-handler.inc:44
| 13 12 page_manager_page_execute() /home/sam/www/gateway/docroot/sites/all/modules/contrib/ctools/page_manager/plugins/tasks/page.inc:322
| 14 13 call_user_func_array() /home/sam/www/gateway/docroot/includes/menu.inc:0
| 15 14 menu_execute_active_handler() /home/sam/www/gateway/docroot/includes/menu.inc:517
| 16 15 {main} /home/sam/www/gateway/docroot/index.php:21
Cheers,
Sam
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedIs the view and context pane you have to replicate this relatively simple? If so, exports might help a lot in tracing this one down.
Comment #2
samhassell CreditAttribution: samhassell commentedQuick response :)
Export below:
Comment #3
samhassell CreditAttribution: samhassell commentedReplicated on a clean install.
Enabled page manager, panels and views content panes, views_ui and dependencies, all latest -dev versions.
1. Create a view with a context display. Do not add an exposed filter to it, do not add a header to it.
3. Create a custom panel page with a view context related to your view.
4. Add the view context panes to the panel page. Add header, rows & pager context panes.
5. View the page. You should get the error:
and the view will not render.
6. Go back to the view and add an exposed filter
7. Go back to the panel page again and it works.
Comment #4
Renee S CreditAttribution: Renee S commentedConfirmed, I ran into this bug, the process in #3 worked to get the view loading again.
Comment #5
alexkb CreditAttribution: alexkb commentedI'm also having this issue, but for some reason, the view isn't even showing up after I add a exposed form element to the panel. Have ended up giving up on views context and now just using a standard view display.
Comment #5.0
alexkb CreditAttribution: alexkb commentedtypo