Photophobia (painful or unpleasant sensation when looking into a light, aversion to light) can occur in a number of conditions.
Toxic:
(1) drugs (many)
(2) mercury or other toxins
Ocular:
(3) aniridia
(4) conjunctivitis
(5) keratitis
(6) iritis or iridocyclitis
(7) uveitis
(8) opacities (vitreous, corneal, lenticular)
(9) cone dysfunction syndrome
(10) albinism
(11) achromatopsia (total color blindness)
(12) pseudoherpetic keratitis (Hanhart syndrome)
(13) retrobulbar neuritis
(14) after refractive surgery
Raised intracranial pressure:
(15) subarachnoid hemorrhage
(16) head trauma
(17) meningitis
(18) other causes of raised intracranial pressure
Vitamin deficiency:
(19) pellagra
(20) niacin deficiency
Neural:
(21) trigeminal neuralgia
(22) petrous apicitis (Gradenigo’s syndrome)
(23) lesions of the Gasserian ganglion
(24) migraine
Tumors:
(25) tumor in the region of the pituitary
(26) acromegaly
(27) tumors of the ophthalmic branch of the trigeminal nerve
(28) middle fossa tumors
(29) posterior fossa tumors
Infection:
(30) rabies
(31) psittacosis
(32) schistosomiasis
(33) smallpox
Photosensitivity:
(34) porphyria
(35) hydroa vacciniforme
(36) photosensitivity
Miscellaneous:
(37) cystinosis
(38) phenylketonuria
(39) botulism
(40) xeroderma pigmentosa
(41) acrodynia
(42) acrodermatitis chronica atrophicans
(43) acrodermatits enteropathica
(44) keratoderma palmaris et plantaris
(45) neurasthenia (hysteria)
(46) Chediak-Higashi syndrome
(47) Krabbe disease (infantile globoid cell leukodystrophy)
(48) hypoparathyroidism
(49) Reiter’s syndrome