I'm facing a similar problem :
I've just installed a copy of my OSTicket 1.10 to a new server Ubuntu 18.04, with standard php 7.2 packages. OSticket is configured to fetch tickets using IMAP then move the emails to another folder
If i fetch the emails through a cronjob (running /usr/bin/php /osticket/api/cron.php ), the cron.php connect to the IMAP server and move the email to the other folder, thus the IMAP part seems to be correct, but the email is not inserted into OSTicket...
If i configure OSTicket to use AutoCron and not a cronjob, everything work correctly...
I've then installed php5.6 as a CLI, and modifyed my cronjob to use /usr/bin/php5.6 , and now it's working correctly with cronjob...
I do not like to keep php5.6, this version is not supported anymore and should not be installed on a production server, thus i would like to debug the problem with php7.2... but i do not see any error...
Did anyone could tell me how to debug the cron to see where the problem is ? I've already enabled debug logs in OSTicket, but i only see that the cronjob is executed, and no error reported...
Thanks for any help ?