uvdesk / community-skeleton

UVdesk Opensource Community Helpdesk Project built for all to make a Full Ticketing Support System along with many more other features.
https://www.uvdesk.com
MIT License
7.15k stars 449 forks source link

Code edit to fix fetching email issue #711

Open PeopleInside opened 7 months ago

PeopleInside commented 7 months ago

Bug report

Title

An user on the forum reported he was not able to fetching email and was getting errors. An unexpected error occurred: Notice: Trying to access array offset on value of type null

Finally the user found how to edit the core code to resolve this issue: https://forums.uvdesk.com/post/4164

uvdeskprojectfolder/vendor/uvdesk/mailbox-component/Console/RefreshMailboxCommand.php

Changed this line:

$this->router->getContext()->setScheme((bool) $input->getOption('secure') ? 'https' : 'http');

To this:

$this->router->getContext()->setScheme('https');