Magento 2 rtrim() expects parameter 1 to be string

create category custom layout in Magento 2

Error : rtrim() expects parameter 1 to be string, bool given#0 ./vendor/magento/framework/Encryption/Adapter/Mcrypt.php(171): rtrim()

Solution 1:-

I just installed it on my server using apt install php7.4-mcrypt

Restert apache server :-

service apache2 restart

Check php installed extention

php -m

Solution 2:-

Run below command

rm -rf var/cache/ generation/

chmod 777 -R var/ pub/ generated/

Related Post : Magento 2 Success And Error Message

Like us on Facebook and Linkedin for more updates.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top