Error whnen install 11.2 "syntax error, unexpected identifier "RECIPE_PACKAGE_TYPE",

Created on 17 July 2025, 18 days ago

Can't install Drupal11.2, getting error message
Installing drupal/core-recipe-unpack (11.2.2): Extracting archive
Install of drupal/core-recipe-unpack failed
In Plugin.php line 28:
[ParseError]
syntax error, unexpected identifier "RECIPE_PACKAGE_TYPE", expecting "="
I got this same error message when I perform "composer create-project drupal/recommended-project:11.2.2 "public_html" and "composer install" , I endup getting a empty "web" folder and a "vendor" folder only. my php version is 8.4 (edited)

๐Ÿ› Bug report
Status

Active

Version

11.2 ๐Ÿ”ฅ

Component

install system

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom freelylw

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @freelylw
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia himanshu raj Noida

    I tested installing Drupal 11.2.2 with PHP 8.3 on my local setup using DDEV, and the installation completed without any errors.

    The web and vendor folders were created properly.
    Could you please confirm if you have tried the installation using PHP 8.3 as well?
    Also, are you using DDEV or some other local environment like XAMPP, Docker, etc.?

    Sharing these details could help us better understand the issue and possibly isolate the cause.

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom freelylw

    I just tried on Php8.3, exactly the same problem and error message . I am installing on a clean fresh VPS hosting account, no DDEV XAMPP or anything else.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia himanshu raj Noida

    Thanks for confirming.
    Since the issue persists on PHP 8.3 in your VPS environment, it likely relates to your serverโ€™s PHP build, extensions, or configuration.
    Please share your exact PHP version output (php -v), enabled extensions (php -m), and OS details. Checking OPcache settings or clearing Composer cache (composer clear-cache) might also help.

  • By the error it could be that the PHP version is not actually 8.4.

  • First commit to issue fork.
  • ๐Ÿ‡ช๐Ÿ‡ธSpain TornatoreMDM

    To provide more information, I received the same error when trying to do a clean install with DDEV on PHP version 8.2.22 and Composer 2.7.7.
    Upgrading to PHP version 8.3 and attempting the installation with DDEV again worked correctly.

  • ๐Ÿ‡ฎ๐Ÿ‡นItaly apaderno Brescia, ๐Ÿ‡ฎ๐Ÿ‡น
Production build 0.71.5 2024