When I tried to "export" a Panels page from my DEV site and "import" it to my QA site I get this message, "Unable to get a panel page out of that."

Comments

sdboyer’s picture

Status: Active » Postponed (maintainer needs more info)

Either you did something wrong (missed a piece in your copy/pasting, something like that), or you may be butting into one of the known issues with the exporter that we've fixed since rc1a. (Wow, we REALLY need another release...). Either way, give it another try or two, copy/pasting very carefully (and ensuring that the one on your dev site is working properly, first). If you still get the same message, please post the output of the exporter into this issue - make sure you use code tags to save my eyes, please!

asugene’s picture

I was able to repeat it everytime. I built a panel page step-by-step to see if I can find the problem. It appears when I "Add a Node" under Content for a panel page and save, I get this message when I try to import it.

kevinwalsh’s picture

I replicated this error, and the fix, on 5.x-2.0-rc1a. It appears it was the node context that was causing the problem (deleting the node pane without deleting the context did not fix).

sdboyer’s picture

Thanks for the confirmations, but you missed the key part of the request: I need you to paste in the contents of the faulty export.

You're using -dev when you do this? As I said, the it's an outstanding issue in rc1a; my only concern here is if it's still occuring in -dev.

liquidcms’s picture

just confirming.. i get this same issue and yes, i am on 5.x-2.0-rc1a, will try dev version now.

liquidcms’s picture

nope, doesn't work with latest 5.x-dev release either

/**
 * Implementation of hook_default_panel_pages()
 */
function foo_default_panel_pages() {
  $page = new stdClass();
  $page->pid = 'new';
    $page->name = 'as_seen_on_tv';
    $page->title = 'As Seen On Tv';
    $page->arguments = array();
    $page->relationships = array();
    $page->access = array();
    $page->path = 'as-seen-on-tv';
    $page->css_id = '';
    $page->css = '';
    $page->no_blocks = '0';
    $page->switcher_options = array();
    $page->menu = '0';
    $page->menu_tab = '0';
    $page->menu_tab_weight = '0';
    $page->menu_title = '';
    $page->menu_tab_default = '0';
    $page->menu_tab_default_parent_type = 'tab';
    $page->menu_parent_title = '';
    $page->menu_parent_tab_weight = '0';
  $page->contexts = array();
    $page->contexts['0'] = array(
      'name' => 'vocabulary',
      'id' => 1,
      'identifier' => 'Taxonomy vocabulary',
      'keyword' => 'Categories',
      'context_settings' => array (
      'vid' => '3',
    ),
    );
  $display = new panels_display();
  $display->did = 'new';
  $display->layout = 'flexible';
  $display->layout_settings = array (
    'width_type' => '%',
    'percent_width' => '100',
    'rows' => '5',
    'row_1' => 
    array (
      'columns' => '1',
      'width_1' => '100',
      'names' => 
      array (
        0 => 'Top',
      ),
    ),
    'row_2' => 
    array (
      'columns' => '1',
      'width_1' => '100',
      'names' => 
      array (
        0 => 'Most Popular',
      ),
    ),
    'row_3' => 
    array (
      'columns' => '2',
      'width_1' => '25',
      'width_2' => '75',
      'names' => 
      array (
        0 => 'Selector',
        1 => 'Products',
      ),
    ),
    'row_4' => 
    array (
      'columns' => '1',
      'width_1' => '100',
      'names' => 
      array (
        0 => 'YouTube',
      ),
    ),
    'row_5' => 
    array (
      'columns' => '1',
      'width_1' => '100',
      'names' => 
      array (
        0 => 'Ads',
      ),
    ),
    'sidebars' => 
    array (
      'left' => 0,
      'left_width' => 200,
      'right' => 0,
      'right_width' => 200,
      'width_type' => 'px',
    ),
  );
  $display->panel_settings = array (
    'style' => 'default',
    'style_settings' => 
    array (
    ),
    'edit_style' => 'Edit style settings',
    'individual' => 0,
    'panel' => 
    array (
      'row_1_1' => 
      array (
        'style' => '',
        'edit_style' => 'Edit style settings',
      ),
      'row_2_1' => 
      array (
        'style' => '',
        'edit_style' => 'Edit style settings',
      ),
      'row_3_1' => 
      array (
        'style' => '',
        'edit_style' => 'Edit style settings',
      ),
      'row_3_2' => 
      array (
        'style' => '',
        'edit_style' => 'Edit style settings',
      ),
      'row_4_1' => 
      array (
        'style' => '',
        'edit_style' => 'Edit style settings',
      ),
      'row_5_1' => 
      array (
        'style' => '',
        'edit_style' => 'Edit style settings',
      ),
    ),
    'did' => '1',
  );
  $display->cache = array();
  $display->title = 'As Seen On Tv';
  $display->hide_title = '0';
  $display->content = array();
  $display->panels = array();
    $pane = new stdClass();
      $pane->pid = 'new-1';
      $pane->panel = 'row_1_1';
      $pane->type = 'custom';
      $pane->subtype = 'custom';
      $pane->shown = '1';
      $pane->access = array();
      $pane->visibility = '';
      $pane->configuration = array (
        'style' => 'default',
        'override_title' => 0,
        'override_title_text' => '',
        'css_id' => '',
        'css_class' => '',
        'title' => 'The blah blah sub-heading catchy phrase',
        'body' => 'Thinking of buying that snuggly blanket that slices, dices,
      absorbs ten times its weight in inexplicably blue water and
      enhances your maleness? Be careful. That might not be all
      you get. Infomercials can be a lot of fun and some products
      live up to their hype. But others? Let\'s just say there\'s a reason
      they\'re not available in stores. Before you pick up the phone,
      check in with us. And don\'t worry: the "FREE sideburn trimmer
      (a $15 value!) if you order in the next ten minutes!" will be
      available whenever you call.',
        'format' => '3',
      );
      $pane->cache = array();
    $display->content['new-1'] = $pane;
    $display->panels['row_1_1'][0] = 'new-1';
    $pane = new stdClass();
      $pane->pid = 'new-2';
      $pane->panel = 'row_2_1';
      $pane->type = 'custom';
      $pane->subtype = 'custom';
      $pane->shown = '1';
      $pane->access = array();
      $pane->visibility = '';
      $pane->configuration = array (
        'style' => 'default',
        'override_title' => 0,
        'override_title_text' => '',
        'css_id' => '',
        'css_class' => '',
        'title' => '',
        'body' => '<h2>Our Reviews: See What Lives Up to the Hype</h2>',
        'format' => '3',
      );
      $pane->cache = array();
    $display->content['new-2'] = $pane;
    $display->panels['row_2_1'][0] = 'new-2';
    $pane = new stdClass();
      $pane->pid = 'new-3';
      $pane->panel = 'row_2_1';
      $pane->type = 'views2';
      $pane->subtype = 'Most_Popular_ASOTV';
      $pane->shown = '1';
      $pane->access = array();
      $pane->visibility = '';
      $pane->configuration = array (
        'style' => 'default',
        'override_title' => 0,
        'override_title_text' => '',
        'css_id' => '',
        'css_class' => '',
        'title' => 'Most Popular',
        'name' => 'Most_Popular_ASOTV',
      );
      $pane->cache = array();
    $display->content['new-3'] = $pane;
    $display->panels['row_2_1'][1] = 'new-3';
    $pane = new stdClass();
      $pane->pid = 'new-4';
      $pane->panel = 'row_3_1';
      $pane->type = 'block';
      $pane->subtype = 'block-43';
      $pane->shown = '1';
      $pane->access = array();
      $pane->visibility = '';
      $pane->configuration = array (
        'style' => 'default',
        'override_title' => 1,
        'override_title_text' => 'By Category',
        'css_id' => '',
        'css_class' => '',
        'module' => 'block',
        'delta' => '43',
        'block_visibility' => 0,
        'block_settings' => 
        array (
          'info' => 'ASOTV Category Selector',
          'body' => '<?php
      include(drupal_get_path(\'module\', \'cs\') .\'/block_code/asontv_category_selector.php\');
      ?>',
          'format' => '2',
        ),
      );
      $pane->cache = array();
    $display->content['new-4'] = $pane;
    $display->panels['row_3_1'][0] = 'new-4';
    $pane = new stdClass();
      $pane->pid = 'new-5';
      $pane->panel = 'row_3_2';
      $pane->type = 'views2';
      $pane->subtype = 'asot_by_category';
      $pane->shown = '1';
      $pane->access = array();
      $pane->visibility = '';
      $pane->configuration = array (
        'style' => 'default',
        'override_title' => 1,
        'override_title_text' => '%title',
        'css_id' => '',
        'css_class' => '',
        'title' => 'ASOTV By Category',
        'name' => 'asot_by_category',
      );
      $pane->cache = array();
    $display->content['new-5'] = $pane;
    $display->panels['row_3_2'][0] = 'new-5';
    $pane = new stdClass();
      $pane->pid = 'new-6';
      $pane->panel = 'row_4_1';
      $pane->type = 'custom';
      $pane->subtype = 'custom';
      $pane->shown = '1';
      $pane->access = array();
      $pane->visibility = '';
      $pane->configuration = array (
        'style' => 'default',
        'override_title' => 0,
        'override_title_text' => '',
        'css_id' => '',
        'css_class' => '',
        'title' => 'The Commercials You Love (or Love to Hate)',
        'body' => ' <object width="746" height="413"><param name="movie"
       value="http://www.youtube.com/cp/vjVQa1PpcFMiDIoJNnvGkkS8de3PbtvtIyMAPVU40Tk="></param><embed
       src="http://www.youtube.com/cp/vjVQa1PpcFMiDIoJNnvGkkS8de3PbtvtIyMAPVU40Tk="
       type="application/x-shockwave-flash" width="746"
       height="413"></embed></object>
      ',
        'format' => '3',
      );
      $pane->cache = array();
    $display->content['new-6'] = $pane;
    $display->panels['row_4_1'][0] = 'new-6';
    $pane = new stdClass();
      $pane->pid = 'new-7';
      $pane->panel = 'row_5_1';
      $pane->type = 'custom';
      $pane->subtype = 'custom';
      $pane->shown = '1';
      $pane->access = array();
      $pane->visibility = '';
      $pane->configuration = array (
        'style' => 'default',
        'override_title' => 0,
        'override_title_text' => '',
        'css_id' => '',
        'css_class' => '',
        'title' => '',
        'body' => 'Google AdSense placeholder',
        'format' => '3',
      );
      $pane->cache = array();
    $display->content['new-7'] = $pane;
    $display->panels['row_5_1'][0] = 'new-7';
  $page->display = $display;
  $page->displays = array();
  $pages['as_seen_on_tv'] = $page;


  return $pages;
}
liquidcms’s picture

hmm.. works now :).. i guess the separate export function doesn't do the same export as the export tab from within a single pane

joachim’s picture

Status: Postponed (maintainer needs more info) » Active

Getting it too with this:

$page = new stdClass();
$page->pid = 'new';
  $page->name = 'home';
  $page->title = '';
  $page->arguments = array();
  $page->relationships = array();
  $page->access = array();
  $page->path = 'home';
  $page->css_id = 'home';
  $page->css = '';
  $page->no_blocks = '0';
  $page->switcher_options = array();
  $page->menu = '0';
  $page->menu_tab = '0';
  $page->menu_tab_weight = '0';
  $page->menu_title = '';
  $page->menu_tab_default = '0';
  $page->menu_tab_default_parent_type = 'tab';
  $page->menu_parent_title = '';
  $page->menu_parent_tab_weight = '0';
$page->contexts = array();
  $page->contexts['6'] = array(
    'name' => 'node';
    'id' => 7;
    'identifier' => 'Hello';
    'keyword' => 'node_1';
    'context_settings' => array (
      'node' => '',
      'nid' => '66',
    );
  );
  $page->contexts['7'] = array(
    'name' => 'node';
    'id' => 8;
    'identifier' => 'Who are you: artist';
    'keyword' => 'node';
    'context_settings' => array (
      'node' => '',
      'nid' => '103',
    );
  );
  $page->contexts['8'] = array(
    'name' => 'node';
    'id' => 9;
    'identifier' => 'Who are you: listen';
    'keyword' => 'node_2';
    'context_settings' => array (
      'node' => 'Prefer to listen? [nid: 104]',
      'nid' => '104',
    );
  );
  $page->contexts['9'] = array(
    'name' => 'node';
    'id' => 10;
    'identifier' => 'Who are you: info';
    'keyword' => 'node_3';
    'context_settings' => array (
      'node' => 'Looking for information? [nid: 105]',
      'nid' => '105',
    );
  );
  $page->contexts['10'] = array(
    'name' => 'node';
    'id' => 11;
    'identifier' => 'SAM Network';
    'keyword' => 'node_4';
    'context_settings' => array (
      'node' => 'Sam Network [nid: 142]',
      'nid' => '142',
    );
  );
$display = new panels_display();
$display->did = 'new';
$display->layout = 'twocol_stacked';
$display->layout_settings = array (
  'width_type' => '%',
  'percent_width' => '100',
  'rows' => '3',
  'row_1' => 
  array (
    'columns' => '1',
    'width_1' => '100',
    'names' => 
    array (
      0 => 'Top',
    ),
  ),
  'row_2' => 
  array (
    'columns' => '3',
    'width_1' => '25',
    'width_2' => '50',
    'width_3' => '25',
    'names' => 
    array (
      0 => 'Left',
      1 => 'Middle',
      2 => 'Right',
    ),
  ),
  'row_3' => 
  array (
    'columns' => '1',
    'width_1' => '100',
    'names' => 
    array (
      0 => 'Bottom',
    ),
  ),
  'sidebars' => 
  array (
    'left' => 0,
    'left_width' => 200,
    'right' => 0,
    'right_width' => 200,
    'width_type' => 'px',
  ),
);
$display->panel_settings = array (
  'style' => 'default',
  'style_settings' => 
  array (
  ),
  'edit_style' => 'Edit style settings',
  'individual' => 0,
  'panel' => 
  array (
    'row_1_1' => 
    array (
      'style' => '',
      'edit_style' => 'Edit style settings',
    ),
    'row_2_1' => 
    array (
      'style' => '',
      'edit_style' => 'Edit style settings',
    ),
    'row_2_2' => 
    array (
      'style' => '',
      'edit_style' => 'Edit style settings',
    ),
    'row_2_3' => 
    array (
      'style' => '',
      'edit_style' => 'Edit style settings',
    ),
    'row_3_1' => 
    array (
      'style' => '',
      'edit_style' => 'Edit style settings',
    ),
  ),
  'did' => '1',
);
$display->content = array();
$display->panels = array();
  $pane = new stdClass();
    $pane->pid = 'new-1';
    $pane->panel = 'left';
    $pane->type = 'node';
    $pane->subtype = 'node';
    $pane->access = array();
    $pane->configuration = array (
      'style' => 'default',
      'override_title' => 1,
      'override_title_text' => '',
      'css_id' => '',
      'css_class' => '',
      'nid' => '314',
      'teaser' => 0,
      'links' => 0,
      'leave_node_title' => 0,
      'identifier' => '',
      'validate_me' => true,
    );
    $pane->shown = '1';
  $display->content['new-1'] = $pane;
  $display->panels['left'][0] = 'new-1';
  $pane = new stdClass();
    $pane->pid = 'new-2';
    $pane->panel = 'left';
    $pane->type = 'block';
    $pane->subtype = 'quicktabs-1';
    $pane->access = array();
    $pane->configuration = array (
      'style' => 'default',
      'override_title' => 1,
      'override_title_text' => 'From the SAM Network',
      'css_id' => '',
      'css_class' => '',
      'module' => 'quicktabs',
      'delta' => '1',
      'block_visibility' => 0,
    );
    $pane->shown = '1';
  $display->content['new-2'] = $pane;
  $display->panels['left'][1] = 'new-2';
  $pane = new stdClass();
    $pane->pid = 'new-3';
    $pane->panel = 'right';
    $pane->type = 'views';
    $pane->subtype = 'featured_node_by_queue';
    $pane->access = array();
    $pane->configuration = array (
      'context' => 
      array (
        0 => 'empty',
      ),
      'style' => 'default',
      'override_title' => 1,
      'override_title_text' => 'Featured',
      'css_id' => '',
      'css_class' => '',
      'view' => 'featured_node_by_queue',
      'type' => 'embed',
      'link_to_view' => 0,
      'more_link' => 0,
      'feed_icons' => 0,
      'use_pager' => 0,
      'pager_id' => 1,
      'nodes_per_page' => '1',
      'offset' => '',
      'panel_args' => 0,
      'args' => '1',
      'url' => '',
    );
    $pane->shown = '1';
  $display->content['new-3'] = $pane;
  $display->panels['right'][0] = 'new-3';
  $pane = new stdClass();
    $pane->pid = 'new-4';
    $pane->panel = 'right';
    $pane->type = 'views';
    $pane->subtype = 'current_home_events';
    $pane->access = array();
    $pane->configuration = array (
      'style' => 'default',
      'override_title' => 0,
      'override_title_text' => '',
      'css_id' => '',
      'css_class' => '',
      'view' => 'current_home_events',
      'type' => 'embed',
      'link_to_view' => 0,
      'more_link' => 0,
      'feed_icons' => 0,
      'use_pager' => 0,
      'pager_id' => 1,
      'nodes_per_page' => '10',
      'offset' => '',
      'panel_args' => 0,
      'args' => '',
      'url' => '',
    );
    $pane->shown = '1';
  $display->content['new-4'] = $pane;
  $display->panels['right'][1] = 'new-4';
  $pane = new stdClass();
    $pane->pid = 'new-5';
    $pane->panel = 'right';
    $pane->type = 'views';
    $pane->subtype = 'current_home_features';
    $pane->access = array();
    $pane->configuration = array (
      'style' => 'default',
      'override_title' => 0,
      'override_title_text' => '',
      'css_id' => '',
      'css_class' => '',
      'view' => 'current_home_features',
      'type' => 'embed',
      'link_to_view' => 0,
      'more_link' => 0,
      'feed_icons' => 0,
      'use_pager' => 0,
      'pager_id' => 1,
      'nodes_per_page' => '10',
      'offset' => '',
      'panel_args' => 0,
      'args' => '',
      'url' => '',
    );
    $pane->shown = '1';
  $display->content['new-5'] = $pane;
  $display->panels['right'][2] = 'new-5';
  $pane = new stdClass();
    $pane->pid = 'new-6';
    $pane->panel = 'top';
    $pane->type = 'node_content';
    $pane->subtype = 'content';
    $pane->access = array();
    $pane->configuration = array (
      'context' => 'context_node_7',
      'style' => 'collapsing',
      'override_title' => 0,
      'override_title_text' => '',
      'css_id' => '',
      'css_class' => 'landing-intro',
      'link' => 0,
      'teaser' => 0,
      'page' => 0,
      'links' => 0,
      'no_extras' => 1,
      'identifier' => '',
    );
    $pane->shown = '1';
  $display->content['new-6'] = $pane;
  $display->panels['top'][0] = 'new-6';
$page->display = $display;
$page->displays = array();
sun.core’s picture

Status: Active » Closed (won't fix)

Sorry, but Panels for D5 will not see any further fixes, since Panels for D6 simply advanced too much and no one cares for D5.