Skip to content

Magento 2.4.6 installation issue

I have a problem with Magento 2.4.6 installation. Any idea how to fix this?

Xampp: 8.2.12, Php: 8.2.12, MariaDB: 10.4.32, Elasticsearch: 8.11

[Progress: 461 / 927]
Installing search configuration...

There is an error in C:xampphtdocsmagento2-sample-data-2.4.6appcodeMagentoElasticsearch7ModelClientElasticsearch.php at line: 102
Class "ElasticsearchClientBuilder" not found#0 C:xampphtdocsmagento2-sample-data-2.4.6appcodeMagentoElasticsearch7ModelClientElasticsearch.php(115): MagentoElasticsearch7ModelClientElasticsearch->getElasticsearchClient()
#1 C:xampphtdocsmagento2-sample-data-2.4.6appcodeMagentoElasticsearch7ModelClientElasticsearch.php(129): MagentoElasticsearch7ModelClientElasticsearch->ping()
#2 C:xampphtdocsmagento2-sample-data-2.4.6appcodeMagentoElasticsearchSetupValidator.php(41): MagentoElasticsearch7ModelClientElasticsearch->testConnection()
#3 C:xampphtdocsmagento2-sample-data-2.4.6appcodeMagentoSearchModelSearchEngineValidator.php(63): MagentoElasticsearchSetupValidator->validate()
#4 C:xampphtdocsmagento2-sample-data-2.4.6setupsrcMagentoSetupModelSearchConfig.php(79): MagentoSearchModelSearchEngineValidator->validate()
#5 C:xampphtdocsmagento2-sample-data-2.4.6setupsrcMagentoSetupModelSearchConfig.php(69): MagentoSetupModelSearchConfig->validateSearchEngine()
#6 C:xampphtdocsmagento2-sample-data-2.4.6setupsrcMagentoSetupModelInstaller.php(1210): MagentoSetupModelSearchConfig->saveConfiguration(Array)
#7 [internal function]: MagentoSetupModelInstaller->installSearchConfiguration(Array)
#8 C:xampphtdocsmagento2-sample-data-2.4.6setupsrcMagentoSetupModelInstaller.php(388): call_user_func_array(Array, Array)
#9 C:xampphtdocsmagento2-sample-data-2.4.6setupsrcMagentoSetupConsoleCommandInstallCommand.php(237): MagentoSetupModelInstaller->install(Array)
#10 C:xampphtdocsmagento2-sample-data-2.4.6vendorsymfonyconsoleCommandCommand.php(298): MagentoSetupConsoleCommandInstallCommand->execute(Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))
#11 C:xampphtdocsmagento2-sample-data-2.4.6vendorsymfonyconsoleApplication.php(1040): SymfonyComponentConsoleCommandCommand->run(Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))
#12 C:xampphtdocsmagento2-sample-data-2.4.6vendorsymfonyconsoleApplication.php(301): SymfonyComponentConsoleApplication->doRunCommand(Object(MagentoSetupConsoleCommandInstallCommand), Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))
#13 C:xampphtdocsmagento2-sample-data-2.4.6libinternalMagentoFrameworkConsoleCli.php(116): SymfonyComponentConsoleApplication->doRun(Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))
#14 C:xampphtdocsmagento2-sample-data-2.4.6vendorsymfonyconsoleApplication.php(171): MagentoFrameworkConsoleCli->doRun(Object(SymfonyComponentConsoleInputArgvInput), Object(SymfonyComponentConsoleOutputConsoleOutput))
#15 C:xampphtdocsmagento2-sample-data-2.4.6binmagento(23): SymfonyComponentConsoleApplication->run()
#16 {main}