Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

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

first-time

Solved by Kai View solution

Started by Kai 2 years ago · 2 replies · 664 views
2 years 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?

2 years ago Solution

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

2 years 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 David Meissner, 9 hours ago
0 17 9 hours ago
Installation & Hosting · by Anthony J Cervo, 5 days ago
3 113 3 days ago
Installation & Hosting · by motorambler, 2 months ago
9 785 4 weeks ago
Installation & Hosting · by jeremycherfas, 1 month ago
1 394 1 month ago
Installation & Hosting · by antoinep, 4 months ago
8 1229 4 months ago