FR 2494 then FR 3189 at Barcelona
Palma de Mallorca → Barcelona → Fes
Timetable, Barcelona time
16:55FR 2494 from Palma de Mallorca at the gate
16:45FR 3189 to Fes leaves the gate
23 h 50 apart on the timetable, overnight
FR 3189 leaves 23 h 50 after FR 2494 arrives on the timetable: more than half a day, so not a connection we count.