garcez Posted March 2, 2020 Report Posted March 2, 2020 (edited) I have this problem after updating smartCARS 2 Web Script Files. Quote Warning: Invalid argument supplied for foreach() in /home/iflyvirt/public_html/iCrew/lib/skins/icrewv4/trackflight/flightinfo.php on line 528 Expand Please I need help. Thanks. Quote <div class="row"> <div class="col-md-12"> <div class="block"> <div class="block-title"> <h3><i class="gi gi-notes_2"></i> ACARS Report <?php echo $acarsdata->flightnum?></h3> </div> <table class="table table-responsive" width="100%" cellspacing="0" style="font-size:13px"> <tr> <td>Time</td> <td>Altitude</td> <td>Ground Speed</td> <td>Latitude</td> <td>Longitude</td> </tr> <?php foreach($posreports as $thepositions) { ?> <tr> <td><?php echo $thepositions->positiontime; ?></td> <td><?php echo $thepositions->altitude; ?></td> <td><?php echo $thepositions->groundspeed; ?></td> <td><?php echo $thepositions->latitude; ?></td> <td><?php echo $thepositions->longitude; ?></td> </tr> <?php } ?> </table> </div> </div> </div> Expand Edited March 3, 2020 by ProAvia Topics merged - post your issue only one time. Multiple posts confuse the issue. Quote
gio1961 Posted March 2, 2020 Report Posted March 2, 2020 (edited) On 3/2/2020 at 8:08 PM, garcez said: I have this problem after updating omartCARS 2 Web Script Files. Please I need help. Thanks. Expand ******* foreach($posreports as $thepositions) **** To: if($posreports) foreach($posreports as $thepositions) Edited March 2, 2020 by gio1961 Quote
garcez Posted March 2, 2020 Author Report Posted March 2, 2020 On 3/2/2020 at 8:46 PM, gio1961 said: ******* foreach($posreports as $thepositions) **** To: if($posreports) foreach($posreports as $thepositions) Expand Would be like this? Quote <div class="row"> <div class="col-md-12"> <div class="block"> <div class="block-title"> <h3><i class="gi gi-notes_2"></i> ACARS Report <?php echo $acarsdata->flightnum?></h3> </div> <table class="table table-responsive" width="100%" cellspacing="0" style="font-size:13px"> <tr> <td>Time</td> <td>Altitude</td> <td>Ground Speed</td> <td>Latitude</td> <td>Longitude</td> </tr> <?php if($posreports) foreach($posreports as $thepositions) { ?> <tr> <td><?php echo $thepositions->positiontime; ?></td> <td><?php echo $thepositions->altitude; ?></td> <td><?php echo $thepositions->groundspeed; ?></td> <td><?php echo $thepositions->latitude; ?></td> <td><?php echo $thepositions->longitude; ?></td> </tr> <?php } ?> </table> </div> </div> </div> Expand Quote
gio1961 Posted March 2, 2020 Report Posted March 2, 2020 On 3/2/2020 at 8:50 PM, garcez said: Would be like this? Expand Yes Quote
garcez Posted March 2, 2020 Author Report Posted March 2, 2020 On 3/2/2020 at 8:55 PM, gio1961 said: Yes Expand Thanks the error is gone, I will test now to see if you enter the aircraft coordinates correctly in ACARS Flight Tracker. Quote
garcez Posted March 2, 2020 Author Report Posted March 2, 2020 On 3/2/2020 at 8:55 PM, gio1961 said: Yes Expand The error - Warning: Invalid argument supplied for foreach () script no longer exists, but it is not transmitting the coordinates. Do you know what should be done? Quote
garcez Posted March 2, 2020 Author Report Posted March 2, 2020 I installed the new smart CARS 2 Web Script today. When installing it, this error appeared on the Quote Warning: Invalid argument supplied for foreach() in /home/iflyvirt/public_html/iCrew/lib/skins/icrewv4/trackflight/flightinfo.php on line 528 Expand Quote <div class="row"> <div class="col-md-12"> <div class="block"> <div class="block-title"> <h3><i class="gi gi-notes_2"></i> ACARS Report <?php echo $acarsdata->flightnum?></h3> </div> <table class="table table-responsive" width="100%" cellspacing="0" style="font-size:13px"> <tr> <td>Time</td> <td>Altitude</td> <td>Ground Speed</td> <td>Latitude</td> <td>Longitude</td> </tr> <?php foreach($posreports as $thepositions) { ?> <tr> <td><?php echo $thepositions->positiontime; ?></td> <td><?php echo $thepositions->altitude; ?></td> <td><?php echo $thepositions->groundspeed; ?></td> <td><?php echo $thepositions->latitude; ?></td> <td><?php echo $thepositions->longitude; ?></td> </tr> <?php } ?> </table> </div> </div> </div> Expand Este erro foi solucionado com a ajuda do gio1961 Quote ******* foreach($posreports as $thepositions) **** To: if($posreports) foreach($posreports as $thepositions) Expand However, the coordinates do not appear in the ACARS Flight Tracker, the navdata table is empty. Another error that occurs is that when sending Pirep it accuses "PIREP FILING ERROR" even with this error Pirep is sent to the VA website. Another mistake is that the flight hangs on Live Flights. In other words, it is not automatically deleted from the acarsdata when the Pirep is finished and sent. With the old smartCARS 2 Web Script Files it worked perfectly. The question is, what is the reason it is no longer working with the new smartCARS 2 Web Script Files? Thanks in advance for any help. smartCARS_web_script_files-old.zipFetching info... smartCARS_web_script_files_new.zipFetching info... Quote
flyalaska Posted March 2, 2020 Report Posted March 2, 2020 You will get a faster response if you post on there forums. Quote
garcez Posted March 2, 2020 Author Report Posted March 2, 2020 On 3/2/2020 at 11:40 PM, flyalaska said: You will get a faster response if you post on there forums. Expand Which forum? Can you send the link? Quote
Administrators ProAvia Posted March 3, 2020 Administrators Report Posted March 3, 2020 Post your issue at the TFDI website. They are the developers of SmartCARS. Or ask the developer of your icrew skin for help with this issue. Quote
Moderators shakamonkey88 Posted March 3, 2020 Moderators Report Posted March 3, 2020 On 3/2/2020 at 11:44 PM, garcez said: Which forum? Can you send the link? Expand Also... Did you buy the CC Flight Tracker payware module? Quote
garcez Posted March 3, 2020 Author Report Posted March 3, 2020 On 3/3/2020 at 6:06 AM, shakamonkey88 said: Also... Did you buy the CC Flight Tracker payware module? Expand Yes! Quote
Moderators shakamonkey88 Posted March 3, 2020 Moderators Report Posted March 3, 2020 That's a payware module so I'd suggest to not post in this open forum. I know their forums are dead, but they have a specific area for support for CC customers. Quote
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.