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
URL Key works once then stops
Moderator: mkoch227
Re: URL Key works once then stops
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.
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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Re: URL Key works once then stops
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.
Removed the key from the cron job and it now works perfectly .
Thanks again for your help, much appreciated.