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 · 851 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 Paul Hodges, 4 weeks ago
19 487 6 days ago
Support · by Lauw, 7 days ago
2 104 7 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 4 weeks ago