• Resolved harrowsmithmag

    (@harrowsmithmag)


    Hi!

    I am seeing this error as well. Have noted it for the last week or so. It causes Gutenberg to hit admin-ajax.php an average of 25 attempts per edit page load.

    Uncaught SyntaxError: Unexpected token < in JSON at position 0
        at JSON.parse (<anonymous>)
        at Object.success (mfis-admin-block-editor-scripts.js?ver=5.3.2:57)
        at i (jquery.js:2)
        at Object.fireWith [as resolveWith] (jquery.js:2)
        at x (jquery.js:4)
        at XMLHttpRequest.c (jquery.js:4)

    I am not sure if this is worth mentioning but when I noticed the error initially, it was hitting admin-ajax.php upwards of 200+ attempts per edit page load. My first response was to disable and then re-enable the plugin. In this case, the caching might have been helping repeat the editor load. Unsure.

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

    (@harrowsmithmag)

    General error from the console:

    TypeError: Cannot read property 'requestContent' of undefined

    Digging into this a bit more, I am seeing an average of 36 requests for “mfis_get_size_from_id” per reload (and then a few more for added measure).

    The json response I am seeing is:

    {"image_check":"pass"}

    The mfis_do_ajax_block_editor function seems to loop a lot when it is trying to figure out the image details. But I am guessing.

    Of course, I am not familiar with how many requests should be made on Gutenberg load.

    Plugin Author MS

    (@corgmo)

    The server’s json response is what is expected by the plugin, so there shouldn’t be an issue there.

    Only thing I can think of to suggest is that you disable other plugins and try one of the default themes to rule out the problem being in your plugin/theme setup.

    Plugin Author MS

    (@corgmo)

    Marking as resolved. If you need further support please get in touch.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unexpected Token In JSON’ is closed to new replies.