We have upgraded to 2.4.7-p3 | Magento Cloud.
Algolia extension is installed.
While deployment, getting the following warning message.
Validating configuration files
W: algolia: The key is not present in the schema
The site and Algolia search are working fine.
Please check.
Hello @kashif_mkk
The warning you're seeing during deployment, "W: algolia: The key is not present in the schema", typically occurs when there's a configuration issue related to the Algolia extension in your Magento Cloud environment. The key could either be missing from the Algolia configuration, or there might be a mismatch in the configuration files.
Magento Admin panel
Go to your Magento Admin panel and navigate to Stores > Configuration > Algolia Search. Ensure that all the required fields, such as API Key, Application ID, and Index Prefix, are filled correctly.
Review env.php File
On your Magento instance, check the app/etc/env.php file.
Ensure the Algolia configuration is correctly defined in this file. For example:
'algolia' => [
'application_id' => 'YourAppID',
'search_only_api_key' => 'YourSearchKey',
'index_prefix' => 'your_index_prefix',
]
Check for Module Compatibility with Magento 2.4.7-p3
Ensure that the version of the Algolia extension installed is fully compatible with Magento 2.4.7-p3.
composer update algolia/algoliasearch-magento-2
Hope it helps !
If you find our reply helpful, please give us kudos.
A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.
WebDesk Solution Support Team
Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Thank You,
WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Location: 150 King St. W. Toronto, ON M5H 1J9
Dear @johnwebdes40a5
Thanks for your comments.
FYI, the Algolia is working fine.
Under -> Admin -> Algolia, all the information is saved.
Yes, the env.php does not exist the Algolia Keys.
This warning only appears at the time of running deployment and at the very beginning.
This is strange.
Validating submodules
Validating configuration files
W: algolia: The key is not present in the schema
Processing activity: Jimmy pushed to Staging
Found 1 new commit
W: algolia: The key is not present in the schema
Building application 'mymagento' (runtime type: php:8.2, tree: b37d228)
Generating runtime configuration.
Please check.
Thanks,
Hello @kashifmagef191
In Magento 2, if you encounter a warning during deployment that the env.php does not contain the Algolia keys.
If the keys are configured in the Magento Admin Panel, but the warning still appears, it might indicate that the configuration is not being written to the env.php file during deployment.
You can manually add the Algolia keys in the app/etc/env.php file.
'algolia' => [ 'enabled' => true, 'application_id' => 'your_algolia_application_id', 'api_key' => 'your_algolia_api_key', 'search_api_key' => 'your_algolia_search_api_key', 'index_prefix' => 'your_index_prefix', // Optional ],
Hope it helps !
If you find our reply helpful, please give us kudos.
A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.
WebDesk Solution Support Team
Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Thank You,
WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Location: 150 King St. W. Toronto, ON M5H 1J9