WordPress.org

Forums

Notice: wp_enqueue_script was called incorrectly (1 post)

  1. blixvod
    Member
    Posted 1 year ago #

    Hello
    I'm using a theme for few days and today I had blank white page in the screen of my website.
    I put the debug on and I saw the following errors:
    Error 1:
    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 login_enqueue_scripts hooks.
    Error 2:

    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 login_enqueue_scripts hooks.
    Error 3:
    Notice: Use of undefined constant theme_js - assumed 'theme_js' in /home/whoxnet/domains/animevod.net/public_html/wp-content/themes/video-elements/functions.php on line 29

    What's strange that last night the site worked great, today i'm waing up and I see this errors.. I think the theme isn't compactible since wordpress 3.3, but I already added about 200 posts with special parameters included in the theme. I must fix this errors, someone has any idea?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.