Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Direct Install Tool - "not a valid Grav package"

Solved by Michael Miller View solution

Started by Michael Miller 7 years ago · 4 replies · 672 views
7 years ago

just started getting an error message when we try to update a theme package using the Direct Upload Tool. We're on Grav v1.6.16 - Admin v1.9.10. I'm getting this on two different installs. I've tried this with several different theme packages that I know work, including the default quark theme and basic theme packages created using bin/plugin devtools new-theme

Did something change recently with the direct upload tool? Everything is working fine using the GUI "Add theme" method in the admin panel or by manually uploading and unzipping files on the server.

7 years ago Solution

so it looks like the issue is in line 191 of Grav/Common/GPM/Installer.php. $zip->getNameIndex(0) is returning the assets folder name and it looks like it should be returning the root theme folder. I got around this by throwing the blueprints.yaml and the theme php and yaml files in the assets folder for now, but it looks like this is a change in behavior for the underlying PHP ZipArchive class. I'm running PHP 7.2.19 on Ubuntu 18.04.2 and PHP 7.3.9 in development.

7 years ago

Yep if you believe this to be a bug, please report it on Github. It won't get noticed here at all.

Thank you very much for following up here though 🙂 If you feel lazy, you could just link this post from Github. It's well described here.

Suggested topics

Topic Participants Replies Views Activity
Support · by Water Science, 3 weeks ago
11 167 6 hours ago
Support · by Duc , 22 hours ago
1 44 22 hours ago
Support · by Thomas, 1 week ago
3 116 1 day ago
Support · by Anna, 4 days ago
2 109 2 days ago
Support · by Justin Young, 2 days ago
1 87 2 days ago