Aciv Posted June 15 Report Share Posted June 15 (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 June 15 by Aciv Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted June 15 Administrators Report Share Posted June 15 Are all of the fields filled out? This is a problem in phpvms. Do you have the logs from there? Quote Link to comment Share on other sites More sharing options...
Aciv Posted June 15 Author Report Share Posted June 15 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"}] Quote Link to comment Share on other sites More sharing options...
Aciv Posted June 15 Author Report Share Posted June 15 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 1 Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted June 15 Administrators Report Share Posted June 15 No problem! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.