I have copied our website over to a new hosting platform with more resources etc. I have done this lots of times before without any difficulty. Everything is working apart from Sales PDF Invoices. They download but are all corrupted and won't open. On the live website (which is still live where they do work) which I have copied from they are approx 198kb. On the destination server they are 70kb. I have checked the system and debug logs and the only that is appearing is main.ERROR: Environment emulation nesting is not allowed. [] [] in both.
I have upgraded, compiled, deployed, flushed, set permissions, reindexed.
I have have tried everything. Help!