Title: illamental's Replies | WordPress.org

---

# illamental

  [  ](https://wordpress.org/support/users/illamental/)

 *   [Profile](https://wordpress.org/support/users/illamental/)
 *   [Topics Started](https://wordpress.org/support/users/illamental/topics/)
 *   [Replies Created](https://wordpress.org/support/users/illamental/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/illamental/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/illamental/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/illamental/engagements/)
 *   [Favorites](https://wordpress.org/support/users/illamental/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Invalid argument …foreach() in capabilities.php](https://wordpress.org/support/topic/invalid-argument-foreach-in-capabilitiesphp/)
 *  Thread Starter [illamental](https://wordpress.org/support/users/illamental/)
 * (@illamental)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/invalid-argument-foreach-in-capabilitiesphp/#post-369008)
 * ignat, i figured it out
 * problem with mine was some information in the database that capabilities.php 
   was trying to retrieve. i wont go into the details of how i figured it out, but
   here was my solution:
 * in my wp_options table, i found the option with the name “wp_user_roles”. in 
   that same row, it’s “option_value” field has a lot of code/characters starting
   with “_a:5:{s:13:”administrator”……_“
 * this text is supposed to be one long string of text, but when i moved the database
   over, it had broken the long string into several lines with breaks inbetween.
   this made capabilities.php unable to read the information properly. once i removed
   all the breaks, the site was back to normal.
 * i hope this helps 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Invalid argument …foreach() in capabilities.php](https://wordpress.org/support/topic/invalid-argument-foreach-in-capabilitiesphp/)
 *  Thread Starter [illamental](https://wordpress.org/support/users/illamental/)
 * (@illamental)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/invalid-argument-foreach-in-capabilitiesphp/#post-369004)
 * still having this problem….wordpress new release didnt fix
 * here’s line 19 – 22 of capabilities.php:
 * > foreach ($this->roles as $role => $data) {
   >  $this->role_objects[$role] = new
   > WP_Role($role, $this->roles[$role][‘capabilities’]); $this->role_names[$role]
   > = $this->roles[$role][‘name’]; }
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Invalid argument …foreach() in capabilities.php](https://wordpress.org/support/topic/invalid-argument-foreach-in-capabilitiesphp/)
 *  Thread Starter [illamental](https://wordpress.org/support/users/illamental/)
 * (@illamental)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/invalid-argument-foreach-in-capabilitiesphp/#post-368979)
 * Has anyone seen this before? Or have any ideas what I could have done wrong?

Viewing 3 replies - 1 through 3 (of 3 total)