WordPress.org

Support

Support » How-To and Troubleshooting » Scriptaculous 404 Errors

Scriptaculous 404 Errors

  • nicholasjcoleman
    Member

    @nicholasjcoleman

    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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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.

    nicholasjcoleman
    Member

    @nicholasjcoleman

    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?

    nicholasjcoleman
    Member

    @nicholasjcoleman

    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…

    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)

    nicholasjcoleman
    Member

    @nicholasjcoleman

    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).

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Scriptaculous 404 Errors’ is closed to new replies.