I've tried creating a simple custom panel with 25/50/25 layout and populating it with preexisting node contents. Upon walking through the wizard and saving the panel page, accessing the custom path results in a blank page.

Tried reinstalling the Panels with a fresh install, see no difference.

Has anyone experienced similar behavior with 6.x-3.0-alpha4 code?

Here is the export with handlers:

$page = new stdClass;
$page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
$page->name = 'index_page';
$page->admin_title = 'Dashboard';
$page->path = 'node/foo';
$page->access = array(
  'logic' => 'and',
);
$page->multiple = FALSE;
$page->menu = array(
  'type' => 'none',
  'title' => '',
  'name' => 'navigation',
  'weight' => '0',
  'parent' => array(
    'type' => 'none',
    'title' => '',
    'name' => 'navigation',
    'weight' => '0',
  ),
);
$page->arguments = array();
$page->default_handlers = array();
$handler = new stdClass;
$handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
$handler->name = 'page_index_page_panel_context';
$handler->task = 'page';
$handler->subtask = 'index_page';
$handler->handler = 'panel_context';
$handler->weight = 0;
$handler->conf = array(
  'autogenerate_title' => TRUE,
  'title' => 'Panel',
  'no_blocks' => FALSE,
  'css_id' => '',
  'css' => '',
  'css_cache_file' => '',
  'contexts' => array(),
  'relationships' => array(),
  'access' => array(
    'logic' => 'and',
  ),
  'did' => '4',
  'css_cache' => '',
);
$display = new panels_display;
$display->layout = 'twocol_stacked';
$display->layout_settings = array();
$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->did = 4;
  $pane->panel = 'top';
  $pane->type = 'node';
  $pane->subtype = 'node';
  $pane->shown = TRUE;
  $pane->access = array();
  $pane->configuration = array(
    'override_title' => 0,
    'override_title_text' => '',
    'nid' => 'Наши спонсоры',
    'teaser' => 1,
    'links' => 1,
    'leave_node_title' => 0,
    'identifier' => '',
    'validate_me' => TRUE,
  );
  $pane->cache = array();
  $pane->style = array();
  $pane->css = array();
  $pane->extras = array();
  $pane->position = 0;
  $display->content['new-1'] = $pane;
  $display->panels['top'][0] = 'new-1';
$handler->conf['display'] = $display;
$page->default_handlers[$handler->name] = $handler;

Comments

mike15’s picture

Title: Panel pages results in an blank page » Panel pages results in a blank page
mike15’s picture

I've tried with multiple layouts, in the example above the "Two column stacked" is shown.

michelle’s picture

The Panels Pages module doesn't exist anymore in Panels 3. Are you sure you have the right version there?

Michelle

petednz’s picture

Some of us are using the patch from here http://drupal.org/node/307980 and do have 'pages' functioning for organic groups. but maybe that is irrelevant.

mike15’s picture

I am not clear on what you might be implying in terms of Panel pages, but the core Panels module has references to Panel pages as well. Nevertheless, here is what I have enabled if that helps....

Panels Enabled	Name	Version	Description

Mini panels	6.x-3.0-alpha4	Create mini panels that can be used as blocks by Drupal and panes by other panel modules.
Depends on: Panels (enabled), Chaos tools (enabled)

Node panes	6.x-3.0-alpha4	Allows embedding specific nodes into panes without using contexts. While it is less powerful than using a node context, it can be simpler to use. Enable this module if you want nodes directly embedded into panel displays.
Depends on: Panels (enabled), Chaos tools (enabled)

Panel nodes	6.x-3.0-alpha4	Create nodes that are divided into areas with selectable content.
Depends on: Panels (enabled), Chaos tools (enabled)

Panels	6.x-3.0-alpha4	Core Panels display functions; provides no external UI, at least one other module (such as Panel pages) should be enabled.
Depends on: Chaos tools (enabled)
Required by: Panels exporter (enabled), Mini panels (enabled), Panel nodes (enabled), Node panes (enabled), Panels simple cache (enabled), Views panes (enabled)

