Since I updated panelizer to the dev then beta I have added a content type and panelized it. However for this new content type I get "Access Denied You are not authorized to access this page" when I try to go to the settings, context, layout, and content pages. However I can still access these pages for the older content types.

Panelizer - 7.x-3.2-beta1
Panels - 7.x-3.5
Chaos tools - 7.x-1.6

CommentFileSizeAuthor
#13 panelizer-n2421321-13.patch4.56 KBDamienMcKenna
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DamienMcKenna’s picture

Did you run the database updates? Some of the menu paths changed.

tisteegz’s picture

I managed to get it to work and can replicate the issue. I had run all the updates so I tested again to see if I could replicate.

I removed panelizer from the content type which wasn't working (making sure to delete all associated variables) and re-enabled it from the actual content type edit page instead of admin/structure/panelizer and it seemed to work. So to see if I could replicate I went to admin/structure/panelizer and enabled panelizer on basic pages and I get the same issue of not being able to access the pages. I can now access the pages for the original content type which was not working so I don't think it is a path issues.

So essentially when I enable panelizer from admin/structure/panelizer it doesn't work and when I enable it from admin/structure/types/manage/[content_type] is seems to work fine.

DamienMcKenna’s picture

@tisteegz: Thank you for tracking that down, it'll help track this down.

DamienMcKenna’s picture

@tisteegz: When you set this up, what options did you enable? Specifically, did you select the "Provide default display" option?

tisteegz’s picture

I enabled PANELIZE and PROVIDE INITIAL DISPLAY. :)

bryancasler’s picture

Can confirm the issue. So far the only show stopper problem with the beta I've run into is this one. DamienMcKenna are there any additional details I can provide that would help troubleshoot this?

DamienMcKenna’s picture

Priority: Normal » Major

Ugh, I can confirm this happens.

Bumping it to 'major'.

DamienMcKenna’s picture

Can you please try the latest -dev release?

DamienMcKenna’s picture

I'm unable to reproduce this using the current -dev release.

bryancasler’s picture

Status: Active » Reviewed & tested by the community

I installed the dev release, ran update.php, flushed site cache, then rebuilt permissions. Dev release fixed it! But 'possibly' surfaced a new problem or discovered an old one. This could be a case of an inaccurate error message.

After updating I went to the configuration page (admin/structure/panelizer) linked to from the Modules list. I have two Panelized node types. "Page" and "Blog".

"Page" links worked! Every single one loaded instead of giving me the "Access denied..." error.
"Blog" links did not, I was still getting "Access denied..." errors.

To fix the blog links I went to "admin/structure/types/manage/blog" and scrolled down to the "Panelizer" tab. From there I checked the "Update existing entities to use this display" for each view mode and hit the "Save content type" button. That fixed it! Now everything is working as expected.

Will report back any other issues, but as of this moment I'm a happy camper.

DamienMcKenna’s picture

Status: Reviewed & tested by the community » Active

Lets leave this one open, because there are still some problems somewhere.

I suspect that some settings were borken somewhere and it's having subtle problems.

What might be useful is, if you're seeing any problems with this please post a your Panelizer variables for that entity bundle, that should help identify what's misbehaving.

bryancasler’s picture

Will do!

DamienMcKenna’s picture

Status: Active » Needs review
FileSize
4.56 KB

I think this should solve it. The problem seemed to be that the 'selection' variable was being set to 0 to indicate the first item in the selection. I've changed a few things to avoid this - the variable is now only set if there's an actual value, otherwise it uses the default. It also includes an update script to fix existing values.

  • DamienMcKenna committed fcc5671 on 7.x-3.x
    Issue #2421321 by DamienMcKenna: Fixed logic that resulted in access-...
DamienMcKenna’s picture

Status: Needs review » Fixed

Committed. Please re-open if the issue continues.

gmclelland’s picture

Status: Fixed » Needs work

Sorry, I think I need to reopen this.

Try Panelizer 3.x-dev on http://simplytest.me/project/panelizer/7.x-3.x

- Goto admin/structure/panelizer
- Check the following for Basic page - Full page override
-- Panelized
-- Provide Initial Display
-- Allow Panel Choice
-- Save
-- Under "Basic page" click the "list" link
-- Access Denied

Hope that helps

gmclelland’s picture

Status: Needs work » Fixed

Sorry, I'm switching this back to "Fixed". I believe another issue #2470257: Bad redirect and/or bad menu_local_action introduced the problem I reported.

Status: Fixed » Closed (fixed)

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