Home Ask Login Register

Developers Planet

Your answer is one click away!

Mike Foley February 2016

js/vendor/jquery.js returns 404 error

enter image description hereMy jQuery is returning a 404 error. I recently found out the scripts were being called for in the wrong way. It was suggested that I make changes which i did. there is 1 change I can't make or it breaks the theme. I'm not sure which file controls it though. below are some examples.

header.php - the italicized "/></script> breaks my theme if removed so i had to put it back. I've been told it should be removed

<link rel="stylesheet" href="<?php echo esc_url( home_url( '/' ) ); ?>wp-content/themes/cheaptubes/css/foundation.css" />
    <script src="<?php echo esc_url( home_url( '/' ) ); ?>wp-content/themes/cheaptubes/js/vendor/*"></script>*
    <link rel="stylesheet" href="<?php echo esc_url( home_url( '/' ) ); ?>wp-content/themes/cheaptubes/style.css" />
<?php wp_head(); ?>


<script src="<?php echo esc_url( home_url( '/' ) );
    wp_register_script( 'reverie-js', get_template_directory_uri() . '/js/foundation.min.js', array( 'jquery' ), '', true );


<script src="<?php echo esc_url( home_url( '/' ) ); ?>wp-content/themes/cheaptubes/js/vendor/jquery.js"></script>
<script src="<?php echo esc_url( home_url( '/' ) ); ?>wp-content/themes/cheaptubes/js/foundation.min.js"></script>
    (function($) {

layout.php top

<script src="<?php ech esc_url(home_url( '/' ) ); ?>wp-content/themes/cheaptubes/js/vendor/


<script src="<wp_register_script('reverie-js', get_template_directory_uri() . '/js/foundation.min.js', array( 'jquery' ), ", t        


Andy Arndt February 2016

404 means the url is invalid, the file isn't found on the server. The actual url you are looking for is: http://cheaptubes.com/wp-content/themes/cheaptubes/js/vendor/jquery.js

I think you should try removing that entire line that you have italicized, I think you're already including the jquery file in the footer.php.

Post Status

Asked in February 2016
Viewed 3,349 times
Voted 14
Answered 1 times


Leave an answer

Quote of the day: live life