UN Secretary General Ban Ki-moon has said he is “shocked” after Hungarian police fired tear gas and water cannon to force migrants back from its border.
Mr Ban said such treatment of asylum seekers was “unacceptable”.
Hundreds were involved in clashes at the Hungary-Serbia border on Wednesday, trying to breach a razor-wire fence.
More than 5,000 migrants have entered Croatia so far – avoiding Hungary – police say, and another 7,266 entered Germany on Wednesday.
German police said this was more than double the number that crossed the previous day, adding that most were picked up on the border with Austria.
Germany is the final goal of many migrants, as the European Union remains divided over how to deal with the crisis.
Hungary defended its action, saying that 20 police officers were injured as migrants tried to break through a gate, and a spokesman accused migrants of using children as “human shields”.
At least two migrants were also injured, Hungarian and Serbian officials said.
Hungary closed its entire border with Serbia on Tuesday after making it illegal to enter the country or damage the border fence. The country’s courts have startedfast-track trials of arrested migrants.
More than 200,000 people have already crossed into Hungary this year to enter the EU’s Schengen zone, which normally allows people to travel between member countries without restrictions.
At the scene: Lyse Doucet, Serbia-Croatia border
With Hungary’s border firmly shut, more and more people are getting on buses and into taxis and heading towards Croatia.
Most are avoiding the official crossing – even though it is open. Instead they’re walking down a dirt farm track which takes them through fields of corn to a waiting line of Croatian border guards.
Many people pause at the sight of police vans. But guards wearing baseball caps greet them in English saying – don’t be afraid. UN and Red Cross officials are also in the fields, reassuring people they’re only being driven to waiting buses to take them to the capital Zagreb for some rest and to register.
So many are arriving now that a special train service was also started late last night. Most people see Croatia as a transit country. But more barriers still lie ahead. Slovenia’s prime minister has announced he’s tightening all his borders until there’s a common European solution to this crisis. So far, there’s no sign of that.
Many are now heading for the Croatian border. Croatian police said 5,650 had crossed into the country.
Interior Minister Ranko Ostojic told national TV that the police were currently in control of the situation but if migrants continued to arrive in large numbers the authorities would have to think about taking a different approach.
On Wednesday officials said Croatia would allow migrants to travel to northern Europe.
Several hundred left the border by train, but thousands more have gathered to wait for further trains.
In other developments:
- Authorities in Paris, France, are evacuating more than 500 migrants from tent camps and sending them to special migrant housing centres, the Associated Press reports
- Bulgaria is sending extra troops to its border with Turkey in case of a further influx of refugees, its defence minister says
- EU Migration Commissioner Dimitris Avramopoulos is visiting refugee centres in Bicske, Hungary, and Rosenheim, Germany
- Austrian railways say services to and from Hungary, suspended on 10 September, will resume on Friday
- A report by the charity Save the Children says more than two million children inside Syria are unable to attend schools
On Wednesday, there were chaotic scenes near the town of Horgos, with fires burning and police vehicles and ambulances arriving on the Serbian side of the border, across from massed ranks of riot police on the other side.
Some migrants threw missiles, including stones and water bottles.
The firing of tear gas and water cannon created a stampede of migrants away from the border.
Several people received treatment from the Serbian ambulance service, some suffering the effects of tear gas.
Migrant Amir Hassan, from Iraq, said: “We fled wars and violence and did not expect such brutality and inhumane treatment in Europe.”
Serbian Prime Minister Aleksandar Vucic accused Hungary of being “brutal and “non-European”.
Serbia has said it will send additional police to its border with Hungary.