What are examples of movie productions that went terribly but the movie ended up being a success?
Could be things like a movie going way over budget, constant reshoots, replacing the director halfway through production, bringing in a new writer to rewrite the script, co-stars not getting along, etc.
Even though the production was a complete mess, the movie still ended up being a box office hit and/or critically acclaimed.
What are some good examples?