Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot access threads: Trying to access array offset on value of type null #4488

Closed
sinister3vil opened this issue Jan 17, 2025 · 4 comments
Closed

Comments

@sinister3vil
Copy link

Hello,

We just updated to 1.8.163, not really sure from which version but it was recent, last couple of weeks, and now we're getting this error whenever we try to access any thread :

[2025-01-17 19:18:51] production.ERROR: Trying to access array offset on value of type null (View: /var/www/html/resources/views/conversations/partials/thread.blade.php) (View: /var/www/html/resources/views/conversations/partials/thread.blade.php) (View: /var/www/html/resources/views/conversations/partials/thread.blade.php) {"userId":4,"email":"[email protected]","exception":"[object] (ErrorException(code: 0): Trying to access array offset on value of type null (View: /var/www/html/resources/views/conversations/partials/thread.blade.php) (View: /var/www/html/resources/views/conversations/partials/thread.blade.php) (View: /var/www/html/resources/views/conversations/partials/thread.blade.php) at /var/www/html/overrides/webklex/php-imap/src/Header.php:252, ErrorException(code: 0): Trying to access array offset on value of type null (View: /var/www/html/resources/views/conversations/partials/thread.blade.php) (View: /var/www/html/resources/views/conversations/partials/thread.blade.php) at /var/www/html/overrides/webklex/php-imap/src/Header.php:252, ErrorException(code: 0): Trying to access array offset on value of type null (View: /var/www/html/resources/views/conversations/partials/thread.blade.php) at /var/www/html/overrides/webklex/php-imap/src/Header.php:252, ErrorException(code: 0): Trying to access array offset on value of type null at /var/www/html/overrides/webklex/php-imap/src/Header.php:252)
[stacktrace]

PHP version: PHP 7.4.33
FreeScout version: 1.8.163
Database: Mysql (5.5.5-10.1.48-MariaDB-0ubuntu0.18.04.1)
Are you using CloudFlare: No
Are you using non-official modules: No

@freescout-help
Copy link
Collaborator

Try to change line 252 in /overrides/webklex/php-imap/src/Header.php to:

if (extension_loaded('imap') && isset($this->config) && $this->config["rfc822"]) {

@sinister3vil
Copy link
Author

@freescout-help yes this fix worked. Thanks a lot!

@andyknas
Copy link

Had the same error. The change above resolved.

@wpexpertca
Copy link

Thanks @freescout-help ! I opened a ticket but you can ignore as your fix it working... I am assuming it will be release with the next update. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants