I have a class XenWordXFStats. Within the class is the following global and variable: PHP: global $XF$total_users= $XF->getBoardTotalsCounter(); The above works because I copied the getBoardTotalsCounter method from the XenForo_Model_Counters into the XenWord class file which is where the $XF comes from .... Anyway ... I'm wanting to remove the global $XF, and copied XenForo_Model_Counters code and simply call the XenForo code directly. So, I stripped out the getBoardTotalsCounter from the XenWord class file and called it as below. PHP: $total_users= XenForo_Model_Counters::getBoardTotalsCounter(); This returns an error -- Code: Fatal Error: Call to undefined method XenWordXFStats::getModelFromCache() I'm confused by this error. The getModelFromCache is not in XenWordXFStats (thus the error). Searching /library/XenForo there is getModelFromCache($class). So, I'm thinking that the $class is why it tries to call XenWordXFStats. How do I get around this ?