I receive the error: 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.
But my code looks perfectly fine to me in my theme's functions.php which you can see here:
<?php
// Register and Load jQuery Plugins
function enqueue_scripts(){
wp_enqueue_script('jquery'); // load jquery with theme
wp_enqueue_script('pulldown', get_stylesheet_directory_uri() . '/js/pulldown.js');
wp_enqueue_script('supersized', get_stylesheet_directory_uri() . '/js/supersized.3.2.7.min.js');
wp_enqueue_script('metadata', get_stylesheet_directory_uri() . '/js/jquery.metadata.js');
wp_enqueue_script('ytplayer', get_stylesheet_directory_uri() . '/js/jquery.mb.YTPlayer.js');
wp_enqueue_script('placeholder', get_stylesheet_directory_uri() . '/js/placeholder.js');
wp_enqueue_script('mediaqueries', get_stylesheet_directory_uri() . '/js/css3-mediaqueries.js');
wp_enqueue_script('countdown', get_stylesheet_directory_uri() . '/js/jquery.countdown.pack.js');
} add_action('wp_enqueue_scripts', 'enqueue_scripts');
?>
Can you see a problem here?
wp_enqueue_script()than the ones you've included in your question. If the error message does not appear after switching to your Theme, the problem is in one of your Plugins. Re-enable Plugins, one-by-one, until you determine the culprit. – Chip Bennett Feb 18 at 21:53