Jump to content

Recommended Posts

Posted (edited)

Hello,

I am using the latest version of phpvms and the premium ACARS. At the end of the flight, when I send the report, I get a popup with the message:  "There was an error filing the PIREP".

but the PIREP is successfully recorded on the website.

Here are the ACARS logs:

Quote

06-15 02:08:26|INFO; Setting flight phase to Arrived
06-15 02:09:09|INFO; Handling action button, val=File Flight
06-15 02:09:11|ERROR; uri=/api/pireps/oO2W3R7Bx1nevbBk/file
06-15 02:09:11|ERROR; error=Cannot use empty array elements in arrays
06-15 02:09:11|ERROR; code=503
06-15 02:09:11|INFO; Error filing PIREP, Cannot use empty array elements in arrays
06-15 02:09:11|INFO; MessageBox, message=There was an error filing the PIREP


Best regards

Edited by Aciv
Posted

Thank for your reply, this is log Laravel
 

Quote

[2024-06-15 00:09:11] production.INFO: NotificationEvents::onPirepFile: oO2W3R7Bx1nevbBk filed  
[2024-06-15 00:09:11] production.ERROR: Cannot use empty array elements in arrays {"userId":1,"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Cannot use empty array elements in arrays at /var/www/phpvms/modules/DisposableBasic/Services/DB_NotificationServices.php:68)
[stacktrace]
#0 {main}
"} 
[2024-06-15 00:09:11] production.ERROR: API Error: Cannot use empty array elements in arrays  
[2024-06-15 00:12:23] production.INFO: PIREP state update call [{"pirep_id":"oO2W3R7Bx1nevbBk","new_status":"2"}] 

 

Posted

oops I found it, it's my fault, line 68 (mistake drag & drop)

 

Quote

'value'  => $pirep->airline->code . ' ' . $pirep->flight_number,,


double , lol
😂

close this topic 
sorry
 

  • Haha 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...