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
What does it mean when a 1999 Mercedes-Benz shuts off when the headlights are turned on?
My car has an automatic transmission.
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.
Have a car question? Get free advice from our top-rated mechanics.
Our certified mechanics come to you ・Backed by 12-month, 12,000-mile guarantee・Save up to 30%