Overcoming: Warning: array_keys () [function.array-keys] / widgets.php on line 1045 in wordpress
If you are experiencing an error message that appears after adding the top blog on the widget html text on the page that is paired dashboard widget even knows where previously missing. You do not need to worry and panic, here we provide solutions to overcome problems that interfere with the error message on the display of your blog.
Warning: array_keys () [function.array-keys]: The first argument Should be an array in / home / UserCpanel / public_html / wp-includes / widgets.php on line 10Warning: array_keys () [function.array-keys] The first argument Should be an array in / home / UserCpanel / public_html / wp-includes / widgets.php on line 1045
Try to follow the following guidelines:
• Login through FTP / FileZilla to your hosting accounts
• Log in to install wordpress for example public_html / wp-includes /, then download the file ‘widgets.php’ to the local computer (Later, two copies widgets.php to different folders)
• Open one of the existing widgets.php files on your hard disk using notepad + +.
• Immediately to the 1045 lines and remove the script below, then click save:
PHP:
</p>
<p style=”text-align: justify;”>if ( !isset($options[$o]['title']) || !isset($options[$o]['text']) )
continue;
$id = “text-$o”; // Never never never translate an id
wp_register_sidebar_widget($id, $name, ‘wp_widget_text’, $widget_ops, array( ‘number’ => $o ));
wp_register_widget_control($id, $name, ‘wp_widget_text_control’, $control_ops, array( ‘number’ => $o ));
}
• Upload files widgets.php that you have to edit it to public_html / wp-includes /, overwrite / overwrite existing files in the folder
• Login to your wordpress dashboard pages
• After the error message is lost remove all the widgets that you have previous pairs
• Back to FileZilla and copy your files widgets.php that has not been edited to your public_html / wp-includes /, overwrite / override back to the files that have been in there in the Directory
• Make back-widget widget required.
Web Site Design