Corolla 2007, the engine cut off when I shift from P to R or D or 2 or L. Can you help me please

Corolla 2007 cuts off the engine when the shift lever is selected on R or D . I cleand all solenoida and changed the ATF but no change al all.
0
Corolla 2007 cuts off the engine when the shift lever is selected on R or D . I cleand all solenoida and changed the ATF but no change al all.
Answers
I assume a 2007 Toyota has an electronic controlled transmission.
2019 Kia Soul+, 2015 Mustang GT, 2013 Ford F-150, 2000 Chrysler Sebring convertible