udpated again. Can you try again? I assumed that encoders are connected to the pins in order:
{{0, 1}},
{{2, 3}},
{{4, 5}},
{{6, 7}},
So the first encoder uses pins 0,1, the second encoder has pins 2,3 etc . If this is not true, try amending these values in the code.