First error to fix is you have space(s) or blank line(s) at the bottom of your index.php file and that is throwing errors when you select a Categoy ...
Get that fixed and we can see more about what else is up ...
Sounds like you may have Products and Categories mixed into your Categories ...
Categories hold Categories or Products but never both at the same time ...



