Server Information
osTicket version: 1.17
Web server software: Apache/2.4.41 (Ubuntu)
MySQL Version: 10.3.38
PHP VERSION : 8.0.28
Email settings:
Admin Panel > Email > Settings: Incoming Email: Email fetching 'Enable' Fetch on auto-cron (disabled)
Default Log Level:
Admin Panel > Settings > System: Default Log Level: DEBUG
Admin Dashboard System logs:
Several lines stating ‘Agent Login’ ‘Agent Logout’. If I enabled the 'Fetch on auto-cron' on Email setting page then I get the ‘Auto Cron’ log when I logged in.
Cron job setup:
On /etc/crontab file
/1 * * * * www-data /usr/bin/php8.0 /var/www/osticket/upload/api/cron.php
Note: the group/user name to get access the file/folder is ‘www-data www-data’,
The status of crontab:
Mar 21 10:33:01 hostname CRON[1355758]: (www-data) CMD (/usr/bin/php8.0* /var/www/osticket/upload/api/cron.php)
Mar 21 10:33:01 hostname CRON[1355756]: pam_unix(cron:session): session closed for user www-data
When I run cron.php file manually using ‘php /var/www/osticket/upload/api/cron.php’ command then it will respond with PHP fatal error message:
PHP Fatal error: Access level to LocalCronApiController::response() must be public (as in class Controller) in /var/www/osticket/upload/include/api.cron.php on line 34
any help would be greatly appreciated.