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
problems with image attachements and the plupload plugin
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 8, 2012 - 9:37 am

Sorry - it looks like this thjead feel between the cracks in the floorboards!

So it doesn't happen ALL the time? I had the impression it was constant. Not that that makes it any less puzzling. In fact - it probably makes it more puzzling.

hang on - one thing worth looking into. Do your image file names have spaces in them?

andy-signature.png
YELLOW
SWORDFISH
Avatar
ovizii
Member
Free Members
sp_UserOfflineSmall Offline
Mar 8, 2012 - 3:23 pm

well, I don't often upload images, so I tried again this is a .png and the problem persists. no spaces in the filename: http://screencast.com/t/xfHDZMDwI

 

the same test with a .jpg http://screencast.com/t/Px6aEIig

 

both didn't work. I haven't tried any other format though... http://screencast.com/t/61DDA8YOUHO5

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 9, 2012 - 4:56 am

Are you up for some core code edits? This is probably going to be the only way we can trace this and even then I am unsure whether we will. But it is probably the next thing to try.

andy-signature.png
YELLOW
SWORDFISH
Avatar
ovizii
Member
Free Members
sp_UserOfflineSmall Offline
Mar 9, 2012 - 5:04 am

sure. I can do that. you could also get admin access if that would be easier?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Mar 9, 2012 - 9:02 am

will let Andy get back with the code edits...   admin might not help because we still cannot see the data... and in the wp plugin editor, we can only get at a few of our files...  ftp access is the best but hardest to come by wink

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 9, 2012 - 11:48 am

Let's start wth a hunch...

The file you need to edit is /sp-api/sp-api-filters.php

It is a BIG file so you will need to do a lot of scrolling I'm afraid! You need to find the function named:

sp_format_display_image() which starts on line 1086 - about two thirds of the way down.

Look for this block of code and comment it out:

    # see if we can determine if the image still exists before going further. So is it relative?
    if (empty($width[1]) && substr($src[1], 0, 7) == 'http://') {
        if (function_exists('curl_init')) {
            $fcheck = curl_init();
            curl_setopt($fcheck, CURLOPT_URL,$src[1]);
            curl_setopt($fcheck, CURLOPT_NOBODY, 1);
            curl_setopt($fcheck, CURLOPT_FAILONERROR, 1);
            curl_setopt($fcheck, CURLOPT_RETURNTRANSFER, 1);
            if(curl_exec($fcheck) === false) return '['.sp_text('Image Can Not Be Found').']';
        }
    }

Let's start with that...

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626