looks like the reputation_level() function is a method of whatever class you have assigned to the html instance. where do you assign an instance to html?
i assume html is some sort of template object (just because of the name). i would check that template class to make sure it actually has a reputation_level() method.
or as laserlight said, it may just be as simple as an include not working.