Sorry to bump, but still looking for a solution… π
Did you open your thickbox.js and change the path to
var tb_pathToImage =
to where the image actually is?
If you don’t, thickbox.js probably can’t find the image, even though it’s on your server.
This is what the paths on my thickbox.js file are currently set to:
var tb_pathToImage = “../wp-includes/js/thickbox/loadingAnimation.gif”;
var tb_closeImage = “../wp-includes/js/thickbox/tb-close.png”;
I’d assume those paths are correct, no?
I have my path for var tb_pathToImage set fully, as in:
http://www.domain.com/wp-content/themes/images/loadingAnimation.gif
I haven’t checked my original TB download, but I’d guess that was the format used there.
I don’t have var tb_closeImage. What version of TB are you running?
Forgive me – I’m the farthest thing you can get from being technoligcally savvy with this – but what does TB mean?
Also, to be clear the ‘loadingAnimation.gif’ does exist:
http://consequenceofsound.net/wp-includes/js/thickbox/loadingAnimation.gif
For whatever reason, it doesn’t work when redirected/included in a url other than the main one:
http://consequenceofsound.net/festival-outlook/wp-includes/js/thickbox/loadingAnimation.gif
I’m sure I could be much clearer in this explanation, just don’t know how else to explain it.
For reference, this is the answer I got from the hosting company:
What this means is that whenever that script or code is attempting to pull that image up it is looking in the wrong paths, such as:
http://consequenceofsound.net/festival-outlook/wp-includes/js/thickbox/loadingAnimation.gif
but the image doesn’t exist along that path it exists here:
http://consequenceofsound.net/wp-includes/js/thickbox/loadingAnimation.gif
Thus, you need to change your code so that the image is being looked for in the right location. Go to the pages where this file is being called up and find where in the source code for that page this animation image is being pulled up. Then change the code to pull from the correct location. It is very possible that this is part of a misconfiguration of your WordPress theme.
Can anyone put this in laymans terms?
Or any idea where I should be looking to change this code?
I’ll try. TB was just my short hand for Thick Box. Nothing too technical there.
I’ll guess that the “festival-outlook” part of your link is tied to your permalink structure. Your variable was a relative path because it included ../ My variable is an absolute path to the file location. Because you used a relative path which appears to be changing post-by-post based on your permalink structure, the file isn’t being found since its own location isn’t changing.
I think if you simply change your variable to an absolute path that specifies exactly where the file is located, your problem will be solved. The absolute path won’t change unless you change your folder structure or relocate your server. It’s also handy to develop a sort of readme.txt for your site, where you document all of these settings. That way, if you update this file, at least you’ll have a good clue as to why something breaks.
Make sense?
The code to change is in your thickbox.js, approximately on line 8.
Thanks for the help.
I changed the path from
“../wp-includes/js/thickbox/loadingAnimation.gif”;
to
“http://consequenceofsound.net/wp-includes/js/thickbox/loadingAnimation.gif”;
and I’m still getting an error:
http://consequenceofsound.net/festival-outlook/wp-includes/js/thickbox/loadingAnimation.gif
I assume I’m doing it right, but it’s not working…
Hmmm…you’re doing it right (afik). I’ll take a look at your site later this evening and post back what I find.
Meantime, can you answer these questions:
1) are you using ThickBox as a javascript file or a plugin that makes use of ThickBox?
2) what is your permalink structure set to?
3) what is the page or link that is calling the link you posted above?
Thanks. I’ll try to answer the questions as best I can.
1.) From what I can tell, there is thickbox.js file in my thickbock folder. I’m not sure if any of the plugins I use makes use of thickbox, but from looking at a page source, it looks like the e-commerce one might. That being said, this problem has been happening long before I started using this plugin.
2.) The permalink is set to: Day and name http://consequenceofsound.net/2009/01/25/sample-post/
3.) There are numerous pages calling the link. A few of note include:
http://consequenceofsound.net/festival-outlook/wp-includes/js/thickbox/loadingAnimation.gif
http://consequenceofsound.net/2008/08/21/wp-includes/js/thickbox/loadingAnimation.gif
http://consequenceofsound.net/2009/01/21/wp-includes/js/thickbox/loadingAnimation.gif
http://consequenceofsound.net/2009/01/09/wp-includes/js/thickbox/loadingAnimation.gif
Thanks!
If you’d like, you can email me at alexyoung@consequenceofsound.net
Just in case this helps find a solution, this is the answer I received from my server:
You called today to inquire about resolving the 404 errors for the loadingAnimation.gif file paths listed in your GPU reports. I suggested searching the WordPress site to find a way to clear the site cache to remove broken links and checking the plug-in configuration for your site.
Anything?