From reading the web, I understand that the Empire was in a terrible state. This was the result of several decades of losing battles, nationalistic uprisings, and opposition to reform that resulted in the Ottoman Empire being the original reference of the "Sick man of Europe". Sultan Mehmed V knew this and wanted to remain neutral as there was little possibility for a largely agrarian society to triumph over industrialized powers.
However, for some reason, Mehmed's advisors wanted them to join the war. As a result of pressure from them, Mehmed eventually relented. This really confuses me, as there seems no reason for the Sultan to agree, or for his advisors to want a war when their position was so weak. Apprently they had lost many of their weapons in the Balkan wars a year earlier and were unable to replenish them.
Could someone provide more color on this?
EDIT: I've already read the wiki page, but it only says that they couldn't remain neutral, not why. Looking at the map, I doubt the central powers would have wanted to open another front when they are already surrounded. Considering that Russia's military was poorly armed at the time, I believe they would have preferred to focus on fighting the Germans.