I am not sure if this is related to the Importer, after all, the Exporter is quite different, but it's the other 50% of this tool.
How to replicate:
- Try to get a plugin to cause an error that would only get output at the head, but not break the site, for me, it was Reset-WP, it now shows:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; ResetWP has a deprecated constructor in C:\xampp\htdocs\wordpress\wp-content\plugins\reset-wp\reset-wp.php on line 29
-
Go to the Export functionality.
-
Export a file. Any options.
-
Open the .xml file. You should now see, at the first line, the very same error and anything that got output.
This renders the exported file useless, unless you remove these lines.
My guess is that you have an ob_start somewhere that also catches it.
I am not sure if this is related to the Importer, after all, the Exporter is quite different, but it's the other 50% of this tool.
How to replicate:
Go to the Export functionality.
Export a file. Any options.
Open the .xml file. You should now see, at the first line, the very same error and anything that got output.
This renders the exported file useless, unless you remove these lines.
My guess is that you have an
ob_startsomewhere that also catches it.