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
Open Software License 3.0
9.13k stars 464 forks source link

Code edit to fix fetching email issue #711

Open PeopleInside opened 1 year ago

PeopleInside commented 1 year 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');