Support Forum
Hi,
I added an image to a post (http://www.excellernen.de/exce.....isfindung/), the thumbnail shows correctly, but the javascript to enlarge the image is not launching. How can this be fixed?
Thanks,
Max
You most probably have a JavaScript conflict - your wp theme or another plugin - which needs to be fixed. This codex article explains what this means and what to look for:
http://codex.simple-press.com/.....-conflict/
If this is the culprit then it is usually a fairly simple matter to track it down
YELLOW
SWORDFISH
|
Thanks for replying. That's frustrating, I see hundreds of .js files. I have absolutely no clue what to do. You said it was easy to fix, but the document says I need to contact theme developers?
There's no other way to have folks upload files? Right now that feature is completely useless.
Well you didn't look very carefully. The very first js file to be loaded on your site is wrong and is loaded by your theme. It is loading an ancient version of jQuery and forcing it to be loaded instead of the WordPress APi version. But even worse you have a plugin that is forcing a second copy - different version this time - to be loaded from the Google CDN.
These will cause all kinds of issues and not just with SP but with any plugin that utilises jQuury correctly.
YELLOW
SWORDFISH
|
Thanks for pointing that out, but please also understand that we're in a support forum here for a reason. When I see 300+ .js files it may not be so obvious to me what/if anything's wrong
I see what you're saying now. So in my Wordpress install I should just remove those lines of code for both the theme and google cdn version?
Thanks!
I'm a bit at a loss here. So I found the jquery call from the theme and removed it. Now I have the one from google still: src='http://ajax.googleapis.com/aja.....?ver=3.5.1
is that ok? I also installded "use google libraries" plugin to always get the latest one from google. Not sure if this helps, but either way, still can't open attachments in the forum.
You actually have about 48 JavaScript files being loaded - nowhere near 300 - and the codex artucle did actually try and be quite explicit about what to look for. There always seems little point in my sitting here typing up the same information as in the article.
And yes - you do still have the initial jQuery problem and I see you also actually have the same issue with the jQuery UI library - also as discussed in the codex page.
It is not a matter of removing the loading of the files and it is certainly not a matter of utilising the google cdn versions. These are to be avoided - again as the codex page makes clear. The only way to safely load jQuery and jQuery libraries is to load the 'approved' and proper versions supplied with WordPress.
This means finding which components are responsible for the bad loads and correcting the code. either manually correcting with our help or requesting that the original authors correct their own code. One of your issues is probably with your WP theme. Another is going to be in one of the other plugins you are running.
An additional problems with these sort of loading errors is that they will stop all jQuery code from functioning. So it is hard to tell if there are any other issues causing conflicts until the initial load issues are resolved and the proper and correct libraries are being used.
YELLOW
SWORDFISH
|
Ok, then I apologize for not fully understanding what was said in the article or what you're saying above. I'm really not sure what else to say. I read the article and didn't know what to do. I'm still confused by the tone, I'm paying for support, am I not? Again, sorry I don't follow the article 100%.
So I thought removing the old theme based jquery call was the right thing to do? I also removed the google libraries plugin. What else am I looking for? I re-read the article and just don't know what I'm looking for.
1 Guest(s)