Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable php extensions Array when installing Drupal on Windows 10

Tags:

php

drupal

I've installed drupal-8.7.2 & php 7.3.6 (Thread Safe).

In php.ini, I uncommented this line:

extension=pdo_sqlite

When I run this from the command prompt

php core/scripts/drupal quick-start demo_umami

I get this error:

3/18 [====>-----------------------]
Verify requirements

In install.core.inc line 2287:

  PHP extensions: Disabled

  Array

I've also tried php 7.3.6 (Non Thread Safe) and 7.2.19 (Non Thread Safe & Thread Safe) enter image description here

I've also tried the command

php core/scripts/drupal quick-start

And then when prompted, I enter demo_umami, and then I get the above error again.

like image 792
dstrube Avatar asked Mar 31 '26 22:03

dstrube


1 Answers

This error actually means you are missing a PHP extension, but it is badly formatted when rendered to CLI (see this issue), hence the Array() displayed instead of the extension name.

The missing library is probably 'gd', you can check PHP requirements (core/modules/system/system.install) for your drupal installation by running DrupalConsole command drupal check, or manually with php -m.

The following must be installed :

$required_extensions = [
    'date',
    'dom',
    'filter',
    'gd',
    'hash',
    'json',
    'pcre',
    'pdo',
    'session',
    'SimpleXML',
    'SPL',
    'tokenizer',
    'xml',
];

It has not always been the case but core/composer.json actually reflects the state of these PHP extensions, so running composer create-project might help to manage this.

like image 179
EricLavault Avatar answered Apr 02 '26 12:04

EricLavault



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!