• Here’s what I get when I try to bulk smush:

    SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

    SyntaxError: JSON.parse: unterminated string literal
    SyntaxError: JSON.parse: bad control character in string literal
    SyntaxError: JSON.parse: bad character in string literal
    SyntaxError: JSON.parse: bad Unicode escape
    SyntaxError: JSON.parse: bad escape character
    SyntaxError: JSON.parse: unterminated string
    SyntaxError: JSON.parse: no number after minus sign
    SyntaxError: JSON.parse: unexpected non-digit
    SyntaxError: JSON.parse: missing digits after decimal point
    SyntaxError: JSON.parse: unterminated fractional number
    SyntaxError: JSON.parse: missing digits after exponent indicator
    SyntaxError: JSON.parse: missing digits after exponent sign
    SyntaxError: JSON.parse: exponent part is missing a number
    SyntaxError: JSON.parse: unexpected end of data
    SyntaxError: JSON.parse: unexpected keyword
    SyntaxError: JSON.parse: unexpected character
    SyntaxError: JSON.parse: end of data while reading object contents
    SyntaxError: JSON.parse: expected property name or '}'
    SyntaxError: JSON.parse: end of data when ',' or ']' was expected
    SyntaxError: JSON.parse: expected ',' or ']' after array element
    SyntaxError: JSON.parse: end of data when property name was expected
    SyntaxError: JSON.parse: expected double-quoted property name
    SyntaxError: JSON.parse: end of data after property name when ':' was expected
    SyntaxError: JSON.parse: expected ':' after property name in object
    SyntaxError: JSON.parse: end of data after property value in object
    SyntaxError: JSON.parse: expected ',' or '}' after property value in object
    SyntaxError: JSON.parse: expected ',' or '}' after property-value pair in object literal
    SyntaxError: JSON.parse: property names must be double-quoted strings
    SyntaxError: JSON.parse: expected property name or '}'
    SyntaxError: JSON.parse: unexpected character
    SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data

    I get the same error when I try to optimize single images.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor reSmush.it

    (@resmushit)

    Hi sampla,

    Can you provide the output of the JSON to find out where the error is located.

    Cheers,
    Charles

    Thread Starter sampla

    (@sampla)

    Hi,
    thanks for responding so soon.

    Apart from the error, I’m getting a warning when I enter the plugin. Warning: filesize(): stat failed for /usr/home/***/wp-content/plugins/resmushit-image-optimizer/classes/resmushit.class.php on line 312

    I hope this is what you’re looking for:

    resmushit_bulk_resize/</<
                                 https://www.***.com/wp-content/plugins/resmushit-image-optimizer/js/script.js:115:19
    i                            https://www.***.com/wp-admin/load-scripts.php:2:27444
    fireWith                     https://www.***.com/wp-admin/load-scripts.php:2:28213
    y                            https://www.***.com/wp-admin/load-scripts.php:4:22719
    c                            https://www.***.com/wp-admin/load-scripts.php:4:26925
    • This reply was modified 6 years, 5 months ago by sampla.
    • This reply was modified 6 years, 5 months ago by sampla.
    Plugin Contributor reSmush.it

    (@resmushit)

    Hi Sampla,

    Sorry for this very late reply. This error is due to a picture file which is missing on your server. Basically, the file is still “referenced” on your WP Database, but the file is missing on the disk.

    filesize(): stat failed for <file> means the the <file> is missing (or is corrupted). Check that file, and it will run like a charm ??

    Cheers,
    Charles

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘SyntaxError: JSON.parse’ is closed to new replies.