Guides & Tutorials8.8 UpdateTroubleshootingEmail Sending Failed: Call to undefined function WHMCS\Module\logAdminActivity()

Email Sending Failed: Call to undefined function WHMCS\Module\logAdminActivity()

Symptoms

After updating to WHMCS 8.8, some emails fail to send using a Microsoft email service with OAuth (for example, Microsoft Outlook or Microsoft 365).  

The system logs a Call to undefined function error at Configuration > System Log:

Email Sending Failed: Call to undefined function WHMCS\Module\logAdminActivity()

Cause

This error indicates an issue with the logging of the storage of the OAuth refresh token for emails that visitors or clients trigger.

Hotfix

We have created a hotfix for WHMCS 8.8.0 to correct the logging issue. You can download it at:

https://whmcs.community/files/file/191-core-18891-prevent-superfluous-logging-and-error-with-microsoft-email/