AJAX HTTP error occurred during installation

Created on 9 January 2025, 4 months ago

The error message

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /drupal-cms/web/core/install.php?rewrite=ok&continue=1&profile=drupal_cms_installer&langcode=en&recipes%5B0%5D=drupal_cms_starter&site_name=Lead&id=1&op=do_nojs&op=do
StatusText: OK
ResponseText: Symfony\Component\DependencyInjection\Exception\RuntimeException: Cannot autowire service "PhpTuf\ComposerStager\API\Exception\PreconditionException": argument "$precondition" of method "__construct()" references interface "PhpTuf\ComposerStager\API\Precondition\Service\PreconditionInterface" but no such service exists. You should maybe alias this interface to one of these existing services: "PhpTuf\ComposerStager\Internal\Precondition\Service\ActiveAndStagingDirsAreDifferent", "PhpTuf\ComposerStager\Internal\Precondition\Service\ActiveDirExists", "PhpTuf\ComposerStager\Internal\Precondition\Service\ActiveDirIsReady", "PhpTuf\ComposerStager\Internal\Precondition\Service\ActiveDirIsWritable", "PhpTuf\ComposerStager\Internal\Precondition\Service\BeginnerPreconditions", "PhpTuf\ComposerStager\Internal\Precondition\Service\CleanerPreconditions", "PhpTuf\ComposerStager\Internal\Precondition\Service\CommitterPreconditions", "PhpTuf\ComposerStager\Internal\Precondition\Service\CommonPreconditions", "PhpTuf\ComposerStager\Internal\Precondition\Service\ComposerIsAvailable", "PhpTuf\ComposerStager\Internal\Precondition\Service\HostSupportsRunningProcesses", "PhpTuf\ComposerStager\Internal\Precondition\Service\NoAbsoluteSymlinksExist", "PhpTuf\ComposerStager\Internal\Precondition\Service\NoHardLinksExist", "PhpTuf\ComposerStager\Internal\Precondition\Service\NoLinksExistOnWindows", "PhpTuf\ComposerStager\Internal\Precondition\Service\NoNestingOnWindows", "PhpTuf\ComposerStager\Internal\Precondition\Service\NoSymlinksPointOutsideTheCodebase", "PhpTuf\ComposerStager\Internal\Precondition\Service\NoUnsupportedLinksExist", "PhpTuf\ComposerStager\Internal\Precondition\Service\RsyncIsAvailable", "PhpTuf\ComposerStager\Internal\Precondition\Service\StagerPreconditions", "PhpTuf\ComposerStager\Internal\Precondition\Service\StagingDirDoesNotExist", "PhpTuf\ComposerStager\Internal\Precondition\Service\StagingDirExists", "PhpTuf\ComposerStager\Internal\Precondition\Service\StagingDirIsReady", "PhpTuf\ComposerStager\Internal\Precondition\Service\StagingDirIsWritable". in Symfony\Component\DependencyInjection\Compiler\DefinitionErrorExceptionPass->process() (line 48 of C:\laragon\www\drupal-cms\drupal-cms\vendor\symfony\dependency-injection\Compiler\DefinitionErrorExceptionPass.php).

Steps to reproduce

1. During a normal installation of the Drupal CMS ~1.0.0-rc2
2. Due to this error, "TypeError: Cannot assign null to property Drupal\Core\Recipe\InputConfigurator::$values of type array in unserialize() (line 68 of profiles/drupal_cms_installer/src/RecipeLoader.php)."
had to remove the cache from "/web/profiles/drupal_cms_installer/cache" and after waiting for at least 10 minutes for the installation the error appears during the final stages. (I don't think deleting the cache caused this, but just putting this out there...)

🐛 Bug report
Status

Active

Component

Track: Installer

Created by

🇰🇪Kenya cholasni

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

Comments & Activities

  • Issue created by @cholasni
  • 🇺🇸United States phenaproxima Massachusetts

    Could you send your composer.lock file? (Don't paste it into a comment, it's huge, but you can attach it to a comment as an upload.) I have a possible theory on this one...

  • 🇰🇪Kenya cholasni

    I've checked the directory for the missing service and have found that it exists

    Cannot autowire service "PhpTuf\ComposerStager\API\Exception\PreconditionException": argument "$precondition" of method "__construct()" references interface "PhpTuf\ComposerStager\API\Precondition\Service\PreconditionInterface" but no such service exists
    

    I've attached the composer.lock it is attached, had to change it to txt file for it to be accepted

  • 🇰🇪Kenya cholasni

    Still not able to get past the Installer page still receiving the same error;

    Tried a fresh install and downgraded to version 11.1.0 the error still persists.
    I would love to give Drupal CMS RC a try but unfortunately I can't get it installed.

    Anyone with a fix?

  • 🇺🇸United States phenaproxima Massachusetts

    Give this a try...

    rm -rf web/modules/contrib/automatic_updates/package_manager

    Then try installing again?

  • 🇮🇳India rohan_singh India

    Hi @phenaproxima,

    Getting the same issue. Attaching the screenshot for reference.

    Tried running,
    rm -rf web/modules/contrib/automatic_updates/package_manager
    and installing again.

    Getting a different error this time,

    Error: Call to a member function getPath() on null in drupal_cms_installer_theme_registry_alter()

  • 🇺🇸United States phenaproxima Massachusetts

    To deal with the TypeError, please see 🐛 Installer is broken in RC2 since release of 11.1.1 Active (delete the web/profiles/drupal_cms_installer/cache directory before trying the installation). And please be sure you're using Drupal 11.1.1. What happens then?

  • 🇺🇸United States phenaproxima Massachusetts
  • 🇰🇪Kenya cholasni

    Much thanks phenaproxima
    Finally the install was a success, I can now test it.

    Here's what I did...
    I deleted everything and restarted the install a fresh
    1. composer install till everything the files and autoloader files generated.
    2. Deleted the web/profiles/drupal_cms_installer/cache directory.
    3. Deleted the web/modules/contrib/automatic_updates/package_manager directory as directed
    4. Began the installation of the Drupal CMS RC without any major issues.

    I'm still testing it and will update my experience accordingly.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024