# Wordpress plugin theme export "Unknown error"

**URL:** https://forum.pinegrow.com/t/wordpress-plugin-theme-export-unknown-error/7431
**Category:** Pinegrow WP
**Created:** [December 15, 2022, 10:58am UTC](https://forum.pinegrow.com/t/wordpress-plugin-theme-export-unknown-error/7431 "2022-12-15T10:58:21Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Tiago](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/tiago/32/5130_2.png) [@Tiago](https://forum.pinegrow.com/u/Tiago)
#### Post date: [December 15, 2022, 10:58am UTC](https://forum.pinegrow.com/t/wordpress-plugin-theme-export-unknown-error/7431/1 "2022-12-15T10:58:21Z")

</div>

Hey guys,

So I am having an error while trying to export my first theme in the pg WP plugin.  
This is the log:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/pinegrow/original/2X/0/0448bd5f0e2e0069481fc45cfad9a83d804161f6.png)

Then this appears:

> Export Failed. Unknown error.

Any clue?

Thanks!

PS: I updated the plugin to 1.0.1 this morning.

---

<div class="post-metadata">

### Author: ![Tiago](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/tiago/32/5130_2.png) [@Tiago](https://forum.pinegrow.com/u/Tiago)
#### Post date: [December 15, 2022, 11:13am UTC](https://forum.pinegrow.com/t/wordpress-plugin-theme-export-unknown-error/7431/2 "2022-12-15T11:13:19Z")

</div>

Ok so, I understood what was going on.

I am using Local by flywheel, and I had to run the app as an administrator in order for pinegrow to be able to export the theme.

Now it is working perfectly fine.

Cheers!

---

<div class="post-metadata">

### Author: ![Dom](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/dom/32/4887_2.png) [@Dom](https://forum.pinegrow.com/u/Dom)
#### Post date: [December 15, 2022, 11:51am UTC](https://forum.pinegrow.com/t/wordpress-plugin-theme-export-unknown-error/7431/3 "2022-12-15T11:51:39Z")

</div>

Running Flywheel as Admin certainly allowed to export to complete, BUT when I went to activate the plugin there was no sign of it.  
Local site configured with PHP 8.i9, Nginx and MSSql 5.X

If I return to the project and attempt to export again I then get an error and this log is the result

Export starter…  
apiValidated.  
getCurrentUser and settings.  
true  
Got project post with ID 16  
Deleted the project error log.  
true  
Require the file system…  
Done.  
Getting the FS instance…  
true  
Checking if this is a PG project…  
working\_dir = C:\Windows\TEMP/export-03LzazlVJb  
Here is the list of exported files:  
— inc/wp\_pg\_helpers.php  
— cool\_blocks.php  
— inc/custom.php

Plugin file will be cool-blocks.php  
Files written.  
Requesting class-wp-upgrader.php  
backup\_dir = C:\Users\Public\Documents\LocalSites\PGPlugin\app\public/wp-content/plugins/cool-blocks\_\_pg\_backup  
Getting Upgrader instance…  
Upgrader-\>install\_package…  
Done.  
ERROR - Upgrader failed with incompatible\_archive\_empty

If I then look at the directory structure of the local site there is, within the plugins directory a folder called Cool Blocks containing a single solitary file 8 bits in lenght called.exported\_by\_pinegrow which when opened contains the word pinegrow and nothing else.

---

<div class="post-metadata">

### Author: ![Tiago](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/tiago/32/5130_2.png) [@Tiago](https://forum.pinegrow.com/u/Tiago)
#### Post date: [December 15, 2022, 12:03pm UTC](https://forum.pinegrow.com/t/wordpress-plugin-theme-export-unknown-error/7431/4 "2022-12-15T12:03:33Z")

</div>

Yeahp, exact same error happened to me.

---

<div class="post-metadata">

### Author: ![Dom](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/dom/32/4887_2.png) [@Dom](https://forum.pinegrow.com/u/Dom)
#### Post date: [December 15, 2022, 12:04pm UTC](https://forum.pinegrow.com/t/wordpress-plugin-theme-export-unknown-error/7431/5 "2022-12-15T12:04:42Z")

</div>

Did you get over it or are you currently stuck at that point?

---

<div class="post-metadata">

### Author: ![Dom](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/dom/32/4887_2.png) [@Dom](https://forum.pinegrow.com/u/Dom)
#### Post date: [December 15, 2022, 12:13pm UTC](https://forum.pinegrow.com/t/wordpress-plugin-theme-export-unknown-error/7431/6 "2022-12-15T12:13:00Z")

</div>

So Rebuilt the whole local site one more time, same basic settings (php8.19, nginx and msSql 5.7.8). Made sure that I’m running Local as admin and go through the tutorial again. Cool Blocks exports but it contains , as before the one single solitary file of 8 bits containing the word pinegrow.

Logically this must be some sort of incompatibility issue.

---

<div class="post-metadata">

### Author: ![Dom](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/dom/32/4887_2.png) [@Dom](https://forum.pinegrow.com/u/Dom)
#### Post date: [December 15, 2022, 12:39pm UTC](https://forum.pinegrow.com/t/wordpress-plugin-theme-export-unknown-error/7431/7 "2022-12-15T12:39:15Z")

</div>

It transpires that there is a new version of Local available (6.6) so I have installed that. Fired up Local as an admin and created a new site (this time php 8.02, apache and msSql 5.7.8). Run through the tutorial again. Cool Blocks is exported but contains that one single solitary file.

Is it just possible that this is because Local when running locally in Localhost is not Https?

@Emmanuel , @matjaz Finally some progress, but I don’t know why. On the WordPress menu there is an option to download the plugin zip file. If I do that I get a zip file that actually has files in it and more importantly one which I can then upload as a plugin to the site and activate as one would any other plugin.

And then we fail to export on stage 5 of the tutorial. I’ll try the download plugin route again.

---

<div class="post-metadata">

### Author: ![matjaz](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/matjaz/32/5_2.png) [@matjaz](https://forum.pinegrow.com/u/matjaz)
#### Post date: [December 15, 2022, 11:31pm UTC](https://forum.pinegrow.com/t/wordpress-plugin-theme-export-unknown-error/7431/8 "2022-12-15T23:31:48Z")

</div>

1.0.2 (out now) fixes the issue with exporting projects on Windows-based sites. Please update and report back.

---

<div class="post-metadata">

### Author: ![Tiago](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/tiago/32/5130_2.png) [@Tiago](https://forum.pinegrow.com/u/Tiago)
#### Post date: [December 21, 2022, 8:04am UTC](https://forum.pinegrow.com/t/wordpress-plugin-theme-export-unknown-error/7431/9 "2022-12-21T08:04:12Z")

</div>

Hello Matjaz.

Yes, version 1.0.2 did fix this issue. Thanks a lot!
