Page 1 of 1

URL Key works once then stops

Posted: Tue Sep 09, 2025 5:20 pm
by Mark.C
Version of script: 3.6.4
Hosting company: Siteground
What terms did you try when SEARCHING for a solution: url access key error, access key works once

Write your message below:
Hi All,

Looking for some advice please, I'm got HESK all setup and working, imap says 2 emails ready in the inbox etc.

Cron setup and works, now the odd thing is I have a url access key turned on for security, this will work once with the cron but if I then do another test email to the account and let the cron run on it's own, nothing is downloaded.

The only way I can get the cron to download the emails is changing the access key to a different one.

I'm sure I'm missing something just not sure where to look.

Any advice would be appreciated.

Thanks
Mark

Re: URL Key works once then stops

Posted: Tue Sep 09, 2025 6:34 pm
by Klemen
Hard to say what is wrong, but the URL key is not a one-time use key.

What message do you get if you turn Debug mode to ON (Admin panel > Settings > help desk) and run the hesk_imap.php script?

Another issue might be server-side cached code. Ask your hosting company to turn off all server-side caching for your help desk.

P.s.: you only need the URL key if you call the hesk_imap.php script via an URL address (for example, using wget via cron). If you use command line (like /usr/bin/php -q /path-to-hesk/inc/mail/hesk_imap.php) you don't need it.

Re: URL Key works once then stops

Posted: Wed Sep 10, 2025 1:21 pm
by Mark.C
Perfect thanks for that, I think it was my misunderstanding. When looking at the guide it said to put the key at the end, didn't realise that when doing the cron setup it didn't need it.

Removed the key from the cron job and it now works perfectly .

Thanks again for your help, much appreciated.