Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
No thumbnail using uploader
Avatar
Midget3k
Member
Free Members
sp_UserOfflineSmall Offline
Dec 15, 2012 - 3:54 pm

Hi,

 

Just a little problem since the update,

 

Whenever I upload an image using the uploader plugin, the resultant post shows the attachment which can be clicked on to open. However, there is no thumbnail present - instead the text "[Image Can Not be found]" is displayed.

I've had a look on the server-side and the _thumbs directory does contain the generated thumbnails.

Any advice would be much appreciated

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 15, 2012 - 4:56 pm

This one has been worrying me for a little while now. We have had two users before this with the same issue - which makes it extremely rare of course - but the main problem for us is that there is no logical reason for it. we are actually calling a fairly common WordPress function at the point of the issue which seems to fail to respond as expected.

Could you make a small code edit? Hopefully you are able to. This will show us if the problem is the one I am referring to and also will act as a workaround. If so the file you need is /simple-press/sp-api-sp-api-filters.php

It's quite a big file I am afraid and the function we are needing is called sp_format_display_image() which is about two thirds of the way through and starts around line 1174.

# see if we can determine if the image still exists before going further. So is it relative?
if (substr($src[1], 0, 7) == 'http://') {
    $response = wp_remote_get($src[1]);
    if (is_wp_error($response) || wp_remote_retrieve_response_code($response) != 200) {
        return '['.sp_text('Image Can Not Be Found').']';
    }
}

Then comment it all out. You can do that by outing a hash # character if front of each line. Save and retry and let me know if this resolves it please.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Midget3k
Member
Free Members
sp_UserOfflineSmall Offline
Dec 16, 2012 - 2:51 pm

Yeah, editing that code appears to solve the issue.

 

Cheers  smile

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 16, 2012 - 3:56 pm

We clearly need to look again at that code section
Thanks

andy-signature.png
YELLOW
SWORDFISH
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: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625