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).
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 ?
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
1 Asked on December 14, 2021 by oleg-usik
1 Asked on December 14, 2021 by milind-mahajan
1 Asked on December 14, 2021 by denis-spalenza
1 Asked on December 14, 2021 by sanjay-shiyal
1 Asked on December 14, 2021
0 Asked on December 14, 2021
1 Asked on December 14, 2021
2 Asked on December 14, 2021
magento2 3 magento2 3 5 order collection payment sales order
3 Asked on December 14, 2021
1 Asked on December 14, 2021
6 Asked on December 12, 2021 by user2822471
1 Asked on December 12, 2021 by ram-pratap-singh-gour
3 Asked on December 12, 2021 by fortegente
2 Asked on December 12, 2021 by shorabh
0 Asked on December 12, 2021 by matheus-prado
1 Asked on December 12, 2021
0 Asked on December 12, 2021
1 Asked on December 12, 2021
1 Asked on December 12, 2021
Get help from others!
Recent Answers
Recent Questions
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP