Joshua John Posted March 17, 2011 Report Share Posted March 17, 2011 Recently found an error come up when I go to the ranks list in the admin center. The error is: Warning: Invalid argument supplied for foreach() in /home/virginat/public_html/admin/templates/ranks_allranks.tpl on line 15 So we can't edit ranks. Also ranks are no longer being displayed in the pilots profile and when we accept PIREPS we get the error Warning: Invalid argument supplied for foreach() in /home/virginat/public_html/core/common/RanksData.class.php on line 235 and Warning: Invalid argument supplied for foreach() in /home/virginat/public_html/core/common/RanksData.class.php on line 194 Any ideas to fix this? Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted March 17, 2011 Moderators Report Share Posted March 17, 2011 That's weird to me. To what I think is that your files could been corrupted. So what I would do is just reupload the files and try again. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted March 19, 2011 Administrators Report Share Posted March 19, 2011 Looks like the ranks table in the database is empty or the code that loads the variable from the database has been altered. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted March 19, 2011 Administrators Report Share Posted March 19, 2011 Were there any errors during install? Quote Link to comment Share on other sites More sharing options...
Joshua John Posted March 20, 2011 Author Report Share Posted March 20, 2011 All working fine now. I tried to reupload the files but that didn't work so I then checked the ranks table and that was the problem, nothing in there but it's all sorted now. Thanks guys! Quote Link to comment Share on other sites More sharing options...
Joshua John Posted March 21, 2011 Author Report Share Posted March 21, 2011 Actually its gone back the same. For some reason the Ranks table is empty again and the errors have re-appeared 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.