ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

New Entry Preview Layout Error after Upgrade to 2.2.1 build 20110630

July 01, 2011 6:26am

Subscribe [6]
  • #1 / Jul 01, 2011 6:26am

    bcrabtree

    60 posts

    After upgrading from 2.1.4 to 2.2.1 I’m getting a PHP error when I try to preview another member type layout. Looks and works fine when previewing the Super Admin layout, and when logged in as another member type it looks as it should.

    Attached is a screen shot of what I’m seeing.

    Any suggestions?

    Cheers

  • #2 / Jul 01, 2011 3:47pm

    Kevin Smith

    4784 posts

    Hi bcrabtree,

    I’m not able to reproduce this locally. Could you give us some more details about how to make this happen?

    Which account are you logged into? What member group is that account a member of?
    Which member group’s layout are you previewing?
    Was that member group created based off of the Super Admin group?
    What are the CP access privileges of the member group whose layout you’re previewing?

    Any other details that would make it possible for us to reproduce this error would be very helpful. Thanks!

  • #3 / Jul 01, 2011 8:53pm

    bcrabtree

    60 posts

    Sure, no problem. I’ll repost with all the info in a bit.

  • #4 / Jul 01, 2011 9:33pm

    bcrabtree

    60 posts

    I am logged into the Super Admin account.

    For some channels the bug is happening when I view the Site Admin layout preview, but on further investigation it is also happening for my Super Admin account layout preview on only one of my channels.

    The Site Admin member group was created off of the Super Admin member group.

    Site Admin has full CP access privileges except the following items are set to NO:
    Can access the DESIGN section
    Can access ADD ONS: Extensions
    Can access ADD ONS: Plugins
    Can access ADD ONS: Fieldtypes
    Can access ADMIN section
    Can access ADMIN: System Prefs
    Can access ADMIN: Content Settings

    So I think it may have something to do with my Third Party Pixel & Tonic field types, but I can’t disable those field types to test it.

    Here is a list of my Channels with their installed field types:
    Channel 1 (Bug Does NOT Occur):
    Pixel & Tonic Wygwam
    Text Input

    Channel 2 (Bug DOES Occur):
    File
    Text Input
    Text Area
    Select Dropdown
    Text Input
    Pixel & Tonic Switch

    Channel 3 (Bug DOES Occur for BOTH Site Admin & Super Admin):
    Pixel & Tonic Matrix
    - File
    - Text

    Channel 4 (Bug DOES Occur):
    Relationship
    Pixel & Tonic Dropdown
    Pixel & Tonic Matrix
    - File
    - Text

    Channel 5 (Bug DOES Occur):
    Input Text
    Pixel & Tonic Matrix
    - File
    - Text
    - Pixel & Tonic Dropdown
    - Pixel & Tonic Wygwam
    Pixel & Tonic Wygwam
    Pixel & Tonic Switch

  • #5 / Jul 01, 2011 10:46pm

    Sue Crocker

    26054 posts

    Hi, bcrabtree. Just a quick note - with the release of 2.2.0 and 2.2.1, Brandon has updates for his add-ons. Make sure you replace them with newer versions.

  • #6 / Jul 01, 2011 10:47pm

    bcrabtree

    60 posts

    Yep, I actually just saw that a couple min ago. Uploading the new versions and testing now. I’ll let you know how it goes.

  • #7 / Jul 01, 2011 11:08pm

    bcrabtree

    60 posts

    So nope, didn’t fix anything. Looks like it might have something to do with the Matrix and Switch field types, so I’ve emailed Brandon about this as well to see what he has to say.

    If you guys come up with anything let me know.

    It’s not a major issue… Just kinda annoying.

    Cheers.

  • #8 / Jul 02, 2011 3:19am

    bcrabtree

    60 posts

    Did some more testing and it doesn’t look like it has anything PT Switch or Matrix.

    I removed the PT Switch field type from Channel 2 and I’m still getting the PHP error.

  • #9 / Jul 02, 2011 2:36pm

    Rob Sanchez

    335 posts

    I got an error report regarding a missing field_visibility index for one of my fieldtypes, too. I think there’s a bug here, that doesn’t have to do with the fieldtypes themselves.

  • #10 / Jul 06, 2011 4:26pm

    bcrabtree

    60 posts

    Any word on this?

  • #11 / Jul 07, 2011 4:31pm

    Brandon Jones

    5500 posts

    Hey bcrabtree,

    If you reset the layout for that group, is the preview still wonky then?

  • #12 / Jul 07, 2011 4:48pm

    bcrabtree

    60 posts

    Well that did it. After resetting the layout the PHP error is no longer occurring. Kind of a pain to have to re-organize all my site admin layouts, but it worked so I’m happy.

    Thanks!

  • #13 / Jul 07, 2011 5:06pm

    Brandon Jones

    5500 posts

    Thanks for the update, bcrabtree. Glad that worked!

    Rob, are you good here? Sounds like this might be a different issue?

  • #14 / Jul 13, 2011 4:04pm

    AHopper

    27 posts

    Just updated this morning and I am getting the same error. bcrabtree said his problem cleared “after resetting the layout”. Can someone explain to me what that means exactly, so that I can duplicate?

  • #15 / Jul 13, 2011 4:18pm

    bcrabtree

    60 posts

    In content > publish > entry view, open the tool bar, check all your member groups and click the “Reset Layout” button. It may not be in the toolbar if your seeing the error, it may be jumbled at the top of the page.

    After clicking “Reset Layout” a success notification will appear at the top of the page, click it and it should read: “Layout Removed. Refresh Layout.”

    Click “Refresh Layout” and you should be all set.

    Attaching some screen shots for reference.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases