After what are you saying, I am surely it's because php version. Someone could give for the php7 ver badge.phpI am 100% sure it is , i had the same problem , in the habbo-imaging you have a file "badge.php" <- that is in the wrong PHP version (since there are some updates since php 5.6)
(not sure if implemented in a cms these days since i have my own)