In surat al-Baqara when quoting debt contracts Allah taught us that we may replace one male witness by two female witnesses saying:
... And bring to witness two witnesses from among your men. And if there are not two men [available], then a man and two women from those whom you accept as witnesses - so that if one of the women errs, then the other can remind her. ...(2:282)
While in (4:15), (5:106) and (24:4) for example the statement doesn't clearly say whether the witnesses can be replaced by those of another gender which may lead to a confusion on whether it is possible to replace in such cases one male by two females or not?
My question is: Is this permission for replacing one male witness by two females witnesses considered as general or does it apply for special cases only?
If there are different views I'd be glad if you could address them!
See also my other relevant question: Can four women be witnesses in cases where two male witnesses are necessary?