I get the following error on some panel pages on my site when i try to edit the page content

Fatal error: Call to a member function set_display() on a non-object in /imavol/apache/www/sites/all/modules/ctools/views_content/plugins/content_types/views_panes.inc on line 430

Comments

cangeceiro’s picture

Status: Active » Closed (fixed)

found the issue own my own, though this may be worth adding to the codebase. The problem occurred because i had a view that had been long deleted from the site. changing the following code to views_panes.inc allowed me to get past this

before:

function views_content_views_panes_content_type_admin_info($subtype, $conf, $contexts) {
  $info = array();

  list($view_name, $display_name) = explode('-', $subtype);
  $view = views_get_view($view_name);

  $view->set_display($display_name);

after:

function views_content_views_panes_content_type_admin_info($subtype, $conf, $contexts) {
  $info = array();

  list($view_name, $display_name) = explode('-', $subtype);
  $view = views_get_view($view_name);
  if (!is_object($view)) return;
  $view->set_display($display_name);
merlinofchaos’s picture

merlinofchaos’s picture

It is. The 'search' function in the issue queue is not the greatest, but it does work.

rakeshakurathi’s picture

it works
i have the same problem