I have been unable to import mini-panels so far. I get to a settings screen, hit "save and proceed", then a context screen, "save and proceed", then get to a content screen which is blank. Back at the mini-panel list, I see a panel with no name, which I can now not delete or modify.

Comments

sdboyer’s picture

Assigned: Unassigned » sdboyer

Did you update both ctools and Panels to the most recent versions?

If you could paste in the code of the exported mini-panel you're trying to import, that would help.

sdboyer’s picture

Status: Active » Closed (duplicate)

Actually, see #530104: can't import mini panels from code, this may be a dupe of that. Please change the status back if it's actually something else.

dafeder’s picture

Status: Closed (duplicate) » Active

Not a duplicate, if I understand correctly #530104 is talking about "importing" a minipanel in module code, I'm just trying to cut-and-paste copy a minipanel from one site to another, both running panels/ctools rc-1. Here is an export, there are other mini-panels I've had the same problem with.

Last time I tried, I got to a point where it said my mini-panel had been saved (sorry I didn't copy the text but I believe it was at the context screen) but when I went back to the mini-panels list, it was gone.

dafeder’s picture

Whoops, here is the export:

$mini = new stdClass;
$mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */
$mini->api_version = 1;
$mini->name = 'about_the_author';
$mini->category = '';
$mini->title = 'About the Author';
$mini->requiredcontexts = array();
$mini->contexts = array();
$mini->relationships = array();
$display = new panels_display;
$display->layout = 'onecol';
$display->layout_settings = '';
$display->panel_settings = array();
$display->cache = array();
$display->title = '';
$display->hide_title = FALSE;
$display->content = array();
$display->panels = array();
  $pane = new stdClass;
  $pane->pid = 'new-1';
  $pane->panel = 'middle';
  $pane->type = 'views';
  $pane->subtype = 'abouttheauthor';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'nodes_per_page' => '10',
    'pager_id' => '1',
    'use_pager' => 0,
    'offset' => '0',
    'more_link' => 0,
    'feed_icons' => 0,
    'panel_args' => 0,
    'link_to_view' => 0,
    'args' => '',
    'url' => '',
    'display' => 'block_1',
    'override_title' => 1,
    'override_title_text' => '',
  );
  $pane->cache = array();
  $pane->style = array();
  $pane->css = array();
  $pane->extras = array();
  $pane->position = 0;
  $display->content['new-1'] = $pane;
  $display->panels['middle'][0] = 'new-1';
  $pane = new stdClass;
  $pane->pid = 'new-2';
  $pane->panel = 'middle';
  $pane->type = 'views';
  $pane->subtype = 'authorsrecentblogs';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'nodes_per_page' => '3',
    'pager_id' => '1',
    'use_pager' => 0,
    'offset' => '0',
    'more_link' => 0,
    'feed_icons' => 0,
    'panel_args' => 0,
    'link_to_view' => 0,
    'args' => '',
    'url' => '',
    'display' => 'block_1',
    'override_title' => 0,
    'override_title_text' => '',
  );
  $pane->cache = array();
  $pane->style = array();
  $pane->css = array();
  $pane->extras = array();
  $pane->position = 1;
  $display->content['new-2'] = $pane;
  $display->panels['middle'][1] = 'new-2';
$mini->display = $display;
merlinofchaos’s picture

Status: Active » Fixed

I was able to import this okay in 3.0 -- I seem to recall fixing a bug with imports, too. Perhaps #530104: can't import mini panels from code fixed it?

dafeder’s picture

Merlin, not sure when I will have time to upgrade and test (now past the point in the site I was working on that needed this) but will let you know if I do. Thanks.

Status: Fixed » Closed (fixed)

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