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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Installation & Hosting

Fresh Grav Installation on Windows doesn't seem to find the ZIP-Module

first-time

Solved by Kai View solution

Started by Kai 1 year ago · 2 replies · 108 views
1 year ago

(I wanted to use Images to help visualizing but the Forum didn't let me do it because I am a new User. So I am trying it without images...)

Hi,

I did a fresh install on my Windows Machine for a Getting Started and see what can be done.

I got greeted with a Start-Up Page which shows one missing Module:

PHP Zip extension is required but not installed

But PHP (Version 8.4.2 / php.exe -ini) itself shows this:

zip

Zip => enabled
Zip version => 1.22.4
Libzip version => 1.11.2
BZIP2 compression => Yes
XZ compression => Yes
ZSTD compression => No
AES-128 encryption => Yes
AES-192 encryption => Yes
AES-256 encryption => Yes

The Grav Code for this looks like this:

// Check for PHP Zip library
$msg = 'PHP Zip extension is %s installed';
if (extension_loaded('zip')) {
$modules_success['zip'] = sprintf($msg, 'successfully');
} else {
$modules_errors['zip'] = sprintf($msg, 'required but not');
}

But when I call this function in CLI then I get this:

C:\Users\User>php -r "print extension_loaded('zip');"
1

And this is the only PHP Version installed on my Machine.

What could be the Issue with this?

1 year ago Solution

Okay, it seems that it has resolved itself after a Machine Restart.

1 year ago

You can mark this post as solved if you have found a solution.

👍 1

Suggested topics

Topic Participants Replies Views Activity
Installation & Hosting · by antoinep, 9 hours ago
5 53 3 hours ago
Installation & Hosting · by Jürgen Dietrich, 7 months ago
0 60 7 months ago
Installation & Hosting · by rappluk, 8 months ago
0 60 8 months ago
Installation & Hosting · by N, 12 months ago
3 70 12 months ago
Installation & Hosting · by Youle, 1 year ago
1 57 1 year ago