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

Web interface not accessible for one user (admin) #3849

Closed
dabesa opened this issue Mar 4, 2024 · 2 comments
Closed

Web interface not accessible for one user (admin) #3849

dabesa opened this issue Mar 4, 2024 · 2 comments

Comments

@dabesa
Copy link

dabesa commented Mar 4, 2024

Dear support,

The admin user is getting error:

In Lavarel logs I found this:

[2024-03-04 14:37:23] production.ERROR: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated (View: /home/123/helpdesk.123.45/resources/views/users/partials/web_notifications.blade.php) (View: /home/123/helpdesk.123.45/resources/views/users/partials/web_notifications.blade.php) (View: /home/123/helpdesk.123.45/resources/views/users/partials/web_notifications.blade.php) {"userId":1,"email":"@gmail.com","exception":"[object] (ErrorException(code: 0): preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated (View: /home/123/helpdesk.123.45/resources/views/users/partials/web_notifications.blade.php) (View: /home/123/helpdesk.123.45/resources/views/users/partials/web_notifications.blade.php) (View: /home/123/helpdesk.123.45/resources/views/users/partials/web_notifications.blade.php) at /home/123/helpdesk.123.45/app/Misc/Helper.php:524, ErrorException(code: 0): preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated (View: /home/123/helpdesk.123.45/resources/views/users/partials/web_notifications.blade.php) (View: /home/123/helpdesk.123.45/resources/views/users/partials/web_notifications.blade.php) at /home/123/helpdesk.123.45/app/Misc/Helper.php:524, ErrorException(code: 0): preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated (View: /home/123/helpdesk.123.45/resources/views/users/partials/web_notifications.blade.php) at /home/123/helpdesk.123.45/app/Misc/Helper.php:524, ErrorException(code: 0): preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated at /home/123/helpdesk.123.45/app/Misc/Helper.php:524)
[stacktrace]

It was working this morning, there was no update or change in the system/settings that I'm aware of.

How to troubleshoot this?

PHP version: 8.1
FreeScout version: 1.8.122
Database: MySQL
Are you using CloudFlare: No

Thanks

@dabesa
Copy link
Author

dabesa commented Mar 4, 2024

The problem was generated by an entry in the "notifications" table.
I searched for all entries for user ID = 1 and deleted the latest ones.

I guess there's a bug with a validation missing for the [object] in the notifications, but I don´t see any unusual subject in the conversation list of that user.

Can I help finding the bug?

Thanks

@freescout-helpdesk
Copy link
Contributor

Fixed in the master branch and will be published in the next release.

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

2 participants