eating undercooked ground beef is one of the main causes of e. coli, which can cause symptoms including diarrhea, vomiting and stomach cramps. these symptoms usually occur between two and eight days after eating contaminated food and can last for up to a week.