The lever which controls the rear flap probably came off. It is common. Remove the access panel in the passenger front foot well(near the transmission hump) and you should see the lever which controls the rear flap. Just reconnect it to the controller and you should be fine. You won't get any codes if this lever comes off.
I did this a few years ago, so I'm going on memory(dangerous)