illamental
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Invalid argument …foreach() in capabilities.phpignat, 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
In reply to: Invalid argument …foreach() in capabilities.phpstill 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
In reply to: Invalid argument …foreach() in capabilities.phpHas anyone seen this before? Or have any ideas what I could have done wrong?