All Articles

Missing required argument in Magento 2.3.2.

How to fix error “Missing required argument $encoder of MSP\TwoFactorAuth\Model\UserConfigManager“.

On June 25, 2019, the Magento version 2.3.2 was released. Improvements to Magento 2.3.2 require installing libsodium cryptographic library version 1.0.13 or higher. Without this you will get an error in the MSP_TwoFactorAuth module.

Missing required argument $encoder of MSP\TwoFactorAuth\Model\UserConfigManager.

So for the successful upgrade, follow these steps:

  • install libsodium
 cd /opt/ 
 wget -c https://download.libsodium.org/libsodium/releases/libsodium-1.0.18.tar.gz 
 tar -xzvf libsodium-1.0.18.tar.gz 
 rm libsodium-1.0.18.tar.gz 
 cd libsodium-1.0.18 
 ./configure 
 make && make check 
 make install 
  • update magento
composer require magento/product-community-edition 2.3.2 --no-update 
composer update 
rm -rf var/cache/* var/page_cache/* var/generation/* 
php bin/magento setup:upgrade 

Links :

Published Jun 26, 2019

Magento Certified Developer