Panels exporter	6.x-3.0-alpha4	Allows exporting multiple panel pages, mini panels and other types at once.
Depends on: Panels (enabled), Chaos tools (enabled)

Panels simple cache	6.x-3.0-alpha4	Adds the simple cache as an option when configuring panel panes.
Depends on: Panels (enabled), Chaos tools (enabled)

Views panes	6.x-3.0-alpha4	Integrates Views as Panel panes (content types).
Depends on: Panels (enabled), Views (enabled), Chaos tools (enabled)

michelle’s picture

Panels 2 came with a module called Panel Pages that is gone in Panels 3. Since the title is "Panel pages results in a blank page" I thought maybe you were trying to use the old module and having problems. It seems that's not the case, so just ignore me, sorry. I was trying to help out the queue but I seem to have just confused things.

Michelle

merlinofchaos’s picture

I can't see any obvious reason why this might cause a 404, though 'node/foo' as a path looks like it *might* conflict with node/% (though it should not). You might change the path to something else temporarily and see if that helps, maybe?

mike15’s picture

Actually, it was causing "HTTP/1.1" 200 which is why it was so weird to me. Troubleshooting further, I've started noticing that when I add "node content" using the node title, it resulted in a blank page while if you enter the NID for that node, everything worked fine. So I was able to conclude that there are a few deficiencies:
1. The field "Enter the title or NID of a post:" for some reason does not perform auto-completion anymore and therefore doesn't check for errors.
2. The node content couldn't find/match the name of title I was entering "I guess", yet there was no indication of the error. As a result, the title node would be displayed as entered on the "Edit task handler "Panel" page but the panel would result in an empty page.

Now, in the past using Panel 2, if the title lookup failed, it would return a message indicated that node not found. In other cases, if the title had spaces or punctuations it would rap the title in quotes automatically.

In case someone wants to replicate this... The title of the node was in Cyrillic letters. It also had spaces and might have included punctuations.

Never the less, the workaround is to enter an actual NID for the node instead of the title which seems to resolve my issue with mysterious blank page.

Let me know if you need additional details I might have missed

Thanks
Mike

merlinofchaos’s picture

Interesting. Thanks for the investigative work, mike15. I"ll have to look into this and see what changed. I remember getting this piece working at one point.

cpelham’s picture

I've tried creating a couple of panels pages (the new way) but when I try to view (as opposed to edit) them, I get Page not found errors. I have tried varying the path assigned, and I have tried varying the content added to the panes, using only core-produced blocks. I have tried flushing all caches. Nothing seems to work.

I just tried to export one so I could show it here, but I get a "The requested page could not be found" error. What does that imply? I can go back and edit the page and see that content has been added to the page's panes, so something must be getting stored in the database table. My impression is that something is screwy with the path. I am using a simple path: healing2

The path that I try to visit to see that panel page is:
http://localhost:8082/drupal/healing2

I can't think what is wrong.

DanielJohnston’s picture

FINAL UPDATE: OK, so I uninstalled Panels and CTools, manually dropped the Panels-related tables from the database, then reinstalled from scratch. It now appears to be working fine, so I'm guessing the problem is that my site's an upgrade from Drupal 5, and still had some of the Panels data left in the tables from when the Drupal 5 version was installed. Sorry for the trouble!

I seem to be getting a slightly different error, so not sure if it's related. I've tried creating both task handlers for system pages and custom pages. Details on what's happening with an example custom page below:

1. Go through the process of creating a custom page with no arguments, grant access to all, give it a standard menu entry, use panels as a single handler, all criteria must pass, single column layout, add a pane made up of a simple view pane with no arguments, finish.

2. Go to the url for the newly created page, get at most a title and no content.

3. Go back to edit the panel content, get faced with no actual panels between 'Display settings' and Continue button. Trying to change the panel layout doesn't bring back the panels as it has to finish and go back to the panel pages home first, and going back into edit Panel Content results in a blank again.

