Support Forum
Thanks for the help.
I've found this portion of the mentioned function:
if ($anchor) {
if($width[1] ? $w = $width[1] : $w = 'auto');
if($height[1] ? $h = $height[1] : $h = 'auto');
# Use popup or not?
if ($sfimage['enlarge'] == true) {
$out = '<a href="javascript:void(null)" class="vtip" title="'.sp_text('Click image to enlarge').'" onclick="spjPopupImage(\''.$src[1].'\', \''.$w.'\', \''.$h.'\', \''.$sfimage['constrain'].'\');" >';
$out = apply_filters('sph_display_image_popup', $out, $src[1]);
} else {
$out = '<a href="'.$src[1].'" '.$thistitle.'>';
}
}
This is the HTML its rendering:
onclick="spjPopupImage('http://www.weedwackers.org/ww/wp-content/sp-resources/forum-image-uploads/weedwack/2013/03/IMG_3627.JPG" title="Click image to enlarge" href="javascript:void(null)">
I notice the closing paren for the spjPopupImage function is missing in the HTML... My knowledge of PHP only goes so far. Do you see any issues with the function? improper escape characters? Something I'm missing?
On a side note, I've upgraded the simple press plugin to the most recent version to see if that helped... to no avail.
Actually, Here is the full section of that html output.
Yes - that's the code I was pointing you to. And yes - as I said - the closing quotes are double not single. That code is not doing that. if you look at the escaping you can see that.
And that is why i was asking about other WP plugins that might be running filters on post content as this sort of thing can occur with a badly behaved filter
YELLOW
SWORDFISH
|
That makes two of us!
I trawled through these forums looking for any evidence of a prior issue but found none and I don't remember one. I remain suspicious of some errant text formatter or filter somewhere but those other plugins you have there look innocuous enough. I will try and find time this morning to download them and try them out locally.
YELLOW
SWORDFISH
|
It does look like you WP theme ads some image handling code too. It might be worth a try and switch to another theme just for a quick test. You may have to upload a new image to a post after switching just to be sure.
I have the same symptom (thumb won't enlarge - mismatched quotes around image). I've been using simplepress for several years and this problem didn't arise till upgrading to the latest version.
So you can see in this forum post where the images BEFORE the upgrade will enlarge, but the images posted AFTER the upgrade won't. http://www.byobwebsite.com/for.....up/#p25512
For the short term I have changed the size of the thumbnail images so my users can still make use of the images.
Now - the theme didn't change but my hosting did. I moved to WPEngine immediately prior to upgrading.
I have deactivated all plugins that appear to me to use or require jQuery with no change in behavior. Given the mismatch in quotes I don't see this as a jQuery issue anyway.
No - I doubt it is a jQuery issue. Although I would point out that if you open the web console on that page you will find a raft of script errors - mainly coming from something called 'jquery-postmessage-plugin'. After those I am a little surprised much works at all to be honest!
Well - as you saw with the first user the thread sort of fizzled and this occurrence now becomes the second such one to have this issue. One difference that I see though is that clearly on the threadx you linked to there are images that work and those that do not. This suggest strongly that the problem is with the saving of the post into the database as opposed to the content display as the display applies the same logic to all of the images.
So on the 19th of August it was fine and by the 27th it was broken.... That's a small and recent window. Obvious question has to be what might have changed? Upgrading to SP 5.5.0.1 can't be the culprit as that was a very small change for a security issue - plus this is the only instance of such a problem. I don't really see that moving to WP Engine an be an issue either. They are not likely to be negatively effecting database saves.
So - anything else over those few, short days?
YELLOW
SWORDFISH
|
1 Guest(s)