Support Forum

problems with image attachements and the plupload plugin

15 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

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…