Make WordPress Core

Opened 21 months ago

Last modified 5 months 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-testing 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 5 months ago.
screenshot of xml export containing the template

Download all attachments as: .zip

Change History (11)

#2 @heymehedi
17 months ago

  • Component changed from Export to General

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

Thanks

#3 @afercia
17 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
17 months ago

Hi @SergeyBiryukov ,

Could you please take a look at this ticket?

Thanks

#5 @nhrrob
16 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
6 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.


5 months ago

#8 @nikunj8866
5 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
5 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
5 months ago

screenshot of xml export containing the template

#10 @iamshashank
5 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.
Note: See TracTickets for help on using tickets.