Footes Posted August 6, 2018 Report Share Posted August 6, 2018 At present I am playing safe with installing phpvms 5. I have a warning on the home screen which reads Warning: Invalid argument supplied for foreach() in /var/www/......../core/templates/frontpage_recentpilots.php on line 3. Does anybody have any ideas how to rctify this please. regards Footes Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted August 6, 2018 Administrators Report Share Posted August 6, 2018 What does line 3 in 'frontpage_recentpilots.php' say? Quote Link to comment Share on other sites More sharing options...
Footes Posted October 6, 2018 Author Report Share Posted October 6, 2018 Sorry for the belated reply but work etc. The line reads: <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> <?phpforeach($pilot_list as $pilot) { ?> <p> <a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"> <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid).' '.$pilot->firstname.' '.$pilot->lastname ?> </a> </p> <?php } ?> that is the whole code with what I think is line 3 underlined in bold. regards footes Quote Link to comment Share on other sites More sharing options...
flyalaska Posted October 6, 2018 Report Share Posted October 6, 2018 That is more than line 3 Quote Link to comment Share on other sites More sharing options...
Moderators shakamonkey88 Posted October 7, 2018 Moderators Report Share Posted October 7, 2018 8 hours ago, flyalaska said: That is more than line 3 He said the line 3 is what he’s indicated in bold. Anyway, @Footes change that line to: foreach($pilots as $pilot) 1 Quote Link to comment Share on other sites More sharing options...
Footes Posted October 7, 2018 Author Report Share Posted October 7, 2018 Many thanks shakamonkey will give that a go. footes 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.