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.

Undefined Index Errors when creating New Member Group

June 28, 2011 4:00pm

Subscribe [9]
  • #1 / Jun 28, 2011 4:00pm

    Kragit

    7 posts

    Just updated to v2.2.0 from v2.1.3 Today. Ran into a few errors upgrading, but was able to sort those out.

    I most recently had the database error as described here and was able to fix it via the instructions there.

    So while it seems to create the member groups fine, on the “Channel Assignment” and “Template Editing Privileges” I get the following error:

    A PHP Error was encountered
    Severity: Notice
    Message: Undefined index: options
    Filename: members/edit_member_group.php
    Line Number: 136
    
    
    A PHP Error was encountered
    Severity: Notice
    Message: Undefined index: options
    Filename: members/edit_member_group.php
    Line Number: 137

    Again, it doesn’t -seem- to affect functionality (still testing) but it would be nice to be rid of those errors. Additionally, it seems to add a row with just “2” in it.

    Thanks.

  • #2 / Jun 28, 2011 10:22pm

    Kragit

    7 posts

    EDIT: Fixed per below comment.

    Additionally, I have a Masked CP setup and on the login page of the Masked CP I have this error:

    A PHP Error was encountered
    Severity: Notice
    Message: Undefined property: Login::$session
    Filename: libraries/Functions.php
    Line Number: 76


    I remember seeing them on the main CP before, but it ended up disappearing after a time (not sure if it was connected to any other work I was doing, or if they went away on their own).

    Thanks!

    EDIT: Fixed per below comment.

  • #3 / Jun 29, 2011 7:40am

    John Henry Donovan

    12339 posts

    Kragit,

    Additionally, I have a Masked CP setup and on the login page of the Masked CP I have this error:

    With EE2.2. you now have a new admin.php to used for masked logins. You can find it in the root of your folder. Can you try using this one instead of the older one I suspect you are using?

    So while it seems to create the member groups fine, on the “Channel Assignment” and “Template Editing Privileges” I get the following error:

    At what stage do these errors appear. Is it just after clicking create new memebr group and opening up those items or after you have saved a new member group and are going back to edit it?

    Do you have any third-party add-ons installed like User?

    If you goto your Database Query form and add the following

    DESCRIBE exp_member_groups

    Can you take a screenshot of the page it results in please.

  • #4 / Jun 29, 2011 10:28am

    Kragit

    7 posts

    Additionally, I have a Masked CP setup and on the login page of the Masked CP I have this error:

    With EE2.2. you now have a new admin.php to used for masked logins. You can find it in the root of your folder. Can you try using this one instead of the older one I suspect you are using?

    You’d be correct. It seems the admin.php has fixed that error. Thanks!

    So while it seems to create the member groups fine, on the “Channel Assignment” and “Template Editing Privileges” I get the following error:

    At what stage do these errors appear. Is it just after clicking create new memebr group and opening up those items or after you have saved a new member group and are going back to edit it?

    Do you have any third-party add-ons installed like User?

    If you goto your Database Query form and add the following

    DESCRIBE exp_member_groups

    Can you take a screenshot of the page it results in please.

    Third Party add-ons: MSM/Structure/ImageSizer/Zoo Flexable Admin/Channel Images/Channel Videos

    The errors are there after clicking create new member group and opening up those items. Additionally, they’ll still be there once you create and go back to edit a member group.

    Screenshots attached.

    EDIT: It seems to be an issue with the MSM (tentatively). I have a clean install with most of the above addons installed but didn’t encounter the error until I installed/activated the MSM.

  • #5 / Jun 29, 2011 1:44pm

    Kragit

    7 posts

    Update: Uninstalled all third party modules/addons. Issue still persists.

  • #6 / Jun 29, 2011 8:13pm

    Kragit

    7 posts

    Update 2: Fresh install of EE. Fresh install of MSM. No issues. Added Structure/Channel Images/Zoo Flexable Admin/ImgSizer, installing one at a time and testing one at a time. No issues. Figured issue was solved. Began to re-create my sites. Find the error again after a few hours work.

    Any thoughts? It doesn’t -seem- to affect usability, but I’m sure it’s not normal either.

    Thanks.

    EDIT: On the fresh install, this seems to crop up when there aren’t any channels or templates assigned to that specific site only (so far).

  • #7 / Jul 01, 2011 12:57pm

    Brandon Jones

    5500 posts

    It is likely a harmless error, but annoying nonetheless. Any other ideas on what might trigger this? I added an (empty) MSM site and still can’t replicate unfortunately.

  • #8 / Jul 01, 2011 10:32pm

    Kurt Deutscher

    827 posts

    Hi Brandon,

    I can replicate it here, with an MSM site. Exact same error.

    For us it shows up in the member group settings accordion “Channel Assignment” and “Template Editing Privileges”.

    A PHP Error was encountered

    Severity: Notice

    Message: Undefined index: options

    Filename: members/edit_member_group.php

    Line Number: 136

    I came across it while trying to track down some login issue with members other than Super Admins.

    Multiple Site Manager - Version: 2.1.0 Build: 20110622

    The only 2.2 site I have with this issue (out of 6 now on 2.2) is the one with MSM.

  • #9 / Jul 06, 2011 3:15am

    Kurt Deutscher

    827 posts

    For us, the member group we’ve created (deleted and recreated just to test), won’t allow it’s members access to any of the MSM sites, and especially the one site they should have access too when at the correct URI.

    Yes we’ve updated the admin.php file and we’ve now updated all the files in the site to EE 2.2.1 and we’re getting concerned at this point.

    If our Members can’t log into publish in their own sites, then we need to reschedule some trainings we had set up for the site owners next week; We can’t make them all Super Admins. ;~D

    I think that the reason that the members can’t log in is related to the MSM member group issue that was introduced with EE 2.2.0.

    Each of the 2 php errors are showing up once for each member in the site. This client has over 2,000 members that we’ve not imported over from the older “live” EE site yet, and we won’t be able to until we can resolve this.

    Would love to hear back from the team before another day slips by. Thanks.

  • #10 / Jul 06, 2011 1:22pm

    lealea

    202 posts

    I am having the EXACT issue that Kurt has here and I’ve done exactly what he has. I also get the weird PHP error under Template Editing Privileges. I also have the same setup and MSM as Kurt.

    Would really like to see a solution. :(

  • #11 / Jul 06, 2011 1:33pm

    lealea

    202 posts

    I found out a way to get them to log into control panel, though this is sort of bad security-wise. I went and enabled “Control Panel” = yes under the MAIN site, even though it was already “Yes” in their MSM site config, they can’t seem to log in unless I put “Yes” for control panel under the main site setting.

  • #12 / Jul 06, 2011 7:40pm

    David Dexter

    88 posts

    I have this issue as well. Seems like its not causing issues in terms of permissions or logins for the new member group but it sure isn’t pretty…..

  • #13 / Jul 07, 2011 12:24pm

    Sue Crocker

    26054 posts

    Hi, all..

    So to sum up what the problem may be:

    You have to be using the MSM using EE2.2.0 or EE2.2.1.
    You have a member group in a secondary site (something other than the original site) that doesn’t have access to Site1.

    Once you give them access to Site1, the error goes away?

    Is that an accurate assessment?

  • #14 / Jul 07, 2011 12:25pm

    lealea

    202 posts

    Sue, for me, that scenario is true. And in terms of “access” it’s simply turning control panel access to Site1 to yes, no other changes. That was the only thing I did to allow them to log in via their masked admin URL to their particular MSM site.

  • #15 / Jul 07, 2011 12:55pm

    Kurt Deutscher

    827 posts

    So glad to see you Sue!

    Yes, this is an established install of EE that started with 2.0.

    Unfortunately, the above workaround doesn’t do a thing for our install.

    And in addition to the PHP Errors, our publishers can’t log into their sites.

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

ExpressionEngine News!

#eecms, #events, #releases