Survey Error! Invalid survey key.

Moderator: crythias

Post Reply
Niklaus
Znuny newbie
Posts: 14
Joined: 17 Jan 2013, 09:07
Znuny Version: 3.1.12
Real Name: Niklas Lampén
Company: Aava Kotisivupalvelu

Survey Error! Invalid survey key.

Post by Niklaus »

I'm getting this error when survey request are sent:

Code: Select all

Survey Error!
Invalid survey key.
The inserted survey key is invalid, if you followed a link maybe this is obsolete or broken.
It seems that in database public_survey_key holds different value than the link send with email. For example I received PublicSurveyKey=8e57b4ec378eb103db0c5105218ac2d9 and in the database public_survey_key is 8f3faf62652dd0f9969255a6575d08ee. If I change PublicSurveyKey in link to the one in database, it works.

The link in email is build like this:

Code: Select all

<OTRS_CONFIG_HttpType>://<OTRS_CONFIG_FQDN>/<OTRS_CONFIG_ScriptAlias>public.pl?Action=PublicSurvey;PublicSurveyKey=<OTRS_PublicSurveyKey>
Anyone know how to fix this?
Niklaus
Znuny newbie
Posts: 14
Joined: 17 Jan 2013, 09:07
Znuny Version: 3.1.12
Real Name: Niklas Lampén
Company: Aava Kotisivupalvelu

Re: Survey Error! Invalid survey key.

Post by Niklaus »

I found out that the link works, if email is sent on close. If the email is sent after "grace period", the link does not work.
Post Reply