Jump to content

Featured Replies

Posted

Hi, I have added .htaccess in my /api directory, I am able to send requests to the API but I get "invalid token" and the dashboard in admincp does not let me "continue" after I've added the htaccess file in order to see the token.

Could somebody lend me hand?

  • Community Expert

Before continuing, I would advise on upgrading to the latest release of the platform, to see if that resolves the issue

  • Author

Hmm, I don't see any warnings about versions on it locally, in production on the main domain the API works just fine.

  • Author

Could you please explain what I am supposed to see if it was to work correctly?

I'm not seeing anything related to the REST API in the new version.

.htaccess is downloaded and in the right spot.

image.png
image.png

image.png

  • Author

In terms of upgrading, I can't get passed this step.

image.png

  • Community Expert

If the issue you are having is only on your local host, and you are only getting to that screen, the issue there is that mod_rewrite isnt working correctly by the look of it.

With the version, note that should always be the first call with any issue.

  • Author

Could you please tell me which directory I am supposed to upload the zip file for the upgrade? I am running invision in a docker container.

Also what exactly is mod_rewrite?

  • Community Expert

You would unpack the zip file, then upload the contents over what you already have. We do not have support for docker at present

  • Author

Okay cool, I've done that, so now when I get to the second last stage in the upgrade, download & extract, it loads forever, is it supposed to take a while at that stage?

Could you please explain a bit about how this is supposed to work?

image.png

  • Community Expert
 

Okay cool, I've done that, so now when I get to the second last stage in the upgrade, download & extract, it loads forever, is it supposed to take a while at that stage?

Could you please explain a bit about how this is supposed to work?

image.png

It shouldn't take that long but again, it's completely dependent on your server. You would need to check for any errors in your System Log or server error log.

  • Author

It seems to be here forever, does this seem normal? with the letter "m"?

image.png

  • Community Expert

You'll want to check your browser console. Sounds like something is wrong with the AJAX request and is erroring out unexpectedly. It could be something like your server is blocking the software from continuing

  • Author

So I decided to download the entire 4.7.20 and put it over the top, now I'm up to date but the REST API still doesn't work, clicking continue seems to kind of reload the api page and that's it, can't get through "continue". I'm thinking maybe it's something to do with docker or running it on https.

  • Community Expert

It should be running on https, and have a valid certificate. I cannot advise on docker as we dont really support it

  • Author

I am trying to access the REST API locally, in production, everything is running on https and working correctly, I can run it https or http locally, neither of these work.

What is supposed to happen when we add the htaccess file to /api?

  • Community Expert

Im not sure I understand the question. WHen you add it, it will allow the API to work, if the hosting is set up correctly, and rewrites are allowed

Recently Browsing 0

  • No registered users viewing this page.