After I create a new Panels page I get a page not found. I was able to create about a dozen Panels pages previously. I am using the Bartik theme and had just been struggling with getting secondary links to show up. Please see exported code below.
$page = new stdClass;
$page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
$page->api_version = 1;
$page->name = 'advertisers_2';
$page->task = 'page';
$page->admin_title = 'Advertisers template 2';
$page->admin_description = '';
$page->path = 'advertisers-2';
$page->access = array();
$page->menu = array();
$page->arguments = array();
$page->conf = array(
'admin_paths' => FALSE,
);
$page->default_handlers = array();
$handler = new stdClass;
$handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
$handler->api_version = 1;
$handler->name = 'page_advertisers_2_panel_context';
$handler->task = 'page';
$handler->subtask = 'advertisers_2';
$handler->handler = 'panel_context';
$handler->weight = 0;
$handler->conf = array(
'title' => 'Advertiser Panel 2',
'no_blocks' => 0,
'pipeline' => 'standard',
'css_id' => 'dbg-advertiser-panel-2',
'css' => '',
'contexts' => array(),
'relationships' => array(),
);
$display = new panels_display;
$display->layout = 'twocol_stacked';
$display->layout_settings = array();
$display->panel_settings = array(
'style_settings' => array(
'default' => NULL,
'top' => NULL,
'left' => NULL,
'right' => NULL,
'bottom' => NULL,
),
);
$display->cache = array();
$display->title = '';
$display->content = array();
$display->panels = array();
$pane = new stdClass;
$pane->pid = 'new-1';
$pane->panel = 'left';
$pane->type = 'views_panes';
$pane->subtype = 'advertisers-panel_pane_2';
$pane->shown = TRUE;
$pane->access = array();
$pane->configuration = array();
$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->pid = 'new-2';
$pane->panel = 'right';
$pane->type = 'views_panes';
$pane->subtype = 'advertisers-panel_pane_3';
$pane->shown = TRUE;
$pane->access = array();
$pane->configuration = array();
$pane->cache = array();
$pane->style = array(
'settings' => NULL,
);
$pane->css = array();
$pane->extras = array();
$pane->position = 0;
$display->content['new-2'] = $pane;
$display->panels['right'][0] = 'new-2';
$pane = new stdClass;
$pane->pid = 'new-3';
$pane->panel = 'top';
$pane->type = 'views_panes';
$pane->subtype = 'advertisers-panel_pane_1';
$pane->shown = TRUE;
$pane->access = array();
$pane->configuration = array();
$pane->cache = array();
$pane->style = array(
'settings' => NULL,
);
$pane->css = array();
$pane->extras = array();
$pane->position = 0;
$display->content['new-3'] = $pane;
$display->panels['top'][0] = 'new-3';
$display->hide_title = PANELS_TITLE_NONE;
$display->title_pane = 'new-3';
$handler->conf['display'] = $display;
$page->default_handlers[$handler->name] = $handler;
Comments
Comment #1
mrryanjohnston commentedHave you created a "variant" for this panel?
Comment #2
quantos commentedHi guys. Any progress with this one? On a simpler scale I have the same problem. I'm getting "page not found" errors on all new Panel layouts after the first two I created.
I'm still testing the variables but I believe the error started when I chose an Omega panel type for the layout - although before that Drupal also started reporting Fatal Error/not enough memory (often at the point or shortly after trying to create new Panels). My PHP.ini file is already set to 32MB.
A bit more detail: I'm a relative newbee with Drupal (2 years in) and have only just started looking at Panels more thoroughly hence still corss-checking/testing if there's anything in my set-up that could be generating either or both these errors. My system (Windows 7 64bit, 4Gb RAM, XAMPP 1.7.1, latestDrupal modules). I'll update this thread if I can narrow down the problem further.
EDIT: I should have added that Panels preview mode works fine showing selected content. "Page not found" error pops up 100% of the time if I click on the panels summary path link or re-key into the browser (for example: http://localhost/drupal/test-4).
Comment #3
quantos commentedUpdate: With a fresh, minimal install (core plus ctools + panels) I'm not getting any "page not found" or memory errors. I'm going to test further to see if this was an Omega theme/omega panel layout induced problem but to avoid clogging the thread unnecessarily I won't reply again unless anyone requests more details.
Comment #4
kpojeta commentedI'm getting this as well. I did just update to most recent CTools and Panels releases (dev). Working on a site brought over from 5 to 6, then right to 7. Lots of modules installed. Let me know if you hit a hiccup on your site again and have any idea what's causing this! Thanks.
Comment #5
merlinofchaos commentedI would highly doubt that an upgrade from 5 --> 6 --> 7 would have properly upgraded all of the panel pages. You will have to check all of them manually and possibly rebuild them.
Comment #6
merlinofchaos commentedUnfortunately without a way to reliably reproduce this to figure out what conditions cause this, there's not much I can do here.
We need people to help us reproduce this.
Comment #7
GlitchFreak commentedHi
Please check http://drupal.org/node/1376930#comment-5384076 for a possible fix.
Not sure if it's related
Thanks
Comment #8
Letharion commented@GlitchFreak, thanks for cross-posting, I hadn't seen this issue otherwise :)
I think actually I will close yours as a dup of this one, so we can keep the information collected in one place.
Regarding your specific post, in #1376930: Panel Page Path is not working (with possible fix), you don't mention how, or that, you map the parameter to a context, so that's a possible problem. Nor do you mention that you have actually checked that entity 55 exists, or whichever type is relevant.
Since the average bug report is actually a configuration error, I prefer keeping it in the support request category until we've proven otherwise.
I can't reproduce this problem with the latest dev version, neither with a new panel page, or the export from #1, so a reproducing export would be useful.
Comment #9
GlitchFreak commentedHi Letharion
I've created another Panel Page, and included an export at the end of the post. I haven't assigned any contexts as I don't require one.
The same error exists, i.e. I get a 404 when trying to view the page with an argument (www.example.com/lifegroup/77). Node 77 exists.
The code segments below are a comparison between a non-working panel page and a working panel page. This is where I think the problem lies.
My fix on the linked issue that was closed still solves my issue.
Non-working Page (current dev version)
Working Page (alpha3 version)
So it seems that when the page is created, the code segments are not populated correctly. I've followed the exact same process of creating the pages with both versions.
Here is the export:
Comment #10
merlinofchaos commentedAre you sure? This kind of looks like you didn't go through and populate the argument.
I'll doublecheck but I'd like to be absolutely sure you went to the 'arguments' tab and populated an argument.
Comment #11
GlitchFreak commentedAh, thanks for pointing that out. I populated it and it now works.
I'm sure I didn't have to do it previously, however I could me mistaken.
Thanks merlinofchaos and Letharion for all the assistance.
Comment #12
merlinofchaos commentedNo, you have always had to do this; unless you tell it what kind of data the argument is, it doesn't know.
Comment #13
GlitchFreak commentedThanks merlinofchaos. I'll remember this for the future.
Comment #15
jshosseini commentedhi, all
I have the same issue but i don't know how populate an argument in panels. someone help me please!
I can not create new pages with panels anymore ( i have two working ones).
Comment #16
pixelwhip commentedI ran into a similar issue trying to create a 404 page. Giving the page an "Administrave Title" of 404 created a machine name of 404. I don't think machine names starting with numbers are valid. Recreating the page with a machine name of "page-not-found" fixed my issue.
I hope this helps.
Comment #17
amreana commentedThis is happening because after you delete a page that was set up to be the main site's page, the module is not emptying the site_frontpage variable
Comment #18
sumeet.pareek commentedI found a great working solution.
The
systempanel pages that are already available (which you can enable or disable) do get their page titles set. But when you createcustompanel pages with a path sayfoo-barordashboard/%fooand such paths are not declared in thehook_menu()of any of the contrib modules or your custom modules, you will get aPage not foundset in the title. You would still see content if you have added any panes in your panel. You can set the page title in your panel settings, but that shows only in the<h1>tag in your page, but the<title>tag still showsPage not found.You can use the metatag module to fix this. Once you have the module installed you can add (or override) page titles and other metadata by path here
admin/config/search/metatags/context/add