Probably a faulty gearbox solenoid which will need replacement.
Personally I'd take it to a good independent automatic transmission specialist for accurate diagnosis and repair.
Either that or your local Peugeot specialist if you know they are good.
ChicksFan, March 2014