SodiumChachaIetf::decrypt() must be of the type string, booleanMagento 2.1.1 upgrade issueProduct showing “out of stock” and php error while saving again. magento 2Error at order shippinggetList() must be an instance of MagentoFrameworkApiSearchCriteriaInterfacesearch not working - Fatal error - magento 2Fatal error: Uncaught TypeError: Argument 1 passedMagento 2.3 Web Setup Wizard Fatal Error compact()Magento 2.2.3 CE unable to add/remove item from wishlist?Magento error when going to forgotten password linkUncaught TypeError: Argument 1 passed to SymfonyComponentConsoleHelperProgressBar::setFormat() must be of the type string, null given
LT Spice Voltage Output
How could a planet have most of its water in the atmosphere?
What is the limiting factor for a CAN bus to exceed 1Mbps bandwidth?
Can PCs use nonmagical armor and weapons looted from monsters?
Why is Arya visibly scared in the library in S8E3?
Why are notes ordered like they are on a piano?
How to reply this mail from potential PhD professor?
Accidentally deleted the "/usr/share" folder
Was Unix ever a single-user OS?
If 1. e4 c6 is considered as a sound defense for black, why is 1. c3 so rare?
Can fracking help reduce CO2?
Is balancing necessary on a full-wheel change?
I caught several of my students plagiarizing. Could it be my fault as a teacher?
Junior developer struggles: how to communicate with management?
Why debootstrap can only run as root?
You look catfish vs You look like a catfish?
How to assert on pagereference where the endpoint of pagereference is predefined
The barbers paradox first order logic formalization
Why do computer-science majors learn calculus?
Does hiding behind 5-ft-wide cover give full cover?
Topological Spaces homeomorphic
If an enemy is just below a 10-foot-high ceiling, are they in melee range of a creature on the ground?
Can I use 1000v rectifier diodes instead of 600v rectifier diodes?
Feels like I am getting dragged into office politics
SodiumChachaIetf::decrypt() must be of the type string, boolean
Magento 2.1.1 upgrade issueProduct showing “out of stock” and php error while saving again. magento 2Error at order shippinggetList() must be an instance of MagentoFrameworkApiSearchCriteriaInterfacesearch not working - Fatal error - magento 2Fatal error: Uncaught TypeError: Argument 1 passedMagento 2.3 Web Setup Wizard Fatal Error compact()Magento 2.2.3 CE unable to add/remove item from wishlist?Magento error when going to forgotten password linkUncaught TypeError: Argument 1 passed to SymfonyComponentConsoleHelperProgressBar::setFormat() must be of the type string, null given
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I did migration Magento 1 to Magento 2.3.0 all is good but when I create customer form both of side (front and admin) I got the error related to decrypt even I can not edit the customer when I click on save same error has occurred.
error is :
Fatal error: Uncaught TypeError: Return value of
MagentoFrameworkEncryptionAdapterSodiumChachaIetf::decrypt() must
be of the type string, boolean returned in
public_html/vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php:68
Stack trace: #0
public_html/vendor/magento/framework/Encryption/Encryptor.php(358):
MagentoFrameworkEncryptionAdapterSodiumChachaIetf->decrypt('"x10x88x8ExB5x851;HxB1x12xE1aaP...')
#1 /public_html/vendor/dotmailer/dotmailer-magento2-extension/Helper/Data.php(744):
MagentoFrameworkEncryptionEncryptor->decrypt('IhCIjrWFMTtIsRL...')
#2 /public_html/vendor/dotmailer/dotmailer-magento2-extension/Helper/Data.php(203):
DotdigitalgroupEmailHelperData->getApiPassword(Object(MagentoStoreModelWebsiteInterceptor))
#3 public_html/vendor/dotmailer/dotmailer-magento2-extens
in
/public_html/vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php on line 68
magento2 magento2.3 register
add a comment |
I did migration Magento 1 to Magento 2.3.0 all is good but when I create customer form both of side (front and admin) I got the error related to decrypt even I can not edit the customer when I click on save same error has occurred.
error is :
Fatal error: Uncaught TypeError: Return value of
MagentoFrameworkEncryptionAdapterSodiumChachaIetf::decrypt() must
be of the type string, boolean returned in
public_html/vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php:68
Stack trace: #0
public_html/vendor/magento/framework/Encryption/Encryptor.php(358):
MagentoFrameworkEncryptionAdapterSodiumChachaIetf->decrypt('"x10x88x8ExB5x851;HxB1x12xE1aaP...')
#1 /public_html/vendor/dotmailer/dotmailer-magento2-extension/Helper/Data.php(744):
MagentoFrameworkEncryptionEncryptor->decrypt('IhCIjrWFMTtIsRL...')
#2 /public_html/vendor/dotmailer/dotmailer-magento2-extension/Helper/Data.php(203):
DotdigitalgroupEmailHelperData->getApiPassword(Object(MagentoStoreModelWebsiteInterceptor))
#3 public_html/vendor/dotmailer/dotmailer-magento2-extens
in
/public_html/vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php on line 68
magento2 magento2.3 register
add a comment |
I did migration Magento 1 to Magento 2.3.0 all is good but when I create customer form both of side (front and admin) I got the error related to decrypt even I can not edit the customer when I click on save same error has occurred.
error is :
Fatal error: Uncaught TypeError: Return value of
MagentoFrameworkEncryptionAdapterSodiumChachaIetf::decrypt() must
be of the type string, boolean returned in
public_html/vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php:68
Stack trace: #0
public_html/vendor/magento/framework/Encryption/Encryptor.php(358):
MagentoFrameworkEncryptionAdapterSodiumChachaIetf->decrypt('"x10x88x8ExB5x851;HxB1x12xE1aaP...')
#1 /public_html/vendor/dotmailer/dotmailer-magento2-extension/Helper/Data.php(744):
MagentoFrameworkEncryptionEncryptor->decrypt('IhCIjrWFMTtIsRL...')
#2 /public_html/vendor/dotmailer/dotmailer-magento2-extension/Helper/Data.php(203):
DotdigitalgroupEmailHelperData->getApiPassword(Object(MagentoStoreModelWebsiteInterceptor))
#3 public_html/vendor/dotmailer/dotmailer-magento2-extens
in
/public_html/vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php on line 68
magento2 magento2.3 register
I did migration Magento 1 to Magento 2.3.0 all is good but when I create customer form both of side (front and admin) I got the error related to decrypt even I can not edit the customer when I click on save same error has occurred.
error is :
Fatal error: Uncaught TypeError: Return value of
MagentoFrameworkEncryptionAdapterSodiumChachaIetf::decrypt() must
be of the type string, boolean returned in
public_html/vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php:68
Stack trace: #0
public_html/vendor/magento/framework/Encryption/Encryptor.php(358):
MagentoFrameworkEncryptionAdapterSodiumChachaIetf->decrypt('"x10x88x8ExB5x851;HxB1x12xE1aaP...')
#1 /public_html/vendor/dotmailer/dotmailer-magento2-extension/Helper/Data.php(744):
MagentoFrameworkEncryptionEncryptor->decrypt('IhCIjrWFMTtIsRL...')
#2 /public_html/vendor/dotmailer/dotmailer-magento2-extension/Helper/Data.php(203):
DotdigitalgroupEmailHelperData->getApiPassword(Object(MagentoStoreModelWebsiteInterceptor))
#3 public_html/vendor/dotmailer/dotmailer-magento2-extens
in
/public_html/vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php on line 68
magento2 magento2.3 register
magento2 magento2.3 register
edited Mar 25 at 12:26
Rakesh Donga
2,716317
2,716317
asked Feb 1 at 5:07
Krunal PandyaKrunal Pandya
516
516
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
Go to this file:
vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php
And Update Below Code:
$plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt(
$payload,
$nonce,
$nonce,
$this->key
);
if ($plainText == false)
return "";
return $plainText;
1
Do not edit core files.
– dudzio
Feb 14 at 11:32
Above solution from magento issue discussion github.com/magento/magento2/issues/19590
– Barry
Mar 24 at 19:37
add a comment |
Looks like you are using the wrong crypt key.
You should keep the key from your previews configuration:
app/etc/local.xml [Magento 1.x]
<?xml version="1.0"?>
<config>
<global>
<install>
<date>date</date>
</install>
<crypt>
<key>123456_same_old_key_7890</key>
</crypt>
[...]
And replace the new one in the new project:
app/etc/env.php [Magento 2.x]
<?php
[...],
'crypt' => [
'key' => '123456_same_old_key_7890'
],
[...]
Source: https://github.com/magento/magento2/issues/19590
1
Thank you, this did the trick for me!
– Doug McLean
Apr 4 at 13:23
add a comment |
Go to this file:
vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php
And update below code:
public function decrypt(string $data): string
$nonce = mb_substr($data, 0, SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES, '8bit');
$payload = mb_substr($data, SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES, null, '8bit');
$plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt(
$payload,
$nonce,
$nonce,
$this->key
);
return (string) $plainText;
Just change the function return type:
From
return $plainText
to
return (string) $plainText
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f260080%2fsodiumchachaietfdecrypt-must-be-of-the-type-string-boolean%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Go to this file:
vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php
And Update Below Code:
$plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt(
$payload,
$nonce,
$nonce,
$this->key
);
if ($plainText == false)
return "";
return $plainText;
1
Do not edit core files.
– dudzio
Feb 14 at 11:32
Above solution from magento issue discussion github.com/magento/magento2/issues/19590
– Barry
Mar 24 at 19:37
add a comment |
Go to this file:
vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php
And Update Below Code:
$plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt(
$payload,
$nonce,
$nonce,
$this->key
);
if ($plainText == false)
return "";
return $plainText;
1
Do not edit core files.
– dudzio
Feb 14 at 11:32
Above solution from magento issue discussion github.com/magento/magento2/issues/19590
– Barry
Mar 24 at 19:37
add a comment |
Go to this file:
vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php
And Update Below Code:
$plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt(
$payload,
$nonce,
$nonce,
$this->key
);
if ($plainText == false)
return "";
return $plainText;
Go to this file:
vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php
And Update Below Code:
$plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt(
$payload,
$nonce,
$nonce,
$this->key
);
if ($plainText == false)
return "";
return $plainText;
edited 12 hours ago
answered Feb 1 at 17:06
Rakesh DongaRakesh Donga
2,716317
2,716317
1
Do not edit core files.
– dudzio
Feb 14 at 11:32
Above solution from magento issue discussion github.com/magento/magento2/issues/19590
– Barry
Mar 24 at 19:37
add a comment |
1
Do not edit core files.
– dudzio
Feb 14 at 11:32
Above solution from magento issue discussion github.com/magento/magento2/issues/19590
– Barry
Mar 24 at 19:37
1
1
Do not edit core files.
– dudzio
Feb 14 at 11:32
Do not edit core files.
– dudzio
Feb 14 at 11:32
Above solution from magento issue discussion github.com/magento/magento2/issues/19590
– Barry
Mar 24 at 19:37
Above solution from magento issue discussion github.com/magento/magento2/issues/19590
– Barry
Mar 24 at 19:37
add a comment |
Looks like you are using the wrong crypt key.
You should keep the key from your previews configuration:
app/etc/local.xml [Magento 1.x]
<?xml version="1.0"?>
<config>
<global>
<install>
<date>date</date>
</install>
<crypt>
<key>123456_same_old_key_7890</key>
</crypt>
[...]
And replace the new one in the new project:
app/etc/env.php [Magento 2.x]
<?php
[...],
'crypt' => [
'key' => '123456_same_old_key_7890'
],
[...]
Source: https://github.com/magento/magento2/issues/19590
1
Thank you, this did the trick for me!
– Doug McLean
Apr 4 at 13:23
add a comment |
Looks like you are using the wrong crypt key.
You should keep the key from your previews configuration:
app/etc/local.xml [Magento 1.x]
<?xml version="1.0"?>
<config>
<global>
<install>
<date>date</date>
</install>
<crypt>
<key>123456_same_old_key_7890</key>
</crypt>
[...]
And replace the new one in the new project:
app/etc/env.php [Magento 2.x]
<?php
[...],
'crypt' => [
'key' => '123456_same_old_key_7890'
],
[...]
Source: https://github.com/magento/magento2/issues/19590
1
Thank you, this did the trick for me!
– Doug McLean
Apr 4 at 13:23
add a comment |
Looks like you are using the wrong crypt key.
You should keep the key from your previews configuration:
app/etc/local.xml [Magento 1.x]
<?xml version="1.0"?>
<config>
<global>
<install>
<date>date</date>
</install>
<crypt>
<key>123456_same_old_key_7890</key>
</crypt>
[...]
And replace the new one in the new project:
app/etc/env.php [Magento 2.x]
<?php
[...],
'crypt' => [
'key' => '123456_same_old_key_7890'
],
[...]
Source: https://github.com/magento/magento2/issues/19590
Looks like you are using the wrong crypt key.
You should keep the key from your previews configuration:
app/etc/local.xml [Magento 1.x]
<?xml version="1.0"?>
<config>
<global>
<install>
<date>date</date>
</install>
<crypt>
<key>123456_same_old_key_7890</key>
</crypt>
[...]
And replace the new one in the new project:
app/etc/env.php [Magento 2.x]
<?php
[...],
'crypt' => [
'key' => '123456_same_old_key_7890'
],
[...]
Source: https://github.com/magento/magento2/issues/19590
answered Feb 18 at 18:26
Eduan LenineEduan Lenine
489
489
1
Thank you, this did the trick for me!
– Doug McLean
Apr 4 at 13:23
add a comment |
1
Thank you, this did the trick for me!
– Doug McLean
Apr 4 at 13:23
1
1
Thank you, this did the trick for me!
– Doug McLean
Apr 4 at 13:23
Thank you, this did the trick for me!
– Doug McLean
Apr 4 at 13:23
add a comment |
Go to this file:
vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php
And update below code:
public function decrypt(string $data): string
$nonce = mb_substr($data, 0, SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES, '8bit');
$payload = mb_substr($data, SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES, null, '8bit');
$plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt(
$payload,
$nonce,
$nonce,
$this->key
);
return (string) $plainText;
Just change the function return type:
From
return $plainText
to
return (string) $plainText
add a comment |
Go to this file:
vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php
And update below code:
public function decrypt(string $data): string
$nonce = mb_substr($data, 0, SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES, '8bit');
$payload = mb_substr($data, SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES, null, '8bit');
$plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt(
$payload,
$nonce,
$nonce,
$this->key
);
return (string) $plainText;
Just change the function return type:
From
return $plainText
to
return (string) $plainText
add a comment |
Go to this file:
vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php
And update below code:
public function decrypt(string $data): string
$nonce = mb_substr($data, 0, SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES, '8bit');
$payload = mb_substr($data, SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES, null, '8bit');
$plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt(
$payload,
$nonce,
$nonce,
$this->key
);
return (string) $plainText;
Just change the function return type:
From
return $plainText
to
return (string) $plainText
Go to this file:
vendor/magento/framework/Encryption/Adapter/SodiumChachaIetf.php
And update below code:
public function decrypt(string $data): string
$nonce = mb_substr($data, 0, SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES, '8bit');
$payload = mb_substr($data, SODIUM_CRYPTO_AEAD_CHACHA20POLY1305_IETF_NPUBBYTES, null, '8bit');
$plainText = sodium_crypto_aead_chacha20poly1305_ietf_decrypt(
$payload,
$nonce,
$nonce,
$this->key
);
return (string) $plainText;
Just change the function return type:
From
return $plainText
to
return (string) $plainText
answered Apr 1 at 6:18
AarpiAarpi
62
62
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f260080%2fsodiumchachaietfdecrypt-must-be-of-the-type-string-boolean%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown