• I’m getting the following error on my site and am unable to login to the admin area:

    Warning: array_keys() expects parameter 1 to be array, string given in
    /wp-includes/capabilities.php on line 127

    Warning: Invalid argument supplied for foreach() in
    /wp-includes/capabilities.php on line 127

    Warning: Illegal string offset ‘ai1ec_event_assistant’ in
    /wp-includes/capabilities.php on line 185

    Please help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter deuxbiers

    (@deuxbiers)

    Anyone?

    I’ve got a site a can’t login to and an increasingly frustrated client!

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    “ai1ec” sounds like you have the All in One Event Calendar plugin installed. It has a fairly extensive uninstall procedure, so I would suggest uninstalling that plugin properly.

    To get back into your admin area with those errors, you need to disable the PHP display_errors setting on your hosting account. You will need to ask your host as to the proper way to do this.

    Thread Starter deuxbiers

    (@deuxbiers)

    Thanks, I’ve tried disabling All-In-One-Event-Calendar via FTP, Can I simply put the plugin folder back in to re-enable it before disabling PHP errors?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Removing a plugin via FTP does not run the uninstall code for it. You should put the plugin back and uninstall it properly.

    You will still have to disable the display_errors setting in order to access your site’s admin section.

    Thread Starter deuxbiers

    (@deuxbiers)

    So my web host say they disabled php display_errors using the command: define(‘WP_DEBUG’, false); but I don’t see any change and still can’t login.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    That does not disable the PHP display_errors setting. They need to either modify the PHP.INI file, or make a custom one in your directory, or add a setting to .htaccess. Something along those lines. It’s outside WordPress.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error in capabilities.php’ is closed to new replies.