WordPress.org

Ready to get started?Download WordPress

Forums

Scriptaculous 404 Errors (6 posts)

  1. nicholasjcoleman
    Member
    Posted 4 years ago #

    I'm stumped!

    I'm receiving DOZENS of 404 errors in my logs, all pointing to:

    /wp-includes​/js​/scriptaculous​/wp-slider.js
    ​/wp-includes​/js​/scriptaculous​/wp-sound.js
    /wp-includes​/js​/scriptaculous​/wp-controls.js
    ​/wp-includes​/js​/scriptaculous​/wp-effects.js
    /wp-includes​/js​/scriptaculous​/wp-sound.js
    /wp-includes​/js​/scriptaculous​/wp-dragdrop.js
    /wp-includes​/js​/scriptaculous​/wp-builder.js

    Site located at http://after.davecrossweddings.com

    Any ideas?

  2. alism
    Member
    Posted 4 years ago #

    Have a look at this file:
    http://after.davecrossweddings.com/wp-includes/js/scriptaculous/scriptaculous.js

    Now I'm no Javascript expert or anything, but it looks like this part:

    var includes = s.src.match(/\?.*load=([a-z,]*)/);
          (includes ? includes[1] : 'builder,effects,dragdrop,controls,slider,sound').split(',').each(
           function(include) { Scriptaculous.require(path+include+'.js') });

    ...is looking for those files, which as you say, don't exist. So you've either got some files left to upload, or a bit of unnecessary script. I'd probably go back to whoever created scriptaculous.

  3. nicholasjcoleman
    Member
    Posted 4 years ago #

    Since these files are located in the wp-includes folder, I'm guessing that part of WordPress base install uses Scriptaculous code to work... and probably, doesn't use these specific modules, but is loading them anyway... except the base WordPress install doesn't use the files, so they aren't in the folder at all.

    So... that begs the question, why are they being called? Is this intentional?

  4. nicholasjcoleman
    Member
    Posted 4 years ago #

    Spoke too soon... I think maybe it's a result of a plugin that's trying to load the Scriptaculous libraries and is doing it from the base WordPress includes...

  5. alism
    Member
    Posted 4 years ago #

    Yeah, I think you're probably right there.

    (for some reason I didn't twig above that Scriptaculous was part of WP core - not sure why! Brain is absent today, sorry)

  6. nicholasjcoleman
    Member
    Posted 4 years ago #

    Fixed it!

    It's an error in the d13slideshow plugin.

    That plugin calls and loads:
    wp-includes/js/scriptaculous/scriptaculous.js
    which is part of WordPress core... for some reason, this loads the scriptaculous effects with a prefix of "wp-".

    I altered the d13slideshow.php file to call:
    wp-includes/js/scriptaculous/wp-scriptaculous.js
    which is ALSO part of WordPress core and it now no longer loads the effects files with the (incorrect) "wp-" prefix.

    I've notified the plugin author... problem solved (got rid of THOUSANDS of 404 errors, thankfully).

Topic Closed

This topic has been closed to new replies.

About this Topic