Exception in rendering!

Message: window is not defined

ReferenceError: window is not defined
    at new c (/tmp/execjs20161208-18535-yotqgcjs:136:3912)
    at m.mountComponent (/tmp/execjs20161208-18535-yotqgcjs:47:15602)
    at /tmp/execjs20161208-18535-yotqgcjs:49:31860
    at a.r.perform (/tmp/execjs20161208-18535-yotqgcjs:47:12503)
    at Object.a [as renderToString] (/tmp/execjs20161208-18535-yotqgcjs:49:31821)
    at r (/tmp/execjs20161208-18535-yotqgcjs:50:21164)
    at Object.S.ReactOnRails.serverRenderReactComponent (/tmp/execjs20161208-18535-yotqgcjs:32:6073)
    at eval (eval at <anonymous> (/tmp/execjs20161208-18535-yotqgcjs:173:8), <anonymous>:10:23)
    at eval (eval at <anonymous> (/tmp/execjs20161208-18535-yotqgcjs:173:8), <anonymous>:17:3)
    at /tmp/execjs20161208-18535-yotqgcjs:173:8

Q: When you start the vehicle it will turn but shuts off, why?

asked by on

It will turn but will not stay on, it shuts right off. We first had to get the battery changed. We ended up having to get a new alternator. We took it to advance auto to have it tested and the code read throttle body, and we got a new one and we still have the problem. We even tried resetting the computer and that didn't work. So what is causing it not to stay on?

My car has 178102 miles.
My car has an automatic transmission.

A: It could be a number of things, but I feel ...

It could be a number of things, but I feel the most likely cause is your key and immobilizer. If you have a spare key, try starting with the spare and see if that works. If it stays running, the original key is the problem.

You may need to re-program the key to your immobilizer unit. Refer to the factory service manual for details on how to re-program your key to the vehicle. Also, use a scanner to identify any diagnostic trouble codes that may be pointing towards the problem. Usually a faulty key chip will cause a code to show. If you want to have this checked, a certified technician from YourMechanic has the tools and knowledge to fully test and diagnose the vehicle's starting trouble.

Was this answer helpful?

Need advice from certified mechanic? Get help now!

Over 1000 mechanics are ready to answer your question.
The statements expressed above are only for informational purposes and should be independently verified. Please see our terms of service for more details

Ask a Mechanic
(100% Free)

Have a car question? Get free advice from our top-rated mechanics.

Ask A Mechanic
Over 10,000 questions answered!

Get an instant quote for your car

Our certified mechanics come to you ・Backed by 12-month, 12,000-mile guarantee・Save up to 30%

Get a quote

What others are asking

Q: My engine is having a hard time starting.

Hi there. Check the battery cables to see if they are tight and clean. Check the wire and make sure that there is no corrosion (looks green on the wires). Check the battery voltage after the vehicle has sat all...

Q: My truck is turning over but wont start

From what you've described it sounds like you may have spun a bearing in the crankshaft or a rod bearing. Running an engine without oil is never good so you'll likely need to have the engine checked to verify this....

Q: The heater wont turn on, on any setting.

This may be related to a faulty blower motor or blower motor relay. Occasionally, the blower motor itself will wear out or become faulty working intermittently as the bruch contacts inside the motor wear out. The blower motor relay supplies...

Related articles

How Long Does a Distributor O Ring Last?
The distributor is part of the ignition system in your vehicle and its purpose is to route high voltage from the ignition coil to the spark plug. The spark plug then...
P2428 OBD-II Trouble Code: Exhaust Gas Temperature Too High Bank 1
P2428 code definition A P2428 trouble code signifies that the PCM has detected a problem in the exhaust gas temperature sensor circuit in bank 1, which subsequently contains the number one...
How Much Does a Mechanic Make in Vermont?
Automotive technician jobs in Vermont have an average mechanic salary of $37k, with some mechanics earning a salary of $53k.