WordPress.org

Ready to get started?Download WordPress

Forums

Boilerplate
[resolved] Script.js error in latest version 3.4.3 (7 posts)

  1. TimToo
    Member
    Posted 2 years ago #

    Hi I have just started doing a new site with this theme and I just love it, nice work - thank you Aaron.

    But am getting an error :
    in firebug console I am seeing this error -
    "NetworkError: 404 Not Found - http://www.mysite.co.uk/wp-content/themes/boilerplatejs/script.js"

    I have looked at the admin settings page and it shows the code correct there, but the entry for jQuery shows the same missing forward slash.

    Regards

    Tim Coupland

    http://wordpress.org/extend/themes/boilerplate/

  2. cmleese
    Member
    Posted 2 years ago #

    I have this problem also. Looked in , header.php, footer.php, functions.php .
    I don't know where this URL is created. I can't proceed with development until I get the scripts to load.
    Does anyone know where the <script> tags are generated?

    On a note also, I installed another theme, Constellation, and it to does the same thing. I'm assuming its a boilerplate thing since it uses that as well.

    Please help!

  3. cmleese
    Member
    Posted 2 years ago #

    @TimToo & @Aaron T. Grogg

    Open up this file:

    .\wp-content\themes\boilerplate\boilerplate-admin\admin-menu.php

    and add the slashes in front of the link and scripts shown bellow:

    line 361-

    echo '<!--[if IE ]><link rel="stylesheet" href="'.BP_THEME_URL.'/css/ie.css'.$cache.'"><![endif]-->'.PHP_EOL;

    line 371-

    echo '<script src="' .BP_THEME_URL. '/js/modernizr.js'.$cache.'"></script>'.PHP_EOL;

    line 381-

    echo ' <script>!window.ieshiv && document.write(unescape(\'%3Cscript src="' .BP_THEME_URL. '/js/ieshiv.js'.$cache.'"%3E%3C/script%3E\'))</script>'.PHP_EOL;

    line 390-

    echo '<script src="' .BP_THEME_URL. '/js/respond.js'.$cache.'"></script>'.PHP_EOL;

    line 402-

    echo '<script>window.jQuery || document.write(unescape(\'%3Cscript src="' .BP_THEME_URL. '/js/jquery.js'.$cache.'"%3E%3C/script%3E\'))</script>'.PHP_EOL;

    line 410-

    echo '<script src="' .BP_THEME_URL. '/js/plugins.js'.$cache.'"></script>'.PHP_EOL;

    line 418-

    echo '<script src="' .BP_THEME_URL. '/js/script.js'.$cache.'"></script>'.PHP_EOL;

  4. cmleese
    Member
    Posted 2 years ago #

    also the new version of admin-menu.php (3.4.4) fixes this which can be found here :

    http://themes.svn.wordpress.org/boilerplate/3.4.4/boilerplate-admin/admin-menu.php

  5. TimToo
    Member
    Posted 2 years ago #

    @cmleese

    Thanks for finding that fix and sharing it.

    for this project ( short deadline ) I went back to 'Bones'
    with this fix I will give Boilerplate Theme another go.

    Tim

  6. Aaron T. Grogg
    Member
    Theme Author

    Posted 2 years ago #

    @TimToo & @cmleese:

    Thank you both, and sorry for not getting back to you earlier, not sure why this forum doesn't email authors, I just don't "go fishing" on here enough... :-)

    Anyhow, yes, the / was missing but has been repaired, but the issue with the 404ing script.js is an issue that is discussed in both the WP Admin page as well as the readme.txt.

    Basically, in order to prevent files that developers might customize from being overwritten when a theme/plug-in is updated, the files that ships is titled script-starter.js and style-starter.css. The notes state you should a copy, renaming it as script.js and style.css, and make your changes to those files; they are the ones that the theme/plug-in applies.

    Then, when the theme/plug-in is updated, the "-starter" file is updated, allowing developers to manually merge the two. The manual part sucks, but I can't come up with a better method to avoid overwrites...

    Any thoughts?

    Atg

  7. Aaron T. Grogg
    Member
    Theme Author

    Posted 1 year ago #

    @All: I am marking this as resolved, please notify me if you are still experiencing this problem.

    Thanks,
    Atg

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic