Hi,

i updated Panels to 3.7 and have the following problem: If I try to add a view in a mini panel, the view will be always added to panels as "Default"-View, not as "block", "page" etc.... I can select these settings, but they are not used by the mini-panel.

Comments

merlinofchaos’s picture

Status: Active » Postponed (maintainer needs more info)

Can you please be more specific about what you mean? Walk me through what happens and what you observe.

a.siebel’s picture

I'm in the mini-panel edit screen and add a views with the "Add content"-Button. Then i select "views" and the view e.g. "news".

On the next screen i select the display "page" (instead of "defaults") and set the options for this view. After confirming this page i'm redirected to the content tab of the panel, but there was added the view "news-default" instead of "news-page".

I use Chaos Tools 1.7 and Panels 3.7 .

victor.b’s picture

I've the same problem after update to panels 3.7 and ctools 1.7

mrlava’s picture

Status: Postponed (maintainer needs more info) » Active

Also having the same issue, no matter what I select for the view it just selects "Using display Defaults."

Using:
Chaos tool suite 6.x-1.7
Panels 6.x-3.x-dev (2010-Jul-26)

merlinofchaos’s picture

Status: Active » Fixed

Ok, I have reproduced this and it is fixed by the patch in #865704: Fatal error in panels/plugins/display_renderers/panels_renderer_editor.class.php on line 1669: Function name must be a string -- which is already committed to -dev.

mrlava’s picture

Status: Fixed » Active

Earl,

I am using -dev as stated in my previous post and still getting this error.

mrlava’s picture

Status: Active » Fixed

woops, sry, wrong -dev =)

merlinofchaos’s picture

Heh, sorry, yes. It was committed after the date in your post. =)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

fionad’s picture

Hi this is still happening to me. do I install the dev of ctools to fix?

strae’s picture

Hi all, this is happening now to me too, strange, becose when i installed the module it used to works.

In fact, i have a mini-panels i created that correctly has 3 different displays from the same views, but i noticed that now i see 'No info' in the area where usually there are the content settings (css, arguments, etc..).

I've been able to create a mini-panels with views display different from 'Default' only importing the code, but then the content created in that way doesnt send arguments to the view, i used this code:

$mini = new stdClass;
$mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */
$mini->api_version = 1;
$mini->name = 'locandine_header_centro';
$mini->category = '';
$mini->title = 'Immagini Locandine Header Centro Estetico';
$mini->admin_description = 'La visualizzazione delle 3 locandine nel centro estetico, con titolo e sottotitolo';
$mini->requiredcontexts = array();
$mini->contexts = array();
$mini->relationships = array();
$display = new panels_display;
$display->api_version = 1;
$display->layout = 'threecol_33_34_33';
$display->layout_settings = array();
$display->panel_settings = array(
  'style_settings' => array(
    'default' => NULL,
    'left' => NULL,
    'middle' => NULL,
    'right' => NULL,
  ),
);
$display->cache = array(
  'method' => 0,
);
$display->title = '';
$display->content = array();
$display->panels = array();
  $pane = new stdClass;
  $pane->api_version = 1;
  $pane->pid = 'new-1';
  $pane->panel = 'left';
  $pane->type = 'block';
  $pane->subtype = 'views-immagini_header-block_4';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'override_pager_settings' => 0,
    'use_pager' => 0,
    'nodes_per_page' => '1',
    'pager_id' => '',
    'offset' => '0',
    'more_link' => 0,
    'feed_icons' => 0,
    'panel_args' => 1,
    'link_to_view' => 0,
    'args' => 'sx',
    'url' => '',
    'override_title' => 0,
    'override_title_text' => '',
  );
  $pane->cache = array();
  $pane->style = array(
    'settings' => NULL,
  );
  $pane->css = array();
  $pane->extras = array();
  $pane->position = 0;
  $display->content['new-1'] = $pane;
  $display->panels['left'][0] = 'new-1';
  $pane = new stdClass;
  $pane->api_version = 1;
  $pane->pid = 'new-2';
  $pane->panel = 'middle';
  $pane->type = 'block';
  $pane->subtype = 'views-immagini_header-block_4';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'override_pager_settings' => 0,
    'use_pager' => 0,
    'nodes_per_page' => '1',
    'pager_id' => '',
    'offset' => '0',
    'more_link' => 0,
    'feed_icons' => 0,
    'panel_args' => 1,
    'link_to_view' => 0,
    'args' => 'cx',
    'url' => '',
    'override_title' => 0,
    'override_title_text' => '',
  );
  $pane->cache = array();
  $pane->style = array(
    'settings' => NULL,
  );
  $pane->css = array();
  $pane->extras = array();
  $pane->position = 0;
  $display->content['new-2'] = $pane;
  $display->panels['middle'][0] = 'new-2';
  $pane = new stdClass;
  $pane->api_version = 1;
  $pane->pid = 'new-3';
  $pane->panel = 'right';
  $pane->type = 'block';
  $pane->subtype = 'views-immagini_header-block_4';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'override_pager_settings' => 0,
    'use_pager' => 0,
    'nodes_per_page' => '1',
    'pager_id' => '',
    'offset' => '0',
    'more_link' => 0,
    'feed_icons' => 0,
    'panel_args' => 1,
    'link_to_view' => 0,
    'args' => 'dx',
    'url' => '',
    'override_title' => 0,
    'override_title_text' => '',
  );
  $pane->cache = array();
  $pane->style = array(
    'settings' => NULL,
  );
  $pane->css = array();
  $pane->extras = array();
  $pane->position = 0;
  $display->content['new-3'] = $pane;
  $display->panels['right'][0] = 'new-3';
$display->hide_title = PANELS_TITLE_FIXED;
$display->title_pane = 'new-1';
$mini->display = $display;

strae’s picture

The issue affect just the panels_mini sub-module, Panels itself is working great.

Apfel007’s picture

subscribe

xamanu’s picture

I can confirm this error with version 3.9 on configuring Variants for a panels page. I helped myself by exporting the panels as a feature and changed the respective $pane->subtype in code to fit the name of the views display.