Skip to content

[Bug] When exporting to XML, if debugging is on, any debug messages also get stored in the XML file. #160

Description

@redlagoon

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:

  1. 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
  1. Go to the Export functionality.

  2. Export a file. Any options.

  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions