Yikes! I had that happen about 1 years ago with a pair of Clarks. Actually two pair fell apart on me but the worse ones were when I was getting out of my car going into the Dentist's office!
The entire sole came from the top of the shoe! It looked like one of those clown shoes! I took it off until I got up to his office then slid my foot inside to the chair!
I had all of these chores I was going to do but had to head home for more shoes.
Then I was going through my shoes and found a pair of Clarks (again clogs) and pulled on them and they separated. Not as bad but I threw them out.
Live and learn. Right?