• The zip-file created when generating a child theme contains following error message at the beginning:

    <b>Warning</b>: ZipArchive::addFile(): No such file or directory in <b>/var/www/html/htdocs/wp-content/plugins/create-block-theme/admin/class-create-block-theme-admin.php</b> on line <b>243</b><br />

    That makes Mac OS built in tool for zipping/unzipping (Archiver) to bail.

    I’ve noticed that this issue has been brought up before, but been marked as resolved. But it’s not.

    My specs:

    * WordPress 6.1-RC5
    * Raft theme 1.0.4 by Themeisle

Viewing 7 replies - 1 through 7 (of 7 total)
  • Also experiencing this error when trying to create a child theme.

    Warning: ZipArchive::addFile(): No such file or directory in /Local Sites/pgc/app/public/wp-content/plugins/create-block-theme/admin/class-create-block-theme-admin.php on line 243

    I have the same problem when doing clone. I don’t use a MAC, I assume the zipping is done on the server?

    Yeah me too, the Zip file is about 1k and seems corrupted

    Commenting this code in wp-content/plugins/create-block-theme/admin/class-create-block-theme.php seems to work:

    /*		// Add screenshot.png.
    		$zip->addFile(
    			__DIR__ . '/../screenshot.png',
    			'screenshot.png'
    		);
    */

    Still a bug that needs to be resolved…

    Thanks @schwimmlehrer for your hint. Doesn’t work for me though.

    Hello. Seems I have the same problem. When I export a theme from the editor, it is downloaded. But when I try to unzip it, it shows an error “The archive is corrupt”.

    Moderator jordesign

    (@jordesign)

    Hi @olenaiaroshynska

    As this existing thread is quite old, could I ask you to please open a new support thread?

    If you want to share the link to the new thread in your next reply here, I will mark this conversation as “solved” and we can continue in the new thread.

    Keeping threads separated will help future users find them more easily ??

    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Zip-file corrupt’ is closed to new replies.