Title: 500 Error importing exported theme
Last modified: May 6, 2023

---

# 500 Error importing exported theme

 *  Resolved [tpcantab](https://wordpress.org/support/users/tpcantab/)
 * (@tpcantab)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/500-error-importing-exported-theme/)
 * Hi
 * I have the latest version of WordPress, as of today, 6.2 and I have updated virtually
   all plugins incl “Create Block Theme”.
 * This is self-hosted running on “CentOS Linux release 7.9.2009 (Core)” with httpd24-
   httpd-2.4.34-23.el7.2.x86_64.
 * I am a bit behind php wise on 7.3.33.
 * I exported a theme using “Create Block Theme” and then tried to import it and
   I got a server 500 response.
 * I understand that I should run it in debug mode, but I have resolved the issue
   so haven’t done that.
 * The problem seems to be that the export, zip, does not contain a root level folder
   with the theme files in the folder. All the theme files are at the root of the
   zip. If extract the zip and recreate it so the theme files/folders are under 
   a subfolder the import works fine.
 * I am unclear if this is an issue with the export or the import side of things,
   or something with my environment, but wanted to pass it along as I can’t find
   any reports of the same issue.
 * Create Block Theme is at Version 1.8.2
 * Cheers

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Matias Benedetto](https://wordpress.org/support/users/mmaattiiaass/)
 * (@mmaattiiaass)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/500-error-importing-exported-theme/#post-16720411)
 * Hi [@tpcantab](https://wordpress.org/support/users/tpcantab/), thanks for reporting
   this issue.
   I’m not sure what can be failing. Is your theme exporting as expected?
   Could you share the .zip file you are getting? That would be useful to debug 
   the problem.Thanks
 *  Thread Starter [tpcantab](https://wordpress.org/support/users/tpcantab/)
 * (@tpcantab)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/500-error-importing-exported-theme/#post-16721955)
 * Thanks for responding, sorry my first time posting in this forum, I am not sure
   how to upload the zip.
   I know what fixed the problem it was adding a subfolder.
   So the export structure looked something like:
 * mytheme.zip
    assets parts patterns styles
 * If I changed it to:
 * mytheme.zip
    mytheme assets parts patterns styles
 * Then it imported fine
 * Thanks again
 *  Plugin Author [Matias Benedetto](https://wordpress.org/support/users/mmaattiiaass/)
 * (@mmaattiiaass)
 * [2 years, 10 months ago](https://wordpress.org/support/topic/500-error-importing-exported-theme/#post-16777591)
 * Thanks, nice to hear that you could find the solution.
   We are working [on a fix to export the .zip files, always containing a folder with the theme slug as the name to avoid this kind of error](https://github.com/WordPress/create-block-theme/pull/357).
   It will be released soon.Thanks again for your report. I’m marking this as resolved.
   Feel free to create new threads if you find other issues.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘500 Error importing exported theme’ is closed to new replies.

 * ![](https://ps.w.org/create-block-theme/assets/icon-256x256.png?rev=2777957)
 * [Create Block Theme](https://wordpress.org/plugins/create-block-theme/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/create-block-theme/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/create-block-theme/)
 * [Active Topics](https://wordpress.org/support/plugin/create-block-theme/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/create-block-theme/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/create-block-theme/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Matias Benedetto](https://wordpress.org/support/users/mmaattiiaass/)
 * Last activity: [2 years, 10 months ago](https://wordpress.org/support/topic/500-error-importing-exported-theme/#post-16777591)
 * Status: resolved