This is strange, i'ce tried reinstalling from scratch but couldn't fix it, basically
get_cat_name( 3 );
is returning an empty string even if a category with id 1 exist when making an ajax call from the frontend. Why?
This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.