$page = new stdClass;
$page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
$page->name = 'provider_dashboard';
$page->admin_title = 'Provider dashboard';
$page->path = 'provider';
$page->access = array(
  'logic' => 'and',
);
$page->multiple = FALSE;
$page->menu = array(
  'type' => 'normal',
  'title' => 'Providers',
  'name' => 'menu-site-content',
  'weight' => '0',
  'parent' => array(
    'type' => 'none',
    'title' => '',
    'name' => 'navigation',
    'weight' => '0',
  ),
);
$page->arguments = array();

I'm using the latest versions of all modules concerned, wondering if there might be a conflict with the Pathauto or Globalredirect modules or similar.

UPDATE: Just checked the logs and getting this kind of error popping up:
Duplicate entry '0' for key 1 query: INSERT INTO panels_display (layout, layout_settings, panel_settings, cache, title, hide_title) VALUES ('twocol_bricks', 'a:0:{}', 'a:0:{}', 'a:0:{}', '', 0) in /srv/welfaretowork.co.uk/public/htdocs/includes/common.inc on line 3422.

FURTHER UPDATE: Thought I'd try Create Content / Panels for fun, and roughly the same thing happens. The only major difference is that it doesn't lose the panel layout each time it's saved, just the content. Example error message from log:
Duplicate entry '0' for key 1 query: INSERT INTO panels_display (layout, layout_settings, panel_settings, cache, title, hide_title) VALUES ('twocol_bricks', 'a:0:{}', 'a:0:{}', 'a:0:{}', '', 0) in /srv/welfaretowork.co.uk/public/htdocs/includes/common.inc on line 3422.

michelle’s picture

@DanielJohnston - FYI, merlinofchaos reads all these issues as emails and I don't believe the system sends out new ones when comments are edited so it's not a good idea to just keep changing the same post over and over.

Michelle

merlinofchaos’s picture

Oh yes, please provide updates as new comments or I won't necessarily ever read them.

Daniel, it looks like your problem is that the panels_display table never got converted to use a serial? You might do a describe panels_display and see. I know that some amount of the update path is really screwed up, and if you've had an older version of Panels installed, this could be why.

cpelham’s picture

As I had also installed over Panels2, I decided to try de-activating, deleting the panels tables, and re-installing. However, on re-activation new panels tables were not created in the database. Can someone remind me how to do this?

DanielJohnston’s picture

Merlinofchaos, thanks for the heads-up. I wasn't aware as the subscribe function was happily sending me updates each time, so apologies and will bear in mind for future. My own problems are now entirely sorted. Good module!

CPelham, the Panels tables were automatically recreated for me when I reinstalled the CTools and Panels modules. Did you fully uninstall them previously using the modules / uninstall tab, then delete the module directories before dropping the tables?

cpelham’s picture

I went back and properly uninstalled and re-installed. The panels tables were removed and re-added. I made a new panel page with a new, unique name and path...and still I get a page not found error. I am using the latest dev rather than alpha4 though. Should I move this to a new issue? or revert back to alpha4 and just work on isolating the issue in that version?

petednz’s picture

Unsure if it relates so have added as new issue http://drupal.org/node/433636 but enabling Delegator causes my patched version for OG Panels to not show OG Panel Pages - when I disable Delegator the pages show again.

merlinofchaos’s picture

If you're using the -dev 1) be sure to use ctools -dev and 2) the 'panel page' type is not complete. I made a checkin that did not have everything, and so does not work. AT this time use the 'custom page' type until I can get my current code suitable for checkin.

Sorry about this, I'm working under enough pressure that I'm making even more mistakes than usual.

cpelham’s picture

With latest Panels3 and CTools devs, it is possible to make custom pages and add various panes so that work around seems fine. In fact, it is lovely and so far (with limited testing), I don't think I'm even lacking any functionality that I need. Haven't started looking for/at contexts yet...

merlinofchaos’s picture

In fact the 'panel page' type has significantly less functionality. It is intended to be a simpler type that has fewer configuration screens to get through.

merlinofchaos’s picture

Status: Active » Fixed

I made a checkin that should fix the panel page type on Friday. Though that -dev is not completely smooth yet, it appears.

Status: Fixed » Closed (fixed)

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