Error Magento2 on installation

I’m trying to install algolia serach on magento2 EE 2.4.4 but i have got a lots of problem. I tried installing via composer but i receive this error:

composer require algolia/algoliasearch-magento-2

We receive an error on this patch.

Gathering patches for dependencies. This might take a minute.
  - Installing magento/module-price-permissions (100.4.1): Extracting archive
  - Applying patches for magento/module-price-permissions
    patches/composer/github-issue-35542.diff (skip composer execution for missing block name)

In RemoteFilesystem.php line 109:
                                                                                                                                                       
  [TypeError]                                                                                                                                          
  Composer\Util\RemoteFilesystem::copy(): Argument #1 ($originUrl) must be of type string, null given, called in phar:///usr/bin/composer/src/Compose  
  r/Plugin/PluginManager.php(273) : eval()'d code on line 388                                                                                          

we try appling this fix but is not working

https://github.com/magento/magento2/issues/35542                                

So we decide to manually install from github but when we try to save the id (first step) we receive this error:

Error: Class "Algolia\AlgoliaSearch\SearchClient" not found in /var/www/html/app/code/Algolia/AlgoliaSearch/Helper/AlgoliaHelper.php:80
Stack trace:
#0 /var/www/html/app/code/Algolia/AlgoliaSearch/Helper/AlgoliaHelper.php(58): Algolia\AlgoliaSearch\Helper\AlgoliaHelper->resetCredentialsFromConfig()
#1 /var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(121): Algolia\AlgoliaSearch\Helper\AlgoliaHelper->__construct(Object(Magento\Framework\App\Helper\Context), Object(Algolia\AlgoliaSearch\Helper\ConfigHelper), Object(Magento\Framework\Message\Manager), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(108): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Algolia\\Algolia...', Array)
#3 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Algolia\\Algolia...')
#4 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('Algolia\\Algolia...')
#5 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Algolia\\Algolia...')
#6 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('Algolia\\Algolia...')
#7 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(150): Magento\Framework\ObjectManager\Factory\Compiled->create('Algolia\\Algolia...')
#8 /var/www/html/vendor/magento/framework/ObjectManager/Factory/Compiled.php(79): Magento\Framework\ObjectManager\Factory\Compiled->get('Algolia\\Algolia...')
#9 /var/www/html/vendor/magento/framework/ObjectManager/ObjectManager.php(70): Magento\Framework\ObjectManager\Factory\Compiled->create('Algolia\\Algolia...')
#10 /var/www/html/vendor/magento/framework/Event/ObserverFactory.php(33): Magento\Framework\ObjectManager\ObjectManager->get('Algolia\\Algolia...')
#11 /var/www/html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(72): Magento\Framework\Event\ObserverFactory->get('Algolia\\Algolia...')
#12 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\Event\Invoker\InvokerDefault->dispatch(Array, Object(Magento\Framework\Event\Observer))
#13 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Event\Invoker\InvokerDefault\Interceptor->___callParent('dispatch', Array)
#14 /var/www/html/vendor/smile/module-debug-toolbar/Plugin/Event/InvokerPlugin.php(49): Magento\Framework\Event\Invoker\InvokerDefault\Interceptor->Magento\Framework\Interception\{closure}(Array, Object(Magento\Framework\Event\Observer))
#15 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Smile\DebugToolbar\Plugin\Event\InvokerPlugin->aroundDispatch(Object(Magento\Framework\Event\Invoker\InvokerDefault\Interceptor), Object(Closure), Array, Object(Magento\Framework\Event\Observer))
#16 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\Event\Invoker\InvokerDefault\Interceptor->Magento\Framework\Interception\{closure}(Array, Object(Magento\Framework\Event\Observer))
#17 /var/www/html/generated/code/Magento/Framework/Event/Invoker/InvokerDefault/Interceptor.php(23): Magento\Framework\Event\Invoker\InvokerDefault\Interceptor->___callPlugins('dispatch', Array, NULL)
#18 /var/www/html/vendor/magento/module-staging/Model/Event/Manager.php(97): Magento\Framework\Event\Invoker\InvokerDefault\Interceptor->dispatch(Array, Object(Magento\Framework\Event\Observer))
#19 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Staging\Model\Event\Manager->dispatch('admin_system_co...', Array)
#20 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Staging\Model\Event\Manager\Interceptor->___callParent('dispatch', Array)
#21 /var/www/html/vendor/smile/module-debug-toolbar/Plugin/Event/ManagerPlugin.php(39): Magento\Staging\Model\Event\Manager\Interceptor->Magento\Framework\Interception\{closure}('admin_system_co...', Array)
#22 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Smile\DebugToolbar\Plugin\Event\ManagerPlugin->aroundDispatch(Object(Magento\Staging\Model\Event\Manager\Interceptor), Object(Closure), 'admin_system_co...', Array)
#23 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Staging\Model\Event\Manager\Interceptor->Magento\Framework\Interception\{closure}('admin_system_co...', Array)
#24 /var/www/html/generated/code/Magento/Staging/Model/Event/Manager/Interceptor.php(23): Magento\Staging\Model\Event\Manager\Interceptor->___callPlugins('dispatch', Array, NULL)
#25 /var/www/html/generated/code/Magento/Staging/Model/Event/Manager/Proxy.php(95): Magento\Staging\Model\Event\Manager\Interceptor->dispatch('admin_system_co...', Array)
#26 /var/www/html/vendor/magento/module-config/Model/Config.php(227): Magento\Staging\Model\Event\Manager\Proxy->dispatch('admin_system_co...', Array)
#27 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Config\Model\Config->save()
#28 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Config\Model\Config\Interceptor->___callParent('save', Array)
#29 /var/www/html/vendor/magento/module-company-credit/Plugin/Config/Model/ConfigPlugin.php(102): Magento\Config\Model\Config\Interceptor->Magento\Framework\Interception\{closure}()
#30 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\CompanyCredit\Plugin\Config\Model\ConfigPlugin->aroundSave(Object(Magento\Config\Model\Config\Interceptor), Object(Closure))
#31 /var/www/html/vendor/magento/module-quick-order/Plugin/Config/Model/EnableAdvancedCheckoutPlugin.php(99): Magento\Config\Model\Config\Interceptor->Magento\Framework\Interception\{closure}()
#32 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\QuickOrder\Plugin\Config\Model\EnableAdvancedCheckoutPlugin->aroundSave(Object(Magento\Config\Model\Config\Interceptor), Object(Closure))
#33 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Config\Model\Config\Interceptor->Magento\Framework\Interception\{closure}()
#34 /var/www/html/generated/code/Magento/Config/Model/Config/Interceptor.php(23): Magento\Config\Model\Config\Interceptor->___callPlugins('save', Array, Array)
#35 /var/www/html/vendor/magento/module-config/Controller/Adminhtml/System/Config/Save.php(226): Magento\Config\Model\Config\Interceptor->save()
#36 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Config\Controller\Adminhtml\System\Config\Save->execute()
#37 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Algolia\AlgoliaSearch\Controller\Adminhtml\System\Config\Save\Interceptor->___callParent('execute', Array)
#38 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Algolia\AlgoliaSearch\Controller\Adminhtml\System\Config\Save\Interceptor->Magento\Framework\Interception\{closure}()
#39 /var/www/html/generated/code/Algolia/AlgoliaSearch/Controller/Adminhtml/System/Config/Save/Interceptor.php(23): Algolia\AlgoliaSearch\Controller\Adminhtml\System\Config\Save\Interceptor->___callPlugins('execute', Array, Array)
#40 /var/www/html/vendor/magento/framework/App/Action/Action.php(111): Algolia\AlgoliaSearch\Controller\Adminhtml\System\Config\Save\Interceptor->execute()
#41 /var/www/html/vendor/magento/module-backend/App/AbstractAction.php(151): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#42 /var/www/html/vendor/magento/module-config/Controller/Adminhtml/System/AbstractConfig.php(69): Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http))
#43 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Config\Controller\Adminhtml\System\AbstractConfig->dispatch(Object(Magento\Framework\App\Request\Http))
#44 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Algolia\AlgoliaSearch\Controller\Adminhtml\System\Config\Save\Interceptor->___callParent('dispatch', Array)
#45 /var/www/html/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(145): Algolia\AlgoliaSearch\Controller\Adminhtml\System\Config\Save\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#46 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Algolia\AlgoliaSearch\Controller\Adminhtml\System\Config\Save\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http))
#47 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Algolia\AlgoliaSearch\Controller\Adminhtml\System\Config\Save\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#48 /var/www/html/generated/code/Algolia/AlgoliaSearch/Controller/Adminhtml/System/Config/Save/Interceptor.php(32): Algolia\AlgoliaSearch\Controller\Adminhtml\System\Config\Save\Interceptor->___callPlugins('dispatch', Array, Array)
#49 /var/www/html/vendor/magento/framework/App/FrontController.php(245): Algolia\AlgoliaSearch\Controller\Adminhtml\System\Config\Save\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#50 /var/www/html/vendor/magento/framework/App/FrontController.php(212): Magento\Framework\App\FrontController->getActionResponse(Object(Algolia\AlgoliaSearch\Controller\Adminhtml\System\Config\Save\Interceptor), Object(Magento\Framework\App\Request\Http))
#51 /var/www/html/vendor/magento/framework/App/FrontController.php(147): Magento\Framework\App\FrontController->processRequest(Object(Magento\Framework\App\Request\Http), Object(Algolia\AlgoliaSearch\Controller\Adminhtml\System\Config\Save\Interceptor))
#52 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http))
#53 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array)
#54 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http))
#55 /var/www/html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array)
#56 /var/www/html/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
#57 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->launch()
#58 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent('launch', Array)
#59 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}()
#60 /var/www/html/generated/code/Magento/Framework/App/Http/Interceptor.php(23): Magento\Framework\App\Http\Interceptor->___callPlugins('launch', Array, Array)
#61 /var/www/html/vendor/magento/framework/App/Bootstrap.php(264): Magento\Framework\App\Http\Interceptor->launch()
#62 /var/www/html/pub/index.php(30): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))
#63 {main}

How can we have algolia working?

Hi @g.barbera

I see you’ve also opened a ticket with support. They should be able to help you with any specific problems, but generally, make sure you are following these steps:

composer require algolia/algoliasearch-magento-2 should also download and install the php client.