Just installed a new 8.8.0 on Ubuntu 24.04 server. But have a problem viewing a personal email account on Office 365.
As admin, I completed adding a Microsoft Oauth providor and then a personal Oauth connector using that providor. Then used said connector to setup a personal email inbox, I can see the folders and selected the 3 I neeeded and testing works.
When logging on as the user and doing the mail setup under profile there I can see the folder list and select and save it.
But when going to Email / View it is just blank not even a filter option.
Checking the apache2 error.log file I get the following logged when I click on view emails
[Tue Jun 10 14:49:35.865060 2025] [php:warn] [pid 79243] [client A.B.C.D:50754] PHP Warning: Attempt to read property "access_token" on bool in /var/www/html/crm/public/legacy/modules/InboundEmail/InboundEmail.php on line 8654, referer: XXXXXX
[Tue Jun 10 14:49:35.869206 2025] [php:warn] [pid 79243] [client A.B.C.D:50754] PHP Warning: Attempt to read property "access_token" on bool in /var/www/html/crm/public/legacy/modules/InboundEmail/InboundEmail.php on line 8714, referer: XXXXXX
[Tue Jun 10 14:49:35.869283 2025] [php:error] [pid 79243] [client A.B.C.D:50754] PHP Fatal error: Uncaught TypeError: OAuthAuthorizationService::hasConnectionTokenExpired(): Argument #1 ($connection) must be of type ExternalOAuthConnection, bool given, called in /var/www/html/crm/public/legacy/modules/InboundEmail/InboundEmail.php on line 8716 and defined in /var/www/html/crm/public/legacy/modules/ExternalOAuthConnection/services/OAuthAuthorizationService.php:238\nStack trace:\n#0 /var/www/html/crm/public/legacy/modules/InboundEmail/InboundEmail.php(8716): OAuthAuthorizationService->hasConnectionTokenExpired()\n#1 /var/www/html/crm/public/legacy/modules/InboundEmail/InboundEmail.php(6579): InboundEmail->getOAuthToken()\n#2 /var/www/html/crm/public/legacy/modules/InboundEmail/InboundEmail.php(6475): InboundEmail->getImapConnection()\n#3 /var/www/html/crm/public/legacy/modules/InboundEmail/InboundEmail.php(657): InboundEmail->connectMailserver()\n#4 /var/www/html/crm/public/legacy/modules/Emails/include/ListView/ListViewDataEmailsSearchOnIMap.php(122): InboundEmail->checkWithPagination()\n#5 /var/www/html/crm/public/legacy/modules/Emails/include/ListView/ListViewDataEmails.php(786): ListViewDataEmailsSearchOnIMap->search()\n#6 /var/www/html/crm/public/legacy/modules/Emails/include/ListView/ListViewSmartyEmails.php(110): ListViewDataEmails->getListViewData()\n#7 /var/www/html/crm/public/legacy/include/MVC/View/views/view.list.php(283): ListViewSmartyEmails->setup()\n#8 /var/www/html/crm/public/legacy/include/MVC/View/views/view.list.php(391): ViewList->listViewProcess()\n#9 /var/www/html/crm/public/legacy/include/MVC/View/SugarView.php(210): ViewList->display()\n#10 /var/www/html/crm/public/legacy/include/MVC/Controller/SugarController.php(434): SugarView->process()\n#11 /var/www/html/crm/public/legacy/include/MVC/Controller/SugarController.php(365): SugarController->processView()\n#12 /var/www/html/crm/public/legacy/include/MVC/SugarApplication.php(101): SugarController->execute()\n#13 /var/www/html/crm/public/legacy/index.php(52): SugarApplication->execute()\n#14 {main}\n thrown in /var/www/html/crm/public/legacy/modules/ExternalOAuthConnection/services/OAuthAuthorizationService.php on line 238, referer: XXXXXX
@warwickw
From the error, it looks like the OAuth connection is failing — specifically, it’s returning false instead of a valid object, which then causes a fatal error when trying to fetch the access_token.
Here’s what you can try:
Double-check that the OAuth connection is saved properly under the user’s profile (not just admin).
Make sure the personal OAuth connector is assigned correctly to the user and not just visible.
Reconnect or reauthorize the Office 365 account once more under the user’s login, just to be safe.
If it still fails, I’d recommend temporarily enabling more detailed logging in SuiteCRM or try re-saving the connector settings.
For the group email — just make sure the user has full access + send-as permission. Sometimes using the shared mailbox in the username (like user@domain.com\shared@domain.com) helps. Let me know what error you’re seeing, happy to help!