• I am using WordPress 5.9

    I use the site-editor to modify templates. The templates work fine.

    I then do a template export from the site-editor “more tools” section and a zip file is created

    I have tried 3 ZIP programs and they all report that the zip file is corrupted.

    Is there an issue with the template export, or am I doing something wrong?

    • This topic was modified 2 years, 10 months ago by meushar.
Viewing 6 replies - 1 through 6 (of 6 total)
  • I used it yesterday on my site without a problem. In windows, I just click export all and haven’t had any issues.

    Thread Starter meushar

    (@meushar)

    Thanks mrtom414 for your reply.

    Just to be clear:
    I am not talking about the left hand menu tools->export->all content which produces a XML file.
    I am talking about appearance->site-editor->more tools and options->export templates. The zip file produced here is the corrupted one.

    I use the function after I create templates in the site editor to copy the files back into the folder of the theme. I create empty templates in the template and parts folders. Set them up in the editor then download them unzip them and copy them back to the theme folder. I think that is what you are trying to do. I using windows to extract them. It could be a problem with your webserver or with the version of zip you are using. But, I don’t have a problem at all with it.

    Thread Starter meushar

    (@meushar)

    Thanks mrtom414.

    That is exactly what I am trying to do so good to know it works.

    Ill check up how the webserver is compressing files.

    One additional question if I may:
    do posts and pages found by search get returned as links?

    Thread Starter meushar

    (@meushar)

    Hi mrtom414

    I spun up a webserver on my local computer and have been playing around with it.

    Amazingly, it appears to be the child them that causes the error. When I use twenty-twenty-two theme it creates zips without errors. When I use the twenty-twenty-two-child theme the errors return.

    Any idea what to look at that may/may not be on the child theme?

    My child theme has new template parts, some changes to theme.json and thats all.

    Thread Starter meushar

    (@meushar)

    I have submitted a ticket for this bug.

    I had the corrupt zip file repaired by ZipRepair.net which recover all the contents.

    The error they discovered is:
    Your .zip file had the following issue:
    End of Central Directory record could not be found.

    This bug occurs regardless of which year theme you begin with, including twentytwentytwo. It occurs with only the functions.php and style.css in the child theme. It occurs with no plugins active. It occurs with all versions of wordpress from 5.9 to WordPress 6.03

    • This reply was modified 2 years, 4 months ago by meushar.
    • This reply was modified 2 years, 4 months ago by meushar.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘wordpress 5.9 site editor template export zip is corrupt’ is closed to new replies.