-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exported assets/images with 0 bytes #280
Comments
Hi @decrecementofeliz 👋 Is the file hosted in the local WordPress media files or is it a linked file? It would be helpful also if you can record a screencast video adding the image in the editor and after that export the theme. Maybe it would be useful to spot details I cannot see in the screenshots. |
That's fast :) Thank you The server is quite standard for me, isn't it?: |
Hi @decrecementofeliz 👋 thanks for the screencast. |
@decrecementofeliz I have another question: Have you tried adding google fonts to your theme using the plugin? Did that work as expected? I'm trying to figure out what can be causing the 0-byte image files. |
Good to know! @decrecementofeliz: Does the image problem happen only when you are creating a .zip file (with the export or clone options of the plugin) or when you overwrite the local theme (with the overwrite option of the plugin) too? |
It happens either way. On a different WP installation, on a different server from previous site I ran this:
All these files contained 0-bytes images on assets/images. |
Hi @decrecementofeliz, I submitted a potential fix for this issue: #291 |
Hi Matias, I've tested the fix and now it works! To make sure about everything I tried it all over in a new fresh installation:
p.d. I had to upload and uncompress the .zip file through FTP because through the WP admin it warned me about potential malware on the file. Let me know if you want to me to test anything else about #291 and thanks! |
Thanks for reporting and testing @decrecementofeliz ! |
The fix for this issue was released on the latest version (1.8.0). If you find new problems around this feel free to re-open. |
Hi!
When I export the theme with the plugin, the image files used in the templates are exported (as mentioned in #213) but they contain no info, 0 bytes.
To reproduce (WP 6.1.1, Create Block Theme 1.7.0)
On this plugin, Export the theme
The generated .zip file contains the image file in /assets/images, but its size is 0 bytes. So it fails to load when I try to upload this theme into another installation
p.d. I'm quite new to FSE and so on, git included, so maybe I'm missing something, sorry in advance and thank you for this plugin, I'm learning a lot!
The text was updated successfully, but these errors were encountered: