• Resolved carolwain

    (@carolwain)


    I just installed amp on a number of websites with no problems but on https://worldincentivenetwork.com I got the error: no route was found matching the URL and Request Method.

    I tried uninstalling the plugin and reinstalling but got the same problem.

    As far as I know, the set-up for this site is the same as my other sites, so I’m confused.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter carolwain

    (@carolwain)

    btw, I was using the Reader mode

    Plugin Author Weston Ruter

    (@westonruter)

    Is the plugin active now? Where did you go to cause that error to appear?

    Thread Starter carolwain

    (@carolwain)

    Yes, it is active now and I’m in the set-up wizard.

    Page is page=amp-options

    Plugin Author Weston Ruter

    (@westonruter)

    Oh, do you mean you can’t access the Settings page in the admin?

    Thread Starter carolwain

    (@carolwain)

    Well, I can access it but when I go to SAVE I get that error.

    The plugin then reverts to the AMP legacy theme and turns off the “Redirect mobile visitors to amp” toggle.

    Analytics code isn’t saving either

    Plugin Author Weston Ruter

    (@westonruter)

    OK, that’s interesting.

    Are you using the block editor (Gutenberg) or the classic editor? If the block editor, are you able to save changes to posts?

    When you save the settings, what happens is a POST request is made to /wp-json/amp/v1/options?_locale=user. For some reason this is failing for you. The error you’re getting indicates that the WordPress REST API is responding to the request but it isn’t finding the route.

    Do you by chance have any special rewrite rules, like in .htaccess or something?

    What’s strange is that I can make a request to the REST API endpoint on your site and for me the route is being found, and it is responding as expected saying I don’t have permission:

    $ curl -d '' https://worldincentivenetwork.com/wp-json/amp/v1/options?_locale=user
    {"code":"amp_rest_cannot_manage_options","message":"Sorry, you are not allowed to manage options for the AMP plugin for WordPress.","data":{"status":401}}

    I recommend opening the browser DevTools, going to the Network tab, and check the request that is made when you save the options. Is it going to expected location?

    (Don’t share a screenshot that includes the x-wp-nonce.)

    Thread Starter carolwain

    (@carolwain)

    Hi there… I’m not using the classic editor. I am using Thrive Themes on all my websites.

    I was able to make a post https://worldincentivenetwork.com/test/ and I was able to edit it.

    One of my draft posts wouldn’t save though.

    I’ll ask my tech guy to look into this because it sounds like it’s at my end, rather than the plugin.

    Thank you for your help.

    @carolwain As we haven’t received a response, I’ll mark this as resolved. Feel free to open a new support topic if you continue to encounter issues, or reopen this topic and we’d be happy to assist. Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Error: No route was found matching’ is closed to new replies.