yes my implementation is totally in line with your example (even using the same replacement string). Howerver, only the first document in the loop is created as it should be. All subsequent files will be empty and the above errors are thrown.
🏷️ Limited Offer: 25% OFF 🏷️
First 100 purchases only — Special discount!
Use this coupon on checkout: PHPDXPJ_D1SC1N5T
Get it now