AnswerBun.com

Error installing Magento 2.3.2: An abstract factory could not create an instance of magentoframeworkencryptionencryptor

Magento Asked by theSeeker on January 2, 2022

I am installing magento 2 via a docker image :

quay.io/alexcheng1982/apache2-php7:7.2.12

I keep getting this message:

 An abstract factory could not create an instance of 
magentoframeworkencryptionencryptor(alias: 

MagentoFrameworkEncryptionEncryptor).

enter image description here

I understand from this question that the issue is caused by not having php-libsodium installed in my apache image

Consequently,following this comment, I added libsodium to the image:

I.e ;

RUN apt-get update -y
RUN apt-get install libsodium-dev -y
RUN docker-php-ext-install sodium

However I am still getting the error.

I checked my phpinfo() and indeed sodium has been added:

PHPINFO PAGE;

     sodium
sodium support  enabled
libsodium headers version   1.0.8
libsodium library version   1.0.8

Two question:

Is this indeed the cause of the problem?

If so, could the reason for the failure be that I did not install the latest version of libsodium. I note from the other question that version 1.0.17 was installed and this seemed to do the trick.

the version I installed is: 1.0.8

this is how i installed version 1.0.8

RUN apt-get update -y
    RUN apt-get install libsodium-dev -y
    RUN docker-php-ext-install sodium

is there a way to install a later version ?

One Answer

From Magento Release Notes

The security enhancements that are part of Magento 2.3.2 require the installation of libsodium version 1.0.13 or higher. You will not be able to successfully install Magento Commerce 2.3.2 without first ensuring that your server runs version 1.0.13 or higher.

Also you can review comments on the github issue https://github.com/magento/magento2/issues/23405, it describe how to update libsodium in different distro

Also, you can build it by self https://github.com/jreckner/docker-libsodium/blob/master/Dockerfile

Answered by KAndy on January 2, 2022

Add your own answers!

Related Questions

How to login Magento 2 from external web application

1  Asked on December 14, 2021 by milind-mahajan

   

Magento2 How to use custom fonts in Homepage

1  Asked on December 14, 2021 by sanjay-shiyal

         

sorting not working magento 2

1  Asked on December 12, 2021 by ram-pratap-singh-gour

       

magento2 rest API url, change API url

1  Asked on December 12, 2021

   

Custom shipping method break cart page render

0  Asked on December 12, 2021 by matheus-prado

   

Ask a Question

Get help from others!

© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP