• Resolved lucein

    (@lucein)


    hello,
    I have the latest version of Redirection installed v6.3.

    When i try to access the Redirection, all I get is a blinking grey bar. Going to the support tab after quite a while I see the message: Something went wrong.

    Summary: Your REST API is not working and the plugin will not be able to continue until this is fixed.
    below this lists the following:

    URL: https://tnvc.com/wp-json/
    
    GET POST SyntaxError: Unexpected token '<', " <!DOCTYPE "... is not valid JSON
    
    Unexpected token '<', " <!DOCTYPE "... is not valid JSON (SyntaxError)
    
    This could be a security plugin, or your server is out of memory or has an external error. Please check your server error log

    I get this also with:
    URL: https://tnvc.com/?rest_route=/
    URL: /wp-json/

    I checked the error log and can not find any reference to the this error in the log.

    The following is the debug information from the support screen.

    Plugin: 5.3.2 4.2
    WordPress: 5.9.3 (single)
    PHP: 7.4.13
    Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
    JavaScript: https://tnvc.com/wp-content/plugins/redirection/redirection.js?ver=5.3.2-c785eb862c23d732cc3689b27f4eec09
    REST API: /wp-json/
    Query: ?page=redirection.php&sub=support
    
    Error: undefined

    I can hit the /wp-json service directly and it loads without a problem.

    Please advise as to what you need to diagnose and fix the problem.

Viewing 1 replies (of 1 total)
  • Plugin Author John Godley

    (@johnny5)

    As it shows it is receiving

    Unexpected token '<', " <!DOCTYPE "... is not valid JSON (SyntaxError)

    That looks like the start of a web page. This may be caused by a security plugin. I can’t really tell you how to resolve it as it is specific to your site and caused by something running there. You could look at your WP site health and see if that shows anything.

Viewing 1 replies (of 1 total)

The topic ‘Rest APi shows Unavailable’ is closed to new replies.