Numerical problem in fitting gamma and Weibull distributions

Thank you Ben for the quick response. Yes, I can proceed with the posterior inferences. Anyway, I will try using a different prior.