I have a 03 Jeep Liberty 3.7 I got a code of 1296 and P0301 what are these codes on 2003 Jeep Liberty

I have a 03 Jeep Liberty 3.7 I just changed the Pass. side Valve cover gasket. I start it up and I get ruff idling then it cuts out.. then I get codes P1296 and Code P0301 need some help..

Asked by for the 2003 Jeep Liberty
Assuming those symptoms were not the reason for changing the valve cover gasket,You should go back over all your work , step by step and check for loose or disconnected hoses , wires and plugs.
Thank you.... the reason I changed the gasket was dry rot. and little oil drips on the driveway. I did unplug some of the sensors to get them out of my way b/c the valve cover was not easy to get too. I took my time and only had to replace the PVC b/c the cheap plastic broke. I'll you up to date on what happens.

Thanks again

Okay I unplugged all the senors and the hoses.... took my time and plugged them back in I walked thur my steps.... I cleared the code (1296) started the jeep back up it ran for about 2 mins then the code came back on(Check Engine Light) I put the code reader on it and again Code 1296.. I need some real help now. I have no clue
You still haven't clearly said whether or not the check engine light was on BEFORE the gasket job.