Hi all, I am installing Magento 2.4 using valet plus. In my exception log, I am having the error;
main.CRITICAL: No key available {"exception":"[object] (RuntimeException(code: 0): No key available at /XXXX/project-community-edition/vendor/magento/framework/Encryption/Encryptor.php:255)"} []
I assume this is because it is missing the access keys (public & private) within the Encryptor.php file? If so, where do I input this to get it working?
Hello @jchan1993h4a40
Try by command line to install Magento 2.4 by following below article:
https://devdocs.magento.com/guides/v2.4/install-gde/composer.html
I am not sure that Magento 2.4 installation supports valet+ or not as Magento has removed UI installation/ setup wizard. You can give a composer try.
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition <install-directory-name>
When prompted, enter your Magento authentication keys. Public and private keys are created and configured in your Magento Marketplace.
It can be issue with your PHP version which is linked to php-libsodium, check some solutions provided here :
https://github.com/magento/magento2/issues/23511
Hi @Manish Mittal, I have already ran that command and installed it. It is just giving me the errors when I try to load up the file.test.
@gaurav_harsh1, thanks! I have given that a try but still no luck!
Thank you both
Have you tried all solutions shared ?
You must try with PHP 7.3 (if it's lower version)
Check this as well :
https://devdocs.magento.com/cloud/trouble/trouble-crypt-key-variable.html
Check if your en.php has key value in it.