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.17k stars 464 forks source link

[PHP] Warning: Trying to access array offset on value of type null ["exception" => ErrorException { …}] #683

Closed Nitsz92 closed 1 year ago

Nitsz92 commented 1 year ago

Bug report

Title

Warning: Trying to access array offset on value of type null ["exception" => ErrorException { …}]

Issue Description

After adding http to https redirection rule, Getting error in email cron jon

Preconditions

Please provide as detailed information about your environment as possible.

1. IIS 10

Steps to reproduce

It is important to provide a set of clear steps to reproduce this bug.If relevant please include code samples.

Following rules are added in URL Rewrite :

image

Actual result

Following error in cron job:

image

komal-sh-27 commented 1 year ago

@Nitsz92

Could you please make one minor change to the following files:

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

$useSecureConnection = $this->isSecureConnectionAvailable();

with

$useSecureConnection = true;

image

With this change, the api request should now be sent through HTTPS instead of HTTP. After doing so, please try refreshing your mailbox once again and share the screenshot of the command output.

Thanks and Regards Uvdesk Team

Nitsz92 commented 1 year ago

@Komal-sharma-2712 Issue has been resolved. Thanks for your support. I made the changes and after changes cron job was throwing following error. Which has been resolved by added cacert in php.ini

image

komal-sh-27 commented 1 year ago

@Nitsz92

Let us know, your issue has been resolve or not. If yes so we can closed this issue. If you have further any query or doubt then let us know.

Thanks and Regards Uvdesk Team

Nitsz92 commented 1 year ago

@Komal-sharma-2712 issue has been resolved. I am closing this issue.