the_permalink() not working

Usually this is because the “Site URL” field in Settings > General is wrong. It probably says “domain.com” where it should say “domain.com/news”.