PHP Version: 7.4.21
phpVMS Version: 7.0.0-dev+210620.cde6fb
MariaDB Version: 10.3.29
Whenever a pirep is submitted it throws out this error: "Trying to get property 'name' of non-object {"userId":1,"exception":"[object] (ErrorException(code: 0): Trying to get property 'name' of non-object at /phpvms/app/Services/PirepService.php:577)"
and I'm not to sure how to go about fixing it so any help would be great Thanks.
also included an image of where the error is occurring if that helps
Edit:
Also some further information regarding this, When the pirep is summited it still goes through to the admin panel for viewing/approving but when the actual submission is done it brings up a 500 server error page for the user submitting it.