Upgrade Problems
-
Error code when I try to logon to website
/* publichtml – recipesbymike – widget.php*/
Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/flubulle/public_html/recipesbymike/wp-includes/widgets.php on line 689Warning: Invalid argument supplied for foreach() in /home/flubulle/public_html/recipesbymike/wp-includes/widgets.php on line 689
Warning: Cannot modify header information – headers already sent by (output started at /home/flubulle/public_html/recipesbymike/wp-includes/widgets.php:4) in /home/flubulle/public_html/recipesbymike/wp-includes/pluggable.php on line 770
Here is a fix I tried from another thread:
To gain access to your widget page, simply comment out two lines of your wp-config.php file:
// define(‘DB_CHARSET’, ‘utf8’);
// define(‘DB_COLLATE’, ”);Then log in and go to your widget page.
Remove each text widget and PHP widget (copy the content into a text editor so you can retrieve it afterwards again).
Go back into your wp-config.php file and remove the comments again. Save.
Log in and add your text widgets again. This should work fine now.My Results :
// define(‘DB_CHARSET’, ‘utf8’);
// define(‘DB_COLLATE’, ”);I put a /* before and after the above code each line, this allowed the site to come back and I was able to log onto it, now do I still need this code and what is it for?
What does the above two lines of code do anyway?
Update – after doing the above it did allow me to work on my website but I found no text widgets in the sidebar, it also shut down 5 other websites on the same server as mine since those are also my websites it was obvious that taking that code out is not going to fix the problem. Not sure what to try next, maybe going back in and taking the text code out of the header and deleting all comments this would leave no text errors possible, maybe upgraded or deactivate all the plug ins.
Anyone have any ideas ?
- The topic ‘Upgrade Problems’ is closed to new replies.