Hungary has closed its border with Croatia in an effort to stem the flow of migrants through the country en route to western Europe.
Croatia said it would begin directing migrants to Slovenia instead.
Hungary has been a major transit country for migrants, many of whom aim to continue on to Austria and Germany.
It announced the closure on Friday after EU leaders failed to agree a plan backed by Hungary to send a force to prevent migrants reaching Greece.
The border, reinforced with a razor-wire fence, closed at midnight (22:00 GMT) on Friday.