Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration Check error when ElasticSearch enabled #1668

Open
Monica-Wood opened this issue Jan 3, 2025 · 0 comments
Open

Configuration Check error when ElasticSearch enabled #1668

Monica-Wood opened this issue Jan 3, 2025 · 0 comments

Comments

@Monica-Wood
Copy link
Contributor

Version: 2.0 (Master branch)

When you go to the configuration check under administration and you are using elasticsearch as the searchengine, the following error is thrown:

Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, Zend_Registry given in /var/www/providence/vendor/magento/zendframework1/library/Zend/Registry.php:207 Stack trace: #0 
/var/www/providence/vendor/magento/zendframework1/library/Zend/Registry.php(183): Zend_Registry->offsetExists() #1 
/var/www/providence/vendor/magento/zendframework1/library/Zend/Validate/Abstract.php(419): Zend_Registry::isRegistered() #2 
/var/www/providence/vendor/magento/zendframework1/library/Zend/Validate/Abstract.php(376): Zend_Validate_Abstract::getDefaultTranslator() #3 
/var/www/providence/vendor/magento/zendframework1/library/Zend/Validate/Abstract.php(218): Zend_Validate_Abstract->getTranslator() #4 
/var/www/providence/vendor/magento/zendframework1/library/Zend/Validate/Abstract.php(294): Zend_Validate_Abstract->_createMessage() #5 
/var/www/providence/vendor/magento/zendframework1/library/Zend/Validate/Hostname.php(1860): Zend_Validate_Abstract->_error() #6 
/var/www/providence/vendor/magento/zendframework1/library/Zend/Uri/Http.php(445): Zend_Validate_Hostname->isValid() #7 
/var/www/providence/vendor/magento/zendframework1/library/Zend/Uri/Http.php(277): Zend_Uri_Http->validateHost() #8 
/var/www/providence/vendor/magento/zendframework1/library/Zend/Uri/Http.php(154): Zend_Uri_Http->valid() #9 
/var/www/providence/vendor/magento/zendframework1/library/Zend/Uri.php(143): Zend_Uri_Http->__construct() #10 
/var/www/providence/vendor/magento/zendframework1/library/Zend/Http/Client.php(312): Zend_Uri::factory() #11 
/var/www/providence/app/lib/Plugins/SearchEngine/ElasticSearchConfigurationSettings.php(141): Zend_Http_Client->setUri() #12 
/var/www/providence/app/lib/Plugins/SearchEngine/ElasticSearchConfigurationSettings.php(118): ElasticSearchConfigurationSettings->_checkElasticSearchRunning() #13 
/var/www/providence/app/lib/Search/ASearchConfigurationSettings.php(73): ElasticSearchConfigurationSettings->checkSetting() #14 
/var/www/providence/app/lib/Plugins/SearchEngine/ElasticSearchConfigurationSettings.php(85): ASearchConfigurationSettings->__construct() #15 
/var/www/providence/app/lib/Search/SearchEngine.php(1096): ElasticSearchConfigurationSettings->__construct() #16 
/var/www/providence/app/controllers/administrate/setup/ConfigurationCheckController.php(49): SearchEngine::checkPluginConfiguration() #17 
/var/www/providence/app/lib/Controller/RequestDispatcher.php(289): ConfigurationCheckController->DoCheck() #18 
/var/www/providence/app/lib/Controller/AppController.php(108): RequestDispatcher->dispatch() #19 
/var/www/providence/index.php(137): AppController->dispatch() #20 {main} thrown in 
/var/www/providence/vendor/magento/zendframework1/library/Zend/Registry.php on line 207

Assuming a PHP8 incompatability with the zend framework 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant