Those that post here do so (as far as I know) because they want to or are willing to not because they "have to". Good brain teasers tend to keep things interesting and there certainly are learning points throughout the above discussion.
But yes, Monday morning quarterbacking it perhaps that information would have been known to provide and if it were known that "all those" order total modules were a part of the problem this thread probably wouldn't have been started.
While I think the point about answering the questions related to the posting tips has been made, the last thing needed is for someone who has a problem with how their site is operating to not want to post because of receiving such "should have known to post" comments. At least when someone is putting their best foot forward in seeking assistance and answering questions that are asked when insufficient information was originally provided.
Posting the list of order total modules up front for all issues is non-beneficial and it appears was only discovered as a part of following the code from the point where there was no problem to the next location where satisfactory response was to be provided. This is the exact type of review that is helpful in diagnosing the issue whether the OP does so or someone helping does.