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.

Can't access CP and PHP errors

October 26, 2011 9:43am

Subscribe [3]
  • #1 / Oct 26, 2011 9:43am

    Bluebloc

    111 posts

    Hi

    A client mistakenly edited the guest member group and allowed them to access the CP.

    This has resulted in the following PHP errors:

    A PHP Error was encountered
    Severity: Warning
    Message: array_keys(): The first argument should be an array
    Filename: libraries/Menu.php
    Line Number: 208
    
    A PHP Error was encountered
    Severity: Warning
    Message: Cannot modify header information - headers already sent by (output started at /path/to/webspace/httpdocs/system/codeigniter/system/core/Exceptions.php:170)
    Filename: core/Common.php
    Line Number: 405

    They cannot now access the CP. Any ideas how to fix this?

    Thanks

  • #2 / Oct 26, 2011 10:27am

    Bluebloc

    111 posts

    Of course the quick fix for this is to login to the database via PHPMyAdmin or similar and then roll back the changes made to the Guests Group in “exp_member_groups”. You can copy the settings from the POending Group.

  • #3 / Oct 26, 2011 11:03pm

    Dan Decker

    7338 posts

    Bluebloc,

    With that quick fix, are you good to go?

    Cheers,

  • #4 / Oct 27, 2011 7:27am

    Bluebloc

    111 posts

    Yes. But still unsure why access to CP is disabled. Is this intentional?

  • #5 / Oct 27, 2011 10:24am

    Dan Decker

    7338 posts

    Bluebloc,

    You are asking if the Guest member group is intentionally disallowed from accessing the CP, is this correct? If so, yes, that is by design. The Guest member group is there for the average visitor to your site. Allowing this group to access the CP would leave it wide open to anyone who comes along. Unless I have completely missed your question?

    Cheers,

  • #6 / Oct 27, 2011 10:36am

    Bluebloc

    111 posts

    I completely understand that. I just wondered why it was possible for an admin to change the Guest group’s CP access settings.

    Anyhow, you can close this one out. And thanks for your replies

  • #7 / Oct 28, 2011 6:57pm

    Kevin Smith

    4784 posts

    That’s a very good point, Bluebloc. Granting them CP access shouldn’t even be possible. In that light, I’ve filed a bug report on this on your behalf so that our developers know about it.

    Let us know if there’s anything else we can do to help!

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

ExpressionEngine News!

#eecms, #events, #releases