wp_enqueue_style was called incorrectly. (3 posts)

  1. AzadehLeo
    Posted 3 years ago #

    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.



  2. esmi
    Forum Moderator
    Posted 3 years ago #

    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.

  3. AzadehLeo
    Posted 3 years ago #

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

    Thank you very much

Topic Closed

This topic has been closed to new replies.

About this Topic