Issues with wp_enqueue_script and jquery-ui

Make sure you are also including the jquery effects core… and jquery if it’s not already being loaded.

function my_callback() {
    wp_enqueue_script('jquery');  // If not already loaded
    wp_enqueue_script('jquery-effects-core');
    wp_enqueue_script('jquery-effects-shake');
}
add_action('wp_enqueue_scripts', 'my_callback');