error logging for JSON error in category page add