[01-Feb-2023 03:26:05 UTC] PHP Fatal error: Uncaught ArgumentCountError: imap_headerinfo() expects at most 4 arguments, 5 given in /Classes/javanile/php-imap2/bootstrap.php:858
function was set with 5 arguments -- { return imap_headerinfo($imap, $messageNum, $fromLength, $subjectLength,$defaultHost); }
PHP.net documentation state : the unused defaultHost parameter has been removed.
Unsure if we have an older version of javanile - php-imap2 however testing on php 8.0 showed this issue.
[01-Feb-2023 03:26:05 UTC] PHP Fatal error: Uncaught ArgumentCountError: imap_headerinfo() expects at most 4 arguments, 5 given in /Classes/javanile/php-imap2/bootstrap.php:858
function was set with 5 arguments -- { return imap_headerinfo($imap, $messageNum, $fromLength, $subjectLength,$defaultHost); }
PHP.net documentation state : the unused defaultHost parameter has been removed.
Unsure if we have an older version of javanile - php-imap2 however testing on php 8.0 showed this issue.
Deleting the defaultHost parameter fixed issue.