• 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 689

    Warning: 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 ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The first thing I would try is removing all plugins.

    However you might have some issues with your .htaccess as well.

    I get different results if I go to

    https://www.recipesbymike.com

    or

    https://recipesbymike.com

    With the www in place all I get is errors, otherwise the errors are there but at least the website is loading.

    See if you can login through:
    https://recipesbymike.com/wp-login.php

    and check your permalinks in your settings and cross check this against your .htaccess file.

    But definitely, if you can login, start deactivating plugins until you narrow down if one is the culprit.

    Thread Starter DomainClaimers

    (@domainclaimers)

    I know that I can’t log on https://recipesbymike.com/wp-login.php – Not unless I change this code

    // define(‘DB_CHARSET’, ‘utf8’);
    // define(‘DB_COLLATE’, ”);

    I will try to deactivate the plug ins and remove any code in the css that I was using for some of the plug ins, not sure what I know about the .htaccesse file or what I need to be looking for there.

    Just under 2 minutes ago my host informed me that my site was upgraded to the latest WordPress. However, I am unable to go to my site as WordPress is telling me that my site needs upgrading. My site is https://stayclearliving.com. Why is this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Upgrade Problems’ is closed to new replies.