Title: wp-includes/widgets.php
Last modified: August 18, 2016

---

# wp-includes/widgets.php

 *  Resolved [arionhawk](https://wordpress.org/support/users/arionhawk/)
 * (@arionhawk)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/wp-includeswidgetsphp/)
 * Okay so I’ve got wordpress installed, and I got to the login screen once but 
   when I tried to login it gave me this message
 * Fatal error: Cannot unset string offsets in /webroot/g/a/gaurd001/www/wp-includes/
   widgets.php on line 307
 * now I can’t access the login page or the home page. Any help is appreciated

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

 *  Thread Starter [arionhawk](https://wordpress.org/support/users/arionhawk/)
 * (@arionhawk)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/wp-includeswidgetsphp/#post-596332)
 * Okay so I saw that someone else had gotten the same problem and had fixed it 
   by reinstalling everything(deleting it all and reuploading) so I tried that and
   now when I try to login I get this:
 * Warning: Invalid argument supplied for foreach() in /webroot/g/a/gaurd001/www/
   wp-includes/capabilities.php on line 31
 * Warning: Cannot modify header information – headers already sent by (output started
   at /webroot/g/a/gaurd001/www/wp-includes/capabilities.php:31) in /webroot/g/a/
   gaurd001/www/wp-includes/pluggable.php on line 369
 * Warning: Cannot modify header information – headers already sent by (output started
   at /webroot/g/a/gaurd001/www/wp-includes/capabilities.php:31) in /webroot/g/a/
   gaurd001/www/wp-includes/pluggable.php on line 370
 * Warning: Cannot modify header information – headers already sent by (output started
   at /webroot/g/a/gaurd001/www/wp-includes/capabilities.php:31) in /webroot/g/a/
   gaurd001/www/wp-includes/pluggable.php on line 331
 * I am thoroughly confused. Help!!!
 *  Thread Starter [arionhawk](https://wordpress.org/support/users/arionhawk/)
 * (@arionhawk)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/wp-includeswidgetsphp/#post-596334)
 * Nevermind the last one, I fixed that and am now back to the original problem.
 *  Thread Starter [arionhawk](https://wordpress.org/support/users/arionhawk/)
 * (@arionhawk)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/wp-includeswidgetsphp/#post-596383)
 * I deleted line 307 of widgets.php and now its giving me the second problem again.
   I have php5 and mysql 5 so it should work shouldn’t it?
 *  Thread Starter [arionhawk](https://wordpress.org/support/users/arionhawk/)
 * (@arionhawk)
 * [18 years, 10 months ago](https://wordpress.org/support/topic/wp-includeswidgetsphp/#post-596460)
 * It was a problem with the php settings on my server all fixed now.
 *  [golfing22](https://wordpress.org/support/users/golfing22/)
 * (@golfing22)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/wp-includeswidgetsphp/#post-596506)
 * Arionhawk, I’m having the same problem as you did, do you mind posting the solution??
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/wp-includeswidgetsphp/#post-596507)
 * Read it again:
 * > **It was a problem with the php settings on my server all fixed now.**
 * Which means, probably, your host has to fix it.
 *  [golfing22](https://wordpress.org/support/users/golfing22/)
 * (@golfing22)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/wp-includeswidgetsphp/#post-596508)
 * I guess I forgot to mention that I am the server admin and I run the machine 
   that wordpress is being installed on.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/wp-includeswidgetsphp/#post-596509)
 * Unfortunately, we do not support server admin issues. You will need to seek support
   in a more specialized forum. When your server works, we will be happy to assist
   you with any WP related question.
 *  Thread Starter [arionhawk](https://wordpress.org/support/users/arionhawk/)
 * (@arionhawk)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/wp-includeswidgetsphp/#post-596510)
 * I had asp_tags, magic_quotes_runtime, and magic_quotes_gpc turned on once I turned
   those options off, it worked, I hope this helps.
 *  [golfing22](https://wordpress.org/support/users/golfing22/)
 * (@golfing22)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/wp-includeswidgetsphp/#post-596511)
 * Thank you Arionhawk, WordPress is now working perfectly.
 *  Thread Starter [arionhawk](https://wordpress.org/support/users/arionhawk/)
 * (@arionhawk)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/wp-includeswidgetsphp/#post-596512)
 * You are welcome!
 *  [dmry](https://wordpress.org/support/users/dmry/)
 * (@dmry)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/wp-includeswidgetsphp/#post-596535)
 * Download [http://file.dmry.net/blog/01/wp_user_roles_yama.zip](http://file.dmry.net/blog/01/wp_user_roles_yama.zip)
   patch file and upload in root directory of wordpress. Finally call it on URL (
   [http://your_blog_url](http://your_blog_url)../wp_user_roles.php)
 * Before appyling patch, backup your database..
 * For this patch, I write a manual, but in Turkish. If you want, you can read or
   translate with any service..
 * Patch URL: [http://www.dmry.net/wordpress-231-kullanici-yetkileri-yamasi](http://www.dmry.net/wordpress-231-kullanici-yetkileri-yamasi)
 * THIS PATCH ONLY FOR WP 2.3.x

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

The topic ‘wp-includes/widgets.php’ is closed to new replies.

## Tags

 * [pluggable.php](https://wordpress.org/support/topic-tag/pluggable-php/)
 * [widgets.php](https://wordpress.org/support/topic-tag/widgets-php/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 12 replies
 * 4 participants
 * Last reply from: [dmry](https://wordpress.org/support/users/dmry/)
 * Last activity: [18 years, 5 months ago](https://wordpress.org/support/topic/wp-includeswidgetsphp/#post-596535)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
