Fatal error undefined function taxonomy_get_tree()
Maybe the taxonomy module is just loaded after yours... Have you tried to load the taxonomy module before calling taxonomy_get_tree()? :

drupal_load('module', 'taxonomy');
$tree = taxonomy_get_tree(6, $parent = 0, $max_depth = NULL, $load_entities = FALSE);
print_r($tree);