I rent an apartment and a tenant installed ceiling fan that was not well secured to the ceiling. I removed the fan and attempted to re-install the original light fixture after he moved out.
I am having issues with the wiring. There are 2 black wires and 2 white wires in the ceiling. On the fixture itself there are 2 black wires and 2 white wires as well as a small ground wire.
I try to wire it white to white and black to black. When I turn the power back on, the light switch is off but the light comes on. If I turn the switch on it's blows the breaker?
Should I have 4 connections 2 x black to black and 2 x white to white or should I have two connections - all black together under 1 cap and all white together under 1 cap?
What am I missing? How should this be properly wired? Or is there something else going wrong (maybe an issue with the fixture)?