A loose gas cap will cause a P0455 code.
If that hose is off the DPFE sensor and there is not good reason for it to be off, you may have plugged cats and the backpressure blew the hose off.
If you were within your 8/80 warranty (7/70 in CA), you'd have been covered. Bummer.
Steve