Ceiling Fan Light Comes On Then Goes Off

It keeps doing this whenever i turn it on.
Ceiling fan light comes on then goes off. Obviously the fan and light kit is getting power and the bulbs. I hear a click from the fan when it s ready to go back on there is also an outlet in the room that does not work if that matters. Light comes back on once i flick the switch a few times. My 1 1 2 year old hampton bay springview 52 ceiling fan has a bowl type light kit with 3 small chandelier bulbs that came with the fan.
Do i have to replace the ceiling fan and light or can it be fixed. Ceiling fan light shuts off after seconds what should i do. When i turn on the wall switch fan has a normal switch no remote the fan works fine but the lights stay on only for about 1 second then turn off. Kung fu maintenance shows a quirky problem with some fixtures of a ceiling fan lighting malfunction where the lights turn off after one second than won t work.
Ceiling light turns off 2 seconds after being turned on i just purchased a brand new house closed on it today and went to take a look at the place again this evening before we move in. I have a remote controlled ceiling fan and light. But if i try to turn on the light it blinks on for a brief second. What to look for and how to fix it.
The fan part works just fine. I don t run the fan but when i turn the light on sometimes it will stay on for a long time then just go off by itself. To answer your question i want to break this down into two parts. Ceiling fan light goes off by itself fan stays on.
Part b will be the scenario in which you have had this fan installed for many years and are. What causes this problem. Part a will be the scenario that you have just purchased this fan and it is exhibiting this behaviour after installation.