Turn signals don’t work when headlights are on

Poor grounding at socket
Poor contacts in socket or contact pigtails mis-oriented rotationally (clocking)
Wrong bulbs in at least one socket or bulbs jammed in wrong "clocking" or shorted bulb

What usually causes this is that park/ tail power "feeds back" due to a problem and changes the circuit.