I have an application that is a dashboard for a bunch of LimeSurvey surveys where users can select their group and take the relevant surveys. The app uses the LimeSurvey API to add a participant to the table and generate a token for them, then include the token in the link for the user. It is formatted as follows:
somewebsite.com/limesurvey/index.php/331...oken=K10D6OI0r3bgZXg
On the production server, when the link is clicked it simply starts the survey as expected. However on the staging server, it leads to a page saying "If you have been issued a token, please enter it in the box below and click continue." and a field for the token. This can be worked around by simply copying the token from the url into the field and submitting the form, but ideally this should work the same as the production server.
Additionally on the staging server, there are issues with the pagination not working in the list surveys page, as well as I get an alert saying "An error occurred while processing the ajax request." when I try to add a subquestion to an array questoin. These issues do not happen on the production server. I would also like to resolve issues, but the issue with the token is more important to me.
Both the production server and the staging server are running Version 3.5.4+180320. The database on the staging server is an import of the one from the production server. The code for the application that links to the LimeSurvey surveys is also identical. I have tried everything from reinstalling LimeSurvey on the staging server, upgrading LimeSurvey to Version 3.24.1, copying the files from the production server to the staging server, consulted the docs to make sure I haven't missed a step, Googled the problem and searched the forums for hours to no avail.
Any help with this would be very much appreciated.