Same problem here, Archive Utility mumbling about ?unsupported format?, BetterZip also doesn’t open the file.
Opening the file in BBEdit shows that a PHP error has apparently been saved into the beginning of the zip file:
<br />
<b>Warning</b>: ZipArchive::addFile(): No such file or directory in <b>/Users/philby/Sites/FSE/wp-content/plugins/create-block-theme/admin/class-create-block-theme-admin.php</b> on line <b>237</b><br />
NB: exporting the activated theme with user changes as full theme does work, but exporting as child theme and cloning the theme show this behaviour.
Exporting the theme does not try to add the screenshot.png to the zip file, which is where cloning and creating a child theme seem to break.
If I was to guess, I’d say that the __DIR__ in
$zip->addFile(
__DIR__ . '/../screenshot.png',
'screenshot.png'
);
points to some plugin directory and not the theme dir, which is why screenshot.png can’t be found.
-
This reply was modified 2 years, 8 months ago by
philbee.