The problem of immigrants can be temporarily solved by Europe, which will involve a humanitarian solution and passports would not be involved.
A large area in France or Germany could be set aside. The combined effort of European countries would then set up a number of camps using modern material and infrastructure put in place. this could be done very quickly.
All migrants including those who have set up in various countries could be located to these camps, with EU countries meeting the cast. This would give them a safe haven and resolve the immediate migrant problem
Finally the United Nation should get off its back and give full support right now to resolving ISIS,Assad etc then send migrants them back home. Money to rebuild their homes is not a problem, it is out there.
What it takes of course is will power, without it we are looking at civil war.