unable to import mini-panels

dafeder - August 5, 2009 - 05:22
Project:Panels
Version:6.x-3.0-rc1
Component:Mini panels
Category:bug report
Priority:normal
Assigned:sdboyer
Status:closed
Description

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.

#1

sdboyer - August 5, 2009 - 18:29
Assigned to:Anonymous» 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.

#2

sdboyer - August 5, 2009 - 19:01
Status:active» 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.

#3

dafeder - August 8, 2009 - 13:41
Status: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.

#4

dafeder - August 8, 2009 - 14:06

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;

#5

merlinofchaos - September 8, 2009 - 18:30
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?

#6

dafeder - September 9, 2009 - 15:50

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.

#7

System Message - September 23, 2009 - 16:00
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.