2

I can login into the Dashboard and see the menu of the left, it shows that there are 7 plugin updates and a WordPress update required but on the right I have a blank screen, I can see the update to WordPress button along the top but when you click on it nothing happens. I have read several posts and update the config file to true to show debug, this is the result:


Notice: wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/breinton/public_html/wp-includes/functions.php on line 3587

Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or init hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /home/breinton/public_html/wp-includes/functions.php on line 3587

Notice: register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead. in /home/breinton/public_html/wp-includes/functions.php on line 3467

Notice: register_widget_control is deprecated since version 2.8! Use wp_register_widget_control() instead. in /home/breinton/public_html/wp-includes/functions.php on line 3467


Any help or advice on how to fix this and update the Wordpress without loosing anything would be really appreciated.

  • 1
    It looks like you ain't got debugging activated. Please enable debugging - blueprint for wp-config.php - and file an edit so we can look at your error messages. So far those are only deprecation notices that wouldn't cause an abort of your script. – kaiser Jan 10 '14 at 6:55
  • I have renamed the plugins folder and also the themes folder but even though plugins have now disappeared the screen to the right of the dashboard menu is still blank white?? Any other suggestions? – user44956 Jan 12 '14 at 17:12
1

You have active a plugin or theme, that include scripts or styles via function wp_enqueue_style and wp_enqueue_script. Since version 3.3 is it not possible to enqueue script and styles without a hook. Find the source and fix this, is easy to do that. The codex have for this topic a fine documentation.

/**
 * Proper way to enqueue scripts and styles
 */
function theme_name_scripts() {
    wp_enqueue_style( 'style-name', get_stylesheet_uri() );
    wp_enqueue_script( 'script-name', get_template_directory_uri() . '/js/example.js', array(), '1.0.0', true );
}

add_action( 'wp_enqueue_scripts', 'theme_name_scripts' );

The same problem is on the your widget topic. To find the right plugin or theme, deactivate all plugins and switch to default theme. Switch on step by step and check.

  • How do i deactivate all the plugins? When I click on the left menu the right menu is blank, (white) – user44956 Jan 10 '14 at 13:46
  • I have managed to download the error log as follows: [03-Mar-2012 15:20:50 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/breinton/public_html/wp-content/plugins/timthumb-vulnerability-scanner/class-cg-tvs-plugin.php on line 115 – user44956 Jan 10 '14 at 13:46
  • 1
    @user44956 Just rename the plugin folder to something plugins1 check and see. – Rahil Wazir Jan 10 '14 at 14:18
  • Also try switching to the default theme by renaming your current theme's folder in wp-content/themes and adding "-old" to the end of the folder name using via FTP or SFTP or whatever file management application your host provides. – Tara Jan 10 '14 at 17:10
  • I tried renaming the folder by putting OLD on the end and website went blank?? – user44956 Jan 10 '14 at 20:59
0

you have have answered your own question, the problem is the timthumb-vulnerability-scanner plugin, delete it or move it from your plugins folder then logout refresh browser cache and log back in.

  • It looks as thought the OP may have already tried this per this comment: wordpress.stackexchange.com/questions/129240/… – s_ha_dum Apr 6 '14 at 14:19
  • that wouldn't work as plugins and themes don't rely on folder names, wordpress gets the theme name from the style.css comment header, plugins are similar except the plugins php file has the plugin name. its best to remove completely from theme or plugin folder – Firestorm_dev Apr 6 '14 at 14:36
  • If you rename the folder (or delete it) for a plugin or theme the plugin/theme will be deactivated. It has worked that way ever since I can remember, which is back to about 1.5. Renaming the folder does work. Try it with an active theme and visit the Theme menu on the backend. You will see a notice about reverting to the default theme. The process used to be more seamless than that and didn't require the backend visit, if I remember correctly. – s_ha_dum Apr 6 '14 at 14:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.