Opened 4 years ago
Last modified 4 hours ago
#56907 new defect (bug)
Export Child theme produces corrupt zip file
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | 6.0.3 |
| Component: | Export | Keywords: | reporter-feedback |
| Focuses: | Cc: |
Description
Export of a theme from the Site Editor with any year theme from WordPress including twentytwentytwo, produces a working zip file.
However if you have a child theme of any year theme from WordPress including twentytwentytwo, produces a corrupt zip file.
The error reported by ZipRepair.net is:
Your .zip file had the following issue:
End of Central Directory record could not be found.
All files were recovered from the corrupt zip by ZipRepair.net
This corrupt zip file occurs without any changes to the child theme from the parent theme and without any plugins active. Only the child functions.php and style.css exist.
Attachments (3)
Change History (6)
#1
@
4 years ago
- Keywords needs-patch removed
Hi @meushar,
Could you provide the exact steps you are using to export your child theme that another contributor could use to reproduce?
#2
@
4 years ago
Thanks for the reply.
I have theme twentytwentytwo-child active.
I use menu appearance->editor->site then click on the 3 dots on the right-hand side of the page and select 'export'. The zip file gets produced, which is corrupted.
I also tried menu appearance->editor->template->home then click on the 3 dots on the right-hand side of the page and select 'export'. The zip file gets produced, which is corrupted.
#3
@
4 hours ago
### Test Report:
I attempted to reproduce this issue in a clean local environment to check if it's still present in current versions.
### Environment:
- WordPress Version: 7.0
- OS: Ubuntu Linux
- Theme: Twenty Twenty-Two (with a basic Child Theme active containing only style.css and functions.php)
- Plugins: None active
### Steps Tested:
- Activated the Twenty Twenty-Two Child theme.
- Navigated to Appearance -> Editor.
- Clicked the canvas to open the full editor view, opened the options menu (...) in the top right corner, and selected "Export" under Tools.
### Results:
The .zip file exported successfully. I verified the integrity of the downloaded file using the terminal command unzip -t twentytwentytwo-child.zip and the output returned:
No errors detected in compressed data.
The Central Directory error mentioned in the original report is no longer occurring. This bug is not reproducible in the current WordPress version.
Repaired child.zip file