Make WordPress Core

Opened 2 years ago

Last modified 2 weeks ago

#60545 assigned defect (bug)

Default XML exporter is failing to export block templates.

Reported by: heymehedi's profile heymehedi Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.4.3
Component: Export Keywords: has-patch needs-test-info
Focuses: Cc:

Description

When attempting to export XML through the "Tools > Exports" menu with the selection "Choose what to export > All," the process does not include the export of created templates.

Attachments (1)

test-templaceXML.png (548.9 KB) - added by jeannetteunifreiburg 8 months ago.
screenshot of xml export containing the template

Download all attachments as: .zip

Change History (12)

#2 @heymehedi
20 months ago

  • Component changed from Export to General

@afercia could you please take a look at this issue?

Thanks

#3 @afercia
20 months ago

  • Component changed from General to Export
  • Keywords has-screenshots removed
  • Severity changed from major to normal

@heymehedi thanks for your PR! I'm not sure I'm the best person to have a look at it, as I'm not very familiar with the Exporter. Cc @SergeyBiryukov

#4 @heymehedi
20 months ago

Hi @SergeyBiryukov ,

Could you please take a look at this ticket?

Thanks

#5 @nhrrob
20 months ago

  • Keywords needs-testing needs-testing-info added

Patch needs testing first.
Also testing instructions might help to move it froward.

Adding keywords accordingly.

#6 @wordpressdotorg
9 months ago

  • Keywords needs-test-info added; needs-testing-info removed

This ticket was mentioned in Slack in #core-test by boniu91. View the logs.


8 months ago

#8 @nikunj8866
8 months ago

  • Keywords 2nd-opinion added

Reproduction Report

Description

❌ This report confirms that the issue cannot be reproduced.

Environment

  • WordPress: 6.9-alpha-60093-src
  • PHP: 8.2.28
  • Server: nginx/1.27.5
  • Database: mysqli (Server: 8.4.5 / Client: mysqlnd 8.2.28)
  • Browser: Chrome 137.0.0.0
  • OS: Windows 10/11
  • Theme: Twenty Twenty-Four 1.3
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Actual Results

  1. ❌ Unable to reproduce the reported issue.
  2. ✅ The custom templates are visible in the exported XML file as expected.

Supplemental Artifacts

https://screenrec.com/share/qKOZntiEAH

#9 @jeannetteunifreiburg
8 months ago

  • Keywords 2nd-opinion removed

Reproduction Report

Description

This report validates whether the issue can be reproduced.

Environment

  • WordPress: 6.8.1
  • PHP: 8.2.27
  • Server: nginx/1.26.1
  • Database: mysqli (Server: 8.0.35 / Client: mysqlnd 8.2.27)
  • Browser: Firefox 138.0
  • OS: macOS
  • Theme: Twenty Twenty-Five 1.2
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Actual Results

  1. ❌️ Error condition DOES NOT occur (NOT reproduced).

Additional Notes

  • I set up a blank site using local.
  • I exported the site to create a data basis.
  • I created a custom block template named „test Template“
  • I exported the site and checked to see if the definition of the block template was included.
  • The XML report included my newly created template

Supplemental Artifacts

Added as Attachment

@jeannetteunifreiburg
8 months ago

screenshot of xml export containing the template

#10 @iamshashank
8 months ago

Reproduction Report

Description

❌ This report validates that the issue cannot be reproduced.

Environment

  • WordPress: 6.8.1
  • PHP: 8.2.27
  • Server: nginx/1.26.1
  • Database: mysqli (Server: 8.0.35 / Client: mysqlnd 8.2.27)
  • Browser: Chrome 135.0.0.0
  • OS: macOS
  • Theme: Twenty Twenty-Five 1.2
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Actual Results

  1. ❌ Unable to reproduce the issue.

Additional Notes

  • The xml file includes the template.

#11 @huzaifaalmesbah
2 weeks ago

  • Keywords needs-testing removed

Reproduction Report

Environment

  • WordPress: 7.0-alpha-61215-src
  • PHP: 8.2.30
  • Server: nginx/1.29.4
  • Database: mysqli (Server: 9.5.0 / Client: mysqlnd 8.2.30)
  • Browser: Chrome 143.0.0.0
  • OS: macOS
  • Theme: Twenty Twenty-Five 1.4
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.1

Steps taken

  1. Set up a fresh WordPress installation.
  2. Created a new block template via Appearance → Editor → Templates.
  3. Navigated to Tools → Export.
  4. Selected Choose what to export → All content.
  5. Generated and downloaded the XML export file.
  6. Opened the XML file and searched for the created block template.

Result: ❌ Bug is not occurring

Expected behavior

  • Block templates should be included in the XML export when exporting All content.

Additional Notes

  • Tested on latest trunk and matches results from previous reports on this ticket.
  • Behavior appears correct and consistent across multiple environments.
  • No regressions or export issues detected.

Screenshots/Screencast with results

  • XML export file contains the created block template (verified manually). https://i.ibb.co/4w2SvyDm/Huzaifa-20260128215120.png
Last edited 2 weeks ago by huzaifaalmesbah (previous) (diff)
Note: See TracTickets for help on using tickets.