The war which occurred in the mid-1800s that weakened the economy of the Ottoman Empire was the Russo-Turkish War, led by the Turks on one side, and Russia, Bulgaria, Romania, Serbia, and Montenegro on the other.
Germany's annexation of Austria and continued persecution of Jews at home exacerbated the refugee crisis. As such, there were more refugees to take in than countries would manage.