Make WordPress Core

Opened 9 months ago

Closed 9 months ago

Last modified 9 months ago

#64478 closed defect (bug) (duplicate)

Error occurs when exporting Products via Tools → Export in WordPress 6.9

Reported by: NitsPatel Owned by:
Priority: normal Milestone:
Component: Export Version: 6.9
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

In WordPress 6.9, exporting Products using the built-in Tools → Export functionality results in an error when attempting to download the export file.

Steps to Reproduce

  • Install and activate WordPress 6.9
  • Ensure WooCommerce is installed and activated
  • Go to Dashboard → Tools → Export Select Products using the radio button Click Download Export File

Expected Result

The Products export should download successfully as an XML file containing all product data.

Actual Result

An error occurs during the export process, and the Products XML file is not downloaded.

Environment
WordPress Version: 6.9
PHP Version: 8.2.27
Theme: Twenty Twenty-Five
Plugins: WooCommerce (only)
Browser: Chrome

Additional Notes

  • The issue persists even when using a default theme.
  • The issue occurs consistently when exporting Products.
  • Other export options (e.g., Posts, Pages) work as expected.

Attachments (2)

64478-products-export-error.png​ (33.1 KB ) - added by NitsPatel 9 months ago.
I have attached a screenshot showing the error that occurs when exporting Products via Tools → Export in WordPress 6.9.
64478-fix-wxr-cdata-null.diff​ (541 bytes ) - added by NitsPatel 9 months ago.

Download all attachments as: .zip

Change History (5)

@NitsPatel
9 months ago

I have attached a screenshot showing the error that occurs when exporting Products via Tools → Export in WordPress 6.9.

#1 @NitsPatel
9 months ago

  • Keywords has-patch added

#2 @hbhalodia
9 months ago

  • Resolution → duplicate
  • Status new → closed

Duplicate of #64347.

Hi @NitsPatel, Thanks for the patch.

The issue is already covered here in the ticket - https://core.trac.wordpress.org/ticket/64347 and is already been patched in trunk with the changeset - https://core.trac.wordpress.org/changeset/61405

The ticket is reopened to backport the changes to 6.9 version. This will soon backported to core.

For now I am closing the ticket marking it as duplicate of https://core.trac.wordpress.org/ticket/64347. Please feel free to repoen if expected issue and changes are different.

Cc: @westonruter

Thanks,

#3 @sabernhardt
9 months ago

  • Milestone Awaiting Review
Note: See TracTickets for help on using tickets.