Plesk Windows Horde This request cannot be completed because the link you followed or the form you submitted was only valid for minutes. Please try again now.

Error when trying to logout would be as below and won’t let you logout as well.

“This request cannot be completed because the link you followed or the form you submitted was only valid for minutes. Please try again now.”

Solution

Edit C:\inetpub\vhosts\webmail\horde\lib\horde.php (Drive Letter will depend on where you installed Webmail/Plesk and configured IIS to load virtual hosts from)

And search for section ” SESSION[‘horde_form_secrets’ ” in the Horde.php  and instead of

if ($_SESSION[‘horde_form_secrets’][$token] +  $GLOBALS[‘conf’][‘urls’][‘token_lifetime’] * 60 < time()) {
return PEAR::raiseError(sprintf(_(“This request cannot be completed because the link you followed or the form you submitted was only valid for %s minutes”),  $GLOBALS[‘conf’][‘urls’][‘token_lifetime’]));
}

it should be

if (($_SESSION[‘horde_form_secrets’][$token] + $GLOBALS[‘conf’][‘urls’][‘token_lifetime’]) * 60 < time()) {
return PEAR::raiseError(sprintf(_(“This request cannot be completed because the link you followed or the form you submitted was only valid for %s minutes”), $GLOBALS[‘conf’][‘urls’][‘token_lifetime’]));
}

Note the extra braces in red + bold

Post to Twitter Tweet This Post

Continue Reading

About this blog

This blog, acts as a knowledge repository for the world and is unofficial! Anything we find interesting in the cyber world will go here. Most cases, this blog will reflect the happiness of our staff in reaching successful solution to an issue (s)he worked on. A reference for other fellow SAGEs who come across similar issues later