Exception in rendering!

Message: window is not defined

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

Q: What does it mean when a 1999 Mercedes-Benz shuts off when the headlights are turned on?

asked by on

What does it mean when a 1999 Mercedes-Benz shuts off when the headlights are turned on?

My car has an automatic transmission.

A: This is a common problem when the crankshaf...

This is a common problem when the crankshaft position sensor is faulty. This is a small sensor on the front of the motor down near the crankshaft that monitors crankshaft speed which is relayed to the main computer to control ignition timing and fuel injection.

When this is not working properly, this can cause intermittent stalling and loss of ignition spark. This may not be directly related to the headlights being on or off as this may be a result of a different issue or potentially a short in your electrical system.

If you'd like to get this fixed, I would recommend having an expert from YourMechanic come to your home to diagnose your stalling issue firsthand and help you repair it as necessary.

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

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: Headlight problem and car getting stuck in 2nd gear in sports mode.

A bad ballast for the low beam headlights is a common problem for your vehicle. The problem of getting stuck in second gear will require an experienced technician with special diagnostic equipment to see if the problem is with the...

Q: Auto shutdown relay clicks and won't stop until negative cable is off

Hi, thanks for writing in. This may suggest a short of some kind causing the power to continue to be supplied to the relay. The starter relay is a small unit near the starter that directs power to the starter...

Q: Car starts, then won't restart, then starts again

Hi thanks for the question, problems like this can be as hard to diagnose as they are to live with. It sounds like you may have some intermittent electrical issue. This will require a skilled technician that has the knowhow...

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...
P0052 OBD-II Trouble Code: HO2S Heater Control Circuit High (Bank 2 Sensor 1)
P0052 code definition HO2S Heater Control Circuit High (Bank 2 Sensor 1) What the P0052 code means This code is seen when the Engine Control Module (ECM) tries to control the...
P2103 OBD-II Trouble Code: Throttle Actuator Control Motor Circuit High
P2103 means there is a fault with the throttle actuator control motor circuit, likely due to a defective electrical component or part.