"Unable to generate the derived image located at public://styles/uc_category/public/tg.jpg"
If you are sure this is not a permission issue, also make sure you have a graphical library installed on your server.

In D7, the configuration page for this is: /admin/config/media/image-toolkit