WordPress.org

Ready to get started?Download WordPress

Forums

WP Smush.it
Bad response from Smush.it (4 posts)

  1. RobertKn
    Member
    Posted 2 years ago #

    I got the responce "Bad response from Smush.it".

    Is the Smush.it service down or is it an bug ?

    http://wordpress.org/extend/plugins/wp-smushit/

  2. RobertKn
    Member
    Posted 2 years ago #

    are I'm the only getting this message ?

    "Bad response from Smush.it".

    best regards

  3. hilmon
    Member
    Posted 2 years ago #

    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....

  4. RobertKn
    Member
    Posted 2 years ago #

    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 ?????????

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags