All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger.
There is no contradiction between the two first Fataawa; the second Fatwa only clarifies some details that were not mentioned in the first Fatwa, but the meaning is the same.
If the mother of the child who is mentioned in the second Fatwa was pregnant with him for five months before marrying that man, then she would give birth to him less than six months after she married him, and so the child could not be traced back to him.
As regards calculating the period of pregnancy, then in order to know the possibility of this child being from that man, then the jurists stated that if a man has a wife and she gave birth to a child in a period during which this child could be considered from him (i.e. six months after being married to him), then the child is traced back to him and he becomes his father, so the ruling of inheriting each other and other rulings that apply to birth apply to them; this is whether or not the child resembles him. That is because the Sharee’ah is keen on tracing back the children to their possible fathers, and the period of the possibility of the child being from his father is six months from the time they (the husband and the wife) got married.
Additionally, committing Zina (fornication or adultery) with a woman whether by the one who married her later or by someone else does not necessarily mean that a pregnancy would have occurred so that it can be authoritatively asserted that this pregnancy - to which the woman gave birth after she became a wife and in a period during which the pregnancy could have been traced back to the person who conducted the marriage contract with her - is from Zina.
With regard to the two last Fataawa, there is no contradiction between them as well, as one of the Fataawa referred to the other Fatwa where it is mentioned that there is difference of opinion among the jurists in this regard in order to clarify that this issue is not something agreed upon among the scholars, and this last Fatwa did not consider any of the two opinions to be the preponderant opinion.
Allaah Knows best.