Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter RobertKn

    (@robertkn)

    are I’m the only getting this message ?

    “Bad response from Smush.it”.

    best regards

    I’m getting

    smush.it error could not get the image while processing

    :-/

    Lots of forum comment with similar issues but can’t seem to find an answer anywhere….

    Thread Starter RobertKn

    (@robertkn)

    I take a look into the source…..

    $data = wp_smushit_post($file_url);
    
    	if ( FALSE === $data )
    		return array($file, __('Error posting to Smush.it', WP_SMUSHIT_DOMAIN));
    
    	// make sure the response looks like JSON -- added 2008-12-19 when
    	// Smush.it was returning PHP warnings before the JSON output
    	if ( strpos( trim($data), '{' ) != 0 ) {
    		return array($file, __('Bad response from Smush.it', WP_SMUSHIT_DOMAIN));
    	}

    The error message “Bad response from Smush.it ” will be given when

    ————-
    int strpos ( string $haystack , mixed $needle [, int $offset = 0 ] )

    returns the numeric posission (first occurance) off “needle” in “haystack”

    —>PHP Manual

    trim($data), '{' )

    Trims “{” and some other charactres from the string $data. The output os $data without the trimed chars.

    —> PHP Manual

    Ist the problem there ?????????

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP Smush.it] Bad response from Smush.it’ is closed to new replies.