While installing magento 2 fresh version, found this issue on server,
rtrim() expects parameter 1 to be string, bool given#0 /home/..../vendor/magento/framework/Encryption/Adapter/Mcrypt.php(171): rtrim()
#1 /home/..../vendor/magento/framework/Encryption/Encryptor.php(452): MagentoFrameworkEncryptionAdapterMcrypt->decrypt()
#2 /home/..../vendor/magento/module-config/Model/Config/Backend/Encrypted.php(111): MagentoFrameworkEncryptionEncryptor->decrypt()
According to Magento DevDocs mcrypt extension is not needed and it’s already removed on php 7.2. FYI, sodium, openssl and other extension as per devdocs is aleady installed.
I am using Magento 2.4.3-p2 / Ubuntu 22 / MySQL 8 / PHP 7.4.30
Any Idea?