Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted February 18Feb 18 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?
February 18Feb 18 Community Expert Before continuing, I would advise on upgrading to the latest release of the platform, to see if that resolves the issue
February 20Feb 20 Author Hmm, I don't see any warnings about versions on it locally, in production on the main domain the API works just fine.
February 20Feb 20 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.
February 20Feb 20 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.
February 20Feb 20 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?
February 21Feb 21 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
February 22Feb 22 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?
February 22Feb 22 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?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.
February 23Feb 23 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
February 26Feb 26 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.
February 26Feb 26 Community Expert It should be running on https, and have a valid certificate. I cannot advise on docker as we dont really support it
February 26Feb 26 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?
February 26Feb 26 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