uvdesk / core-framework

UVDesk Community Helpdesk Core Framework Bundle providing the core essential functionalities and integration tools to easily integrate any other community helpdesk packages.
https://www.uvdesk.com
MIT License
60 stars 50 forks source link

error ticket creation #618

Closed leooxx closed 1 year ago

leooxx commented 1 year ago

Hello,

I have an error when i create a ticket caused a dump line 281. When i remove the line, everythink work !!

Error : {"message":"Uncaught Error: Call to a member function getMessage() on null","context":{"exception":{"class":"Error","message":"Call to a member function getMessage() on null","code":0,"file":"/web/www/uvdesk/vendor/uvdesk/core-framework/Controller/Ticket.php:281"}},"level":500,"level_name":"CRITICAL","channel":"php","datetime":"2022-11-28T16:13:00.221746+01:00","extra":{}}

File https://github.com/uvdesk/core-framework/blob/12a33bdda657e829abd3bfb2edc0d41bcba7b165/Controller/Ticket.php#L281

Thank you, Léo

komal-sh-27 commented 1 year ago

@leooxx

Thanks for reporting, we will update this line.

grycroft commented 1 year ago

The dump is calling getMessage before the catch statement which is fixed in master as stated by @leooxx but this file is still yet to be included in the latest release months after. Please could this be put into the next version release.

komal-sh-27 commented 1 year ago

Thanks for updating, we will try fixed it in the next release.

komal-sh-27 commented 1 year ago

Now this line have been updated in the uvdesk latest release v-1.1.3, so we are closing this issue.