Make WordPress Core

Opened 5 weeks ago

Closed 5 weeks ago

Last modified 5 weeks ago

#64478 closed defect (bug) (duplicate)

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

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

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 5 weeks 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 5 weeks ago.

Download all attachments as: .zip

Change History (5)

@NitsPatel
5 weeks ago

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

#1 @NitsPatel
5 weeks ago

  • Keywords has-patch added

#2 @hbhalodia
5 weeks ago

  • Resolution set to duplicate
  • Status changed from new to 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
5 weeks ago

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