• Resolved charleskh

    (@charleskh)


    Using UPG Pro.. when redirect is enabled user gets the following error when posting an image:
    “Error: SyntaxError: Unexpected token < in JSON at position 0”.

    Preview of the request in devtools:
    {“error”:false,”msg”:”
    Successfully posted.<\/div>”,”srv_msg”:”Image found “,”type”:”success”}

    And the response:
    <script type=’text/javascript’>
    window.location=’https://memorial2021.wpengine.com/photo-gallery/&#8217;;
    </script>{“error”:false,”msg”:”<div class=’upg_success’>Successfully posted.<\/div>”,”srv_msg”:”Image found “,”type”:”success”}

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author odude

    (@odude)

    When AJAX is enabled, redirection will not work.
    Redirection only works when AJAX is off.

Viewing 1 replies (of 1 total)

The topic ‘Error: SyntaxError: Unexpected token < in JSON at position 0’ is closed to new replies.