I have not seen Whirlpool release any service or testing information for the door latch/lock for your washer yet (if you find the information anywhere, please let us know). There are three things that will cause a door lock error on these washing machines: Failed door lock/latch assembly, failed main control board, or bad wiring or wiring connection. I would first check the wiring connections at the door lock and main control board. Also look for any damaged or broken wires. If those things check out, then I would first replace the door latch lock assembly, and if that doesn't fix the problem, then I would replace the main control board.
These are the parts for your washer:
Door Lock Latch - Part # PD00002975 (mfg # WP8183270)
Main Control Board - Part # PD00003591 (mfg # WP8183259)