I have a new installation of osTicket. Here is the system info:
osTicket Version v1.10.4 (035fd0a) — Up to date
Web Server Software Apache/2.4.29 (Ubuntu)
MySQL Version 5.7.24
PHP Version 5.6.38-2+ubuntu18.04.1+deb.sury.org+1
I can fetch e-mail, but only if Fetch on auto-cron is enabled. I would rather run a cron job in the background so that e-mails are fetched without a user having to be logged in. However, cron.php isn't working. If i run cron.php manually in a terminal, I get the following:
rvuadmin@UT-Facilities:~$ php /var/www/html/api/cron.php
PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/html/include/class.osticket.php on line 439
PHP Warning: Declaration of AssignmentForm::render($options) should be compatible with Form::render($staff = true, $title = false, $options = Array) in /var/www/html/include/class.forms.php on line 4367
PHP Warning: Declaration of TransferForm::render($options) should be compatible with Form::render($staff = true, $title = false, $options = Array) in /var/www/html/include/class.forms.php on line 4487
PHP Fatal error: Uncaught Error: Call to undefined function mysqli_init() in /var/www/html/include/mysqli.php:28
Stack trace:
#0 /var/www/html/bootstrap.php(182): db_connect('localhost', 'xxxx', 'xxxxxxxxxxx', Array)
#1 /var/www/html/main.inc.php(28): Bootstrap::connect()
#2 /var/www/html/api/api.inc.php(23): require_once('/var/www/html/m...')
#3 /var/www/html/api/cron.php(17): require('/var/www/html/a...')
#4 {main}
thrown in /var/www/html/include/mysqli.php on line 28
rvuadmin@UT-Facilities:~$
I have this running without issues on another osTicket server that I built earlier this year. What am I missing?