Install Fails on WAMP server with php 8.3

Created on 7 August 2024, 5 months ago

Problem/Motivation

Fresh install wampserver newest version with mysql 8, PHP 8.3.6 I got error in step 5

Steps to reproduce

Install drupal with profile standard

Step 5 i got errors
An AJAX HTTP request terminated abnormally.
Debugging information follows.
Path: /core/install.php?rewrite=ok&langcode=en&profile=standard&id=1&op=do_nojs&op=do
StatusText: error
ReadyState: 0

I search in log but nothing special
PHP Deprecated: Unknown: assert.active INI setting is deprecated in Unknown on line 0

Proposed resolution

I test the installation with php 8.2 everything is ok, installation is successful.

I change the PHP version 8.2 in wampserver and change the php mininum in the Drupal.php file
const MINIMUM_PHP = '8.2.0';

This problem exists in PHP 8.3 with drupal 10 when running the action (VBO) then get the same error.

I think there is something wrong in the functions callback_batch with PHP 8.3 is kind of check strictement of variable datatype argument or return. (PHP 8.2 ignore)

๐Ÿ› Bug report
Status

Active

Version

11.0 ๐Ÿ”ฅ

Component
Batchย  โ†’

Last updated 3 days ago

  • Maintained by
  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom @John Cook
Created by

๐Ÿ‡ซ๐Ÿ‡ทFrance lazzyvn paris

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

