Title: Error in capabilities.php
Last modified: August 30, 2016

---

# Error in capabilities.php

 *  [deuxbiers](https://wordpress.org/support/users/deuxbiers/)
 * (@deuxbiers)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-in-capabilitiesphp-1/)
 * 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](https://wordpress.org/support/users/deuxbiers/)
 * (@deuxbiers)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-in-capabilitiesphp-1/#post-6799220)
 * Anyone?
 * I’ve got a site a can’t login to and an increasingly frustrated client!
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-in-capabilitiesphp-1/#post-6799225)
 * “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](https://wordpress.org/support/users/deuxbiers/)
 * (@deuxbiers)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-in-capabilitiesphp-1/#post-6799227)
 * 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)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-in-capabilitiesphp-1/#post-6799230)
 * 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](https://wordpress.org/support/users/deuxbiers/)
 * (@deuxbiers)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-in-capabilitiesphp-1/#post-6799234)
 * 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)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [10 years, 6 months ago](https://wordpress.org/support/topic/error-in-capabilitiesphp-1/#post-6799310)
 * 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.

## Tags

 * [site down](https://wordpress.org/support/topic-tag/site-down/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/error-in-capabilitiesphp-1/#post-6799310)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
