Ranks Error

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?

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.

Looks like the ranks table in the database is empty or the code that loads the variable from the database has been altered.

Were there any errors during install?

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!

Actually its gone back the same. For some reason the Ranks table is empty again and the errors have re-appeared