Hi,
I'm trying to use cron to check IMAP for topic replies (through email_imap_cron.php). It works fine if "Allow guests to browse the forum" is enabled, but if I uncheck this box, the script diverts to the login page without checking the IMAP box.
Bug or am I doing something wrong?
I just checked this on my local install, it still runs when guest browsing is disabled just less frequently due to the amount of times I can access it.
The cron task is run by people accessing the forum as a scheduled task.
You can set up a manual cron to run it every x mins rather than having to rely on people accessing the forum.
I'd vote for the bug dammit.
Try changing in email_imap_cron.php, the line:
new Bootstrap();
to:
global $ssi_guest_access;
$ssi_guest_access = true;
new Bootstrap(true);
Thanks, that seems to work.
Tracked: https://github.com/elkarte/Elkarte/issues/3195