The Dreaded write your characters into a hole scenario

Yesterday, or rather the day before I finished a chapter on a cliffhanger and decided, hey I was on a roll, might as well start the next chapter! Well, I wrote two sentences and froze when I realized I had no idea how to get my character (s) out of the situation they had gotten themselves into.

Anybody have this happen?

I took the day off yesterday and just pondered and worried and tossed ideas and discarded ideas until right around midnight, as I was laying in bed warming my feet on a heating pad because it was 27 degrees, it came to me! The solution was going back 3 chapters, dropping a plot seed and then picking it up in the new chapter.

Would love to hear how you guys handle these moments!