The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

WP Smush - Image Optimization
[Plugin: WP Smush.it] Bad response from Smush.it (4 posts)

  1. RobertKn
    Posted 4 years ago #

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

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


  2. RobertKn
    Posted 4 years ago #

    are I'm the only getting this message ?

    "Bad response from Smush.it".

    best regards

  3. hilmon
    Posted 4 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
    Posted 4 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

  • WP Smush - Image Optimization
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic