I would check two things- first, plug the photocell in and make sure it is firmly pressed in, sometimes it hangs up on the housing but is not plugged in. After checking this unplug the pump from the wall and wait about a minute. Test it by covering it with your hand to be sure it isnt ambient light.
Also, check the photocell- can you see any corrosion inside?