Support » Fixing WordPress » wp_enqueue_style was called incorrectly.

  • Hi guys,

    I just updated wordpress to version 3.5.1. A second after that I got an error message and I can’t access my website anymore. I looked at other posts but they were not helpful. Can someone tell me what I should do to resolve this issue? Here is the error/notice I got

    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.

    I’m a newbie so I would appreciate it if you give me instructions in a way that I can understand.



Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi


    Forum Moderator

    Have you tried:

    – deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    – switching to the default theme to rule out any theme-specific problems.

    resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    Brilliant! You were right. One of the plugins was causing the problem.

    Thank you very much

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_enqueue_style was called incorrectly.’ is closed to new replies.