Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Direct Install Tool - "not a valid Grav package"

Solved by Michael Miller View solution

Started by Michael Miller 7 years ago · 4 replies · 982 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.

1 reply

Suggested topics

Topic Participants Replies Views Activity
Support · by webmasterodp, 7 days ago
4 153 6 days ago
Support · by nwhitfield, 1 week ago
2 134 1 week ago
Support · by stell, 3 weeks ago
5 369 2 weeks ago
Support · by gravinator, 1 month ago
5 559 2 weeks ago
Support · by Gravver, 3 weeks ago
6 347 3 weeks ago