The answer to 'how to fix light fixture' is to first turn off the power to the light at the circuit breaker or light switch. Then, remove the light fixture cover or shade and inspect the light bulb, wiring connections, and any other components. Replace the light bulb if needed, tighten any loose connections, and check for any damage to the wiring or fixture. Once everything is secure, replace the cover or shade and turn the power back on to test the light.
It's important to take safety precautions when working with electricity, such as turning off the power, using insulated tools, and avoiding touching any wires or live components. If you're not comfortable performing the repair yourself or if you notice any major issues, it's best to call a licensed electrician to inspect and fix the light fixture.