The main causal agent of both types is Escherichia coli , though other bacteria , viruses or fungi may rarely be the cause .
The main cause for both types is the bacteria Escherichia coli .