The Germans were able to advance to the doorstep of Paris. They continuously tried to engage the Entente in a decisive battle (from the Frontier all the way to the Marne). They were unable to do so because the Entente refused to be engaged that way, and because the Entente had superior strategic/operational mobility (they were retreating onto their own logistics and infrastructure (railroads)). At the Marne (Paris), Germany was at or near it's logistical limits. Germany also transferred 200,000 troops to the Eastern front.
The Battle of the Marne itself was not "Germany face tanks into prepared defensive positions and is stopped cold by Entente machine guns and fortifications". The battle was a retreating Entente force, bolstered by re-inforcements, turning around and attacking into the pursuing Germans.
The "Schlieffen Plan" failed before the whole 'static warfare' thing started. In fact, it was the failure of the plan that induced the conditions for the race to the sea, and the whole western front shitshow.
The "Schlieffen Plan" failed because Germany outran it's logistics, because Germany panicked when Russia mobilized faster than anticipated and transferred over a sizeable body of men, because France was able to use it's position (retreating onto its infrastructure) effectively (and they weren't dumb enough to try to engage the Germans at every opportunity), and I'm sure for many other reasons as well. Machine guns may play a part, but I think it's overly reductive to claim that "machine guns - defensive warfare" made the plan impossible.
To add to the debate about Cannae: Talking strategy is talking about abstract principles. The abstract patterns are here "frontal assault" vs. "flank movement" with the aim of encirclement. This is the only relevant and quite vage analogy of the Schlieffen plan and Cannae. However, the Schlieffen plan as it was adopted (and modified) by the German army was a plan of an assault with a very strong and fast right wing, but at Cannae, the battle began with a frontal attack by both armies, with Hannibal subsequently having his centre retreat and later advancing both flanks and finally his cavalry into the back of the Romans to complete the encirclement. So the analogy between Cannae and the so-called Schlieffen plan is not very far-reaching.
If we are looking for a better analogy to Cannae, the German invasion of the Low Countries and France in May 1940 comes surprisingly close. Here the advancing Belgian, English and French armies failed to cover their right flank sufficiently. A hazardous, rapid German tank advance on this flank cut them off from possible lines of retreat and threatened to envelop them from behind. Only the beach at Dunkirk remained as a way of escape for some.
The German plan of May 1940 has been described by some historians such as Antony Beevor as a variant of the Schlieffen plan. Beevor writes in "The Second World War" (2012): "Manstein's [the author of the plan] left-hook Sichelschnitt was thus a reversal of the version of the right-hook Schlieffen plan attempted 1914, which the French now expected them to try a second-time." (p. 97) -- In other words: The French expected another attempt like 1914, they operated accordingly, for that very reason walked into a trap and were defeated by an exactly opposite flanking manoeuvre.
It was however the logical way to attack France from Germany given the geography. WWII generals, who weren't as obsessed with Cannae as Schlieffen, but were well aware the "Schlieffen Plan" was a failure, took the same route with better mobility and logistics and succeeded.
They pulled a switcheroo on the allies in WWII and attacked through the Ardennes. The French & English forces rushing to counter Schlieffen II instead found themselves cut off in Belgium.
Rolling artillery barrages would send the front-line machinegunners hiding in the trenches. The wave of attackers behind the artillery barrage, when moving quickly had a very good chance of capturing the front line of trenches.
The problem that they would face is that rail-deployed reinforcements on the defender side would pour in as a counter-attack... And those recently-captured front-line trenches were, by design, indefensible from an attack from the rear.
So you'd get lots of bloody attacks, with horrific loss of life, where all the territorial gains made in them would be lost in an equally bloody counter-attack. As a net result, the front is frozen, despite both sides taking turns attacking (And making brief territorial gains, that are immediately reversed).
Artillery and railroads, not machineguns seem to be the major influences, there.
That actually would be a much better analogy to Cannae. Enticing them to break your center, not realizing until they're surrounded that the victory they've charged into is actually an epic defeat.
I still don't understand why they'd assume French generals would do that, though. It really assumes a hopeless level of ineptitude on their part for it to work. Seems obvious to me they're better off stalling till Russians are mobilized, no matter how enticing the bait is.
In his defense, the Britannica entry does mention it. https://www.britannica.com/event/Schlieffen-Plan In your defense, you are right.
But yeah, Cannae did (and still does) exert a big influence on military planners.
As others have pointed out, Schlieffen depended on massive luck and adherence to The Plan, neither of which obtained. It was not machine guns that made it fail.
Different times than we live in, for sure.