Comments & Activities

  • Issue created by @lazzyvn
  • Status changed to Postponed: needs info 5 months ago
  • WAMP has usually been troublesome with Drupal which is why most of the community switched to Lando or DDEV.

    What is the specific WAMP configuration needed to reproduce this? Are max_allowed_packet and other requirements values set up?

  • ๐Ÿ‡ซ๐Ÿ‡ทFrance lazzyvn paris

    I use wamp because it is very easy to switch php/mysql version. It practices managing 30 mixed projects drupal 7, 9, 10, opencart, prestashop, wp...
    Wamp is created by French Dev, so it is very easy to install and use without special configuration. After installation, we just need to create vhost and restart DNS

    max_allowed_packet = 64M but you can change to 1G

  • 64M should be large enough. Perhaps max_allowed_packet isnโ€™t the problem. Did mysql log an error?

  • Other WAMP users:

    Can someone reproduce this?

  • ๐Ÿ‡ซ๐Ÿ‡ทFrance lazzyvn paris
  • A related consideration is that Drupal has no automated testing on Windows ๐ŸŒฑ [policy, no patch] Drop support for Windows in production in Drupal 11 Active .

  • ๐Ÿ‡ธ๐Ÿ‡ชSweden carolalind Nybro

    I get the same error here when trying to install drupal 11 on WAMP. (php 8.3.9, mariadb 10.6.15, apache 2.4.62).

    I really do hope not that it won't be possible to use WAMP for d11...

  • ๐Ÿ‡ฎ๐Ÿ‡ฑIsrael ntigh52

    wamp:
    apache 2.4.54.2
    mysql 8.0.31
    php 8.3.11

    same issue
    http://localhost/local/install-dir/web/core/install.php
    ERR_CONNECTION_RESET

    An AJAX HTTP request terminated abnormally.
    Debugging information follows.
    Path: /local/install-dir/web/core/install.php?rewrite=ok&langcode=en&profile=demo_umami&id=1&op=do_nojs&op=do
    StatusText: error
    ReadyState: 0
    
    Drupal\Core\Config\UnmetDependenciesException: Configuration objects provided by <em class="placeholder">demo_umami</em> have unmet dependencies: <em class="placeholder">block.block.umami_account_menu (block), block.block.umami_help (help, block), block.block.umami_languageswitcher (language, block), block.block.umami_search (search, block), block.block.umami_views_block__articles_aside_block_1 (node, views, block), block.block.umami_views_block__promoted_items_block_1 (views, block), block_content.type.banner_block (block_content), contact.form.feedback (contact), core.entity_form_display.block_content.banner_block.default (link, media_library), core.entity_form_display.block_content.basic.default (text), core.entity_form_display.media.audio.default (file, path), core.entity_form_display.media.audio.media_library (core.entity_form_mode.media.media_library), core.entity_form_display.media.image.default (image.style.thumbnail, image, path), core.entity_form_display.media.image.media_library (core.entity_form_mode.media.media_library, image.style.thumbnail, image), core.entity_form_display.media.remote_video.default (media, path), core.entity_form_display.node.article.default (content_moderation, media_library, path, text), core.entity_form_display.node.page.default (content_moderation, path, text), core.entity_form_display.user.user.default (image.style.thumbnail, image), core.entity_view_display.block_content.banner_block.default (link), core.entity_view_display.media.audio.default (file), core.entity_view_display.media.audio.media_library (core.entity_view_mode.media.media_library, image.style.thumbnail, image), core.entity_view_display.media.image.default (responsive_image), core.entity_view_display.media.image.media_library (core.entity_view_mode.media.media_library, image.style.medium, image), core.entity_view_display.media.image.medium_8_7 (image, layout_builder), core.entity_view_display.media.image.responsive_3x2 (layout_builder, responsive_image), core.entity_view_display.media.remote_video.default (media), core.entity_view_display.node.article.default (layout_builder, text), core.entity_view_display.node.article.full (core.entity_view_mode.node.full, layout_builder, layout_discovery, text), core.entity_view_display.node.article.rss (core.entity_view_mode.node.rss), core.entity_view_display.node.article.teaser (core.entity_view_mode.node.teaser, text), core.entity_view_display.node.recipe.card (options), core.entity_view_display.node.recipe.default (options, text), core.entity_view_display.node.recipe.full (core.entity_view_mode.node.full, layout_builder, layout_discovery, options, text, views), core.entity_view_display.node.recipe.teaser (core.entity_view_mode.node.teaser), core.entity_view_mode.node.card (node), editor.editor.basic_html (ckeditor5, editor), field.field.block_content.banner_block.field_content_link (link, field), field.field.block_content.banner_block.field_media_image (field), field.field.block_content.basic.body (field.storage.block_content.body, text, field), field.field.block_content.disclaimer_block.field_copyright (text, field), field.field.media.audio.field_media_audio_file (file, field), field.field.media.document.field_media_document (file, media, field), field.field.media.image.field_media_image (image, media, field), field.field.node.article.body (field.storage.node.body, text, field), field.field.node.article.layout_builder__layout (layout_builder, field), field.field.node.recipe.field_difficulty (options, field), field.field.user.user.user_picture (image, field), field.storage.block_content.field_content_link (block_content, link, field), field.storage.block_content.field_copyright (block_content, text, field), field.storage.block_content.field_media_image (block_content, media, field), field.storage.block_content.field_summary (block_content, field), field.storage.media.field_media_document (file, media, media, field), field.storage.media.field_media_image (file, image, media, media, field), field.storage.media.field_media_oembed_video (media, field), field.storage.node.field_cooking_time (node, field), field.storage.node.field_difficulty (node, options, field), field.storage.node.field_media_image (media, node, field), field.storage.node.field_recipe_category (node, taxonomy, field), field.storage.node.field_recipe_instruction (node, text, field), field.storage.node.layout_builder__layout (layout_builder, node, field), field.storage.user.user_picture (file, image, field), filter.format.basic_html (editor, media, filter), filter.format.restricted_html (filter), image.style.large_21_9 (image), language.content_settings.block_content.banner_block (content_translation, language), language.entity.es (language), node.type.recipe (menu_ui, node), taxonomy.vocabulary.recipe_category (taxonomy), user.role.anonymous (contact, filter, media, search), user.role.authenticated (contact, filter, media, search, shortcut), user.role.author (content_moderation, contextual, file, layout_builder, node, path, taxonomy, toolbar), user.role.editor (content_moderation, content_translation, contextual, file, layout_builder, node, path, shortcut, taxonomy, toolbar), views.view.articles_aside (node, views), views.view.frontpage (core.entity_view_mode.node.rss, node, views), views.view.recipe_collections (taxonomy, views), views.view.taxonomy_term (node, taxonomy, views), workflows.workflow.editorial (content_moderation, workflows)</em> in Drupal\Core\Config\UnmetDependenciesException::create() (line 100 of core\lib\Drupal\Core\Config\UnmetDependenciesException.php).
    
    Drupal\Core\Config\UnmetDependenciesException::create('demo_umami', Array) (Line: 527)
    Drupal\Core\Config\ConfigInstaller->checkConfigurationToInstall('module', 'demo_umami') (Line: 132)
    Drupal\Core\ProxyClass\Config\ConfigInstaller->checkConfigurationToInstall('module', 'demo_umami') (Line: 199)
    Drupal\Core\Extension\ModuleInstaller->install(Array, ) (Line: 83)
    Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, ) (Line: 1668)
    install_install_profile(Array) (Line: 695)
    install_run_task(Array, Array) (Line: 572)
    install_run_tasks(Array, NULL) (Line: 121)
    install_drupal(Object) (Line: 48)
    

    php.ini

    [18-Sep-2024 11:52:33 UTC] PHP Deprecated:  Unknown: assert.active INI setting is deprecated in Unknown on line 1629513076
    [18-Sep-2024 11:52:35 UTC] Drupal\Core\Config\UnmetDependenciesException: Configuration objects provided by <em class="placeholder">demo_umami</em> have unmet dependencies: <em class="placeholder">block.block.umami_account_menu (block), block.block.umami_help (help, block), block.block.umami_languageswitcher (language, block), block.block.umami_search (search, block), block.block.umami_views_block__articles_aside_block_1 (node, views, block), block.block.umami_views_block__promoted_items_block_1 (views, block), block_content.type.banner_block (block_content), contact.form.feedback (contact), core.entity_form_display.block_content.banner_block.default (link, media_library), core.entity_form_display.block_content.basic.default (text), core.entity_form_display.media.audio.default (file, path), core.entity_form_display.media.audio.media_library (core.entity_form_mode.media.media_library), core.entity_form_display.media.image.default (image.style.thumbnail, image, path), core.entity_form_display.media.image.media_library (core.entity_form_mode.media.media_library, image.style.thumbnail, image), core.entity_form_display.media.remote_video.default (media, path), core.entity_form_display.node.article.default (content_moderation, media_library, path, text), core.entity_form_display.node.page.default (content_moderation, path, text), core.entity_form_display.user.user.default (image.style.thumbnail, image), core.entity_view_display.block_content.banner_block.default (link), core.entity_view_display.media.audio.default (file), core.entity_view_display.media.audio.media_library (core.entity_view_mode.media.media_library, image.style.thumbnail, image), core.entity_view_display.media.image.default (responsive_image), core.entity_view_display.media.image.media_library (core.entity_view_mode.media.media_library, image.style.medium, image), core.entity_view_display.media.image.medium_8_7 (image, layout_builder), core.entity_view_display.media.image.responsive_3x2 (layout_builder, responsive_image), core.entity_view_display.media.remote_video.default (media), core.entity_view_display.node.article.default (layout_builder, text), core.entity_view_display.node.article.full (core.entity_view_mode.node.full, layout_builder, layout_discovery, text), core.entity_view_display.node.article.rss (core.entity_view_mode.node.rss), core.entity_view_display.node.article.teaser (core.entity_view_mode.node.teaser, text), core.entity_view_display.node.recipe.card (options), core.entity_view_display.node.recipe.default (options, text), core.entity_view_display.node.recipe.full (core.entity_view_mode.node.full, layout_builder, layout_discovery, options, text, views), core.entity_view_display.node.recipe.teaser (core.entity_view_mode.node.teaser), core.entity_view_mode.node.card (node), editor.editor.basic_html (ckeditor5, editor), field.field.block_content.banner_block.field_content_link (link, field), field.field.block_content.banner_block.field_media_image (field), field.field.block_content.basic.body (field.storage.block_content.body, text, field), field.field.block_content.disclaimer_block.field_copyright (text, field), field.field.media.audio.field_media_audio_file (file, field), field.field.media.document.field_media_document (file, media, field), field.field.media.image.field_media_image (image, media, field), field.field.node.article.body (field.storage.node.body, text, field), field.field.node.article.layout_builder__layout (layout_builder, field), field.field.node.recipe.field_difficulty (options, field), field.field.user.user.user_picture (image, field), field.storage.block_content.field_content_link (block_content, link, field), field.storage.block_content.field_copyright (block_content, text, field), field.storage.block_content.field_media_image (block_content, media, field), field.storage.block_content.field_summary (block_content, field), field.storage.media.field_media_document (file, media, media, field), field.storage.media.field_media_image (file, image, media, media, field), field.storage.media.field_media_oembed_video (media, field), field.storage.node.field_cooking_time (node, field), field.storage.node.field_difficulty (node, options, field), field.storage.node.field_media_image (media, node, field), field.storage.node.field_recipe_category (node, taxonomy, field), field.storage.node.field_recipe_instruction (node, text, field), field.storage.node.layout_builder__layout (layout_builder, node, field), field.storage.user.user_picture (file, image, field), filter.format.basic_html (editor, media, filter), filter.format.restricted_html (filter), image.style.large_21_9 (image), language.content_settings.block_content.banner_block (content_translation, language), language.entity.es (language), node.type.recipe (menu_ui, node), taxonomy.vocabulary.recipe_category (taxonomy), user.role.anonymous (contact, filter, media, search), user.role.authenticated (contact, filter, media, search, shortcut), user.role.author (content_moderation, contextual, file, layout_builder, node, path, taxonomy, toolbar), user.role.editor (content_moderation, content_translation, contextual, file, layout_builder, node, path, shortcut, taxonomy, toolbar), views.view.articles_aside (node, views), views.view.frontpage (core.entity_view_mode.node.rss, node, views), views.view.recipe_collections (taxonomy, views), views.view.taxonomy_term (node, taxonomy, views), workflows.workflow.editorial (content_moderation, workflows)</em> in C:\wamp64\www\local\install-dir\web\core\lib\Drupal\Core\Config\UnmetDependenciesException.php on line 100 #0 C:\wamp64\www\local\install-dir\web\core\lib\Drupal\Core\Config\ConfigInstaller.php(527): Drupal\Core\Config\UnmetDependenciesException::create('demo_umami', Array)
    #1 C:\wamp64\www\local\install-dir\web\core\lib\Drupal\Core\ProxyClass\Config\ConfigInstaller.php(132): Drupal\Core\Config\ConfigInstaller->checkConfigurationToInstall('module', 'demo_umami')
    #2 C:\wamp64\www\local\install-dir\web\core\lib\Drupal\Core\Extension\ModuleInstaller.php(199): Drupal\Core\ProxyClass\Config\ConfigInstaller->checkConfigurationToInstall('module', 'demo_umami')
    #3 C:\wamp64\www\local\install-dir\web\core\lib\Drupal\Core\ProxyClass\Extension\ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array, false)
    #4 C:\wamp64\www\local\install-dir\web\core\includes\install.core.inc(1668): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, false)
    #5 C:\wamp64\www\local\install-dir\web\core\includes\install.core.inc(695): install_install_profile(Array)
    #6 C:\wamp64\www\local\install-dir\web\core\includes\install.core.inc(572): install_run_task(Array, Array)
    #7 C:\wamp64\www\local\install-dir\web\core\includes\install.core.inc(121): install_run_tasks(Array, NULL)
    #8 C:\wamp64\www\local\install-dir\web\core\install.php(48): install_drupal(Object(Composer\Autoload\ClassLoader))
    #9 {main}
    
  • Prove you set max_allowed_packet on the database server high enough per Drupal's requirements. And do yourself a favor and use DDEV, which is a modern system that is set up to run Drupal.

  • ๐Ÿ‡จ๐Ÿ‡ณChina zhiqiang.qiu

    same issue with mamp pro 5.0.6 + windows 10 + php 8.3.1 + mysql 8.0.38, can't finish install, can't explore drupal 11,

    This is urgent for many people in similar situations

  • These errors seem like the platform isnโ€™t set up for Drupalโ€™s requirements. As far as I know very, very few developers of Drupal itself use MAMP or WAMP in 2024. So those that do must analyze these tools on a technical level.

  • ๐Ÿ‡จ๐Ÿ‡ณChina zhiqiang.qiu

    I use mamp (change mysql 5 port to 3307 and disable) + install mysql 8 separately, so it should meet the installation requirements of drupal 11. These errors seem more like instability or bugs in the drupal 11 ajax system. I'm not sure, because when I encounter these errors, I refresh the page and try to upload again, it succeeds. It's very strange.

  • Is mysql 8 set up for Drupal? These errors sound like the max_allowed_packet being set too low or similar. People have complained about this issue over time but in some cases we have not been given definitive information that leads to a solution. I am linking this issue to one of the original reports of the same.

  • ๐Ÿ‡ซ๐Ÿ‡ทFrance lazzyvn paris

    No, it's not as I mentioned above. Drupal 10, 11 installs fine with PHP 8.2, same database, same configuration. I think it comes from php8.3 is strictly with data type.

  • Compare the phpinfo pages of each PHP version on MAMP with a diff program and report back.

    Are you experiencing the same error these other people reported?

  • ๐Ÿ‡ซ๐Ÿ‡ทFrance lazzyvn paris

    I certainly did. I use the same php.ini for both 8.2 and 8.3. then I installed Drupal 10.3 or 11, it gives a fatal error (batch problem).

    To install Drupal 11 It must down require with php8.2, just change
    const MINIMUM_PHP = '8.2.0'; // default '8.3.0'
    it will work fine to the end of installation, but that's not the point.

  • ๐Ÿ‡จ๐Ÿ‡ณChina zhiqiang.qiu

    Yes, I just forcibly modified it to 8.2 and installed drupal 11, and there were no errors when upload file or image.

    So It's close to the truth now :)

  • Can you prove the PHP runtime configuration is just about identical by showing the diff?

    There is already an issue for the thing @lazzyvn reported, which is ๐Ÿ“Œ Remove mentions of assert.active from .htaccess Needs work .

    Please continue to provide technical information

  • ๐Ÿ‡ซ๐Ÿ‡ทFrance onewomanbiz

    I would like to thank previous contributors for sharing their workaround for installation of the latest Drupal on Wamp.

    Indeed, requiring PHP 8.2 in lieu of 8.3 makes installation go successfully.

    Concerning the use of WAMP, I also find it very practical and easy to use for client dev sites.

  • As I said in comment 17, it would be nice if someone would compare the phpinfo pages of each PHP version on MAMP with a diff program and report back. That will probably explain the cause of your problems in PHP 8.3 with these platforms.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States nicxvan

    Just commenting to say it's simple to change php or even mysql or mariadb versions in ddev too.

  • ๐Ÿ‡ช๐Ÿ‡ธSpain davuko

    Hi everyone. I was also getting this error message. I'm working locally on Windows with Laragon, using Apache-2.4.62, PHP-8.3.13 and MySQL-8.0.40.
    I managed to get rid of this error message with some settings in php.ini. Here they are:

    --------------------------------------------
    realpath_cache_size = 10M
    memory_limit = 4G
    --------------------------------------------

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium ericvl

    Has nothing to do with WAMPP alone. Installing on XAMPP gives the same result.
    And also not with Drupal 11. Installing D10.3 doesn't work too.
    Only the move from PHP 8.2 to 8.3 is probably the reason.
    Is ofcourse anouying for all those that want to install Drupal.

  • ๐Ÿ‡ง๐Ÿ‡ชBelgium ericvl

    Hello,
    I found a tweak to be able to install Drupal on a local system:
    In the root folder of your site there is a .htaccess file, open it in a editor and change the lines around line #30 from

    <IfModule mod_php.c>
       php_value assert.active                   0
    </IfModule>

    to

    <IfModule mod_php.c>
    #  php_value assert.active                   0
    </IfModule>

    On my XAMPP local system it works. You can install Drupal again. I tested it with D10.3.10.
    After installing, you could maybe edit the file again to the old version.

  • same issue
    Windows 10, WampServer 3.3.7 php 8.3.14


    # php_value assert.active 0

    works!

Production build 0.71.5 2024