Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Images in posts not enlarging
Avatar
max99
Member
Free Members
sp_UserOfflineSmall Offline
May 27, 2013 - 8:52 am

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

Avatar
max99
Member
Free Members
sp_UserOfflineSmall Offline
May 27, 2013 - 8:59 am

Also, another user uploaded two files, same issue, can't open them.

 

http://www.excellernen.de/exce.....efuntkion/

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 27, 2013 - 9:00 am

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

andy-signature.png
YELLOW
SWORDFISH
Avatar
max99
Member
Free Members
sp_UserOfflineSmall Offline
May 27, 2013 - 9:21 am

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.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 27, 2013 - 9:51 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
max99
Member
Free Members
sp_UserOfflineSmall Offline
May 27, 2013 - 9:58 am

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!

Avatar
max99
Member
Free Members
sp_UserOfflineSmall Offline
May 27, 2013 - 11:23 am

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.

Avatar
max99
Member
Free Members
sp_UserOfflineSmall Offline
May 27, 2013 - 1:35 pm

I've searched through every plugin, not even sure if this is still an issue, can someone check my source code again and let me know if I still need to get rid of some code? Thanks

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 27, 2013 - 2:29 pm

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.

 

andy-signature.png
YELLOW
SWORDFISH
Avatar
max99
Member
Free Members
sp_UserOfflineSmall Offline
May 27, 2013 - 2:54 pm

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. 

 

 

 

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625