You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: