The problem might be in the switch or the same wire connection, please check the wire from on/off switch where it might touches each other.
If the light is glowing using solar panel, then their could be another problem. please mention some more details so I can help you.
Does the light glows when you keep in sun?
Does the light glows when you keep in charge with electricity?