New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rtrim() expects parameter 1 to be string, bool given vendor/magento/framework/Encryption/Adapter/Mcrypt.php(171): rtrim() #35464
Comments
Hi @Hoangss. Thank you for your report.
Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
For more details, review the Magento Contributor Assistant documentation. Add a comment to assign the issue: To learn more about issue processing workflow, refer to the Code Contributions.
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
While I'm debugging I saw this method return false: openssl_decrypt() in:
I'm not quite sure what is wrong. Can it be because of this OpenSSL version?
|
I had the same issue today. I found out the php mcrypt library was not installed. I just installed it on my server using Now installation worked perfectly |
The solution of @shoaibpnp worked for me as well. Thanks! |
Hi @engcom-Dash. Thank you for working on this issue.
|
Hello @Hoangss, We have tried to reproduce the issue in Magento 2.4.3-p2 instance. the issue is not reproducible. Please refer the below screenshot for the reference; We have followed the below steps in order to reproduce the issue:
Let us know in case we have missed anything. Thanks |
It's CE (which is called Open Source these days). If you still run into the same problem when the mcrypt extension is not installed, try debugging these lines, and see why they return an Mcrypt instance and maybe also what exact data is trying to be decrypted, and where that data comes from. |
hi @hostep openssl_decrypt was called: |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Thanks, @hostep for the guidance. Hello @Hoangss, We have tried to debug the issue as per this #35464 (comment) and add a breakpoint in the Thanks |
YEAH, that was issue with my setup also, and I got this error below ( maybe to someone will be helpful ):
|
Hello @zeljko989, Thanks for the contribution! Please let us know from which version to which version you are trying to upgrade the Magento. Thanks |
Please do try with configuration @hoangngo-calvin at first line. Magento 2.4.3-p2 With ubuntu 22.04. I tried with that configuration and every-time found same issue & that's weird. apt install php7.4-mcrypt install solved the issue but which obviously not optimal. As Magento release on 12 April. On the other hand ubuntu release on 21st april. There may be compatibility issue |
Hello @hoangngo-calvin @shuvoenr, Thanks for the report and collaboration! We are able to reproduce the issue with Magento 2.4.3-P2 with the below configuration:
But after installing Mcrypt, the installation is successful: We have also tried to install Magento 2.4.4 and 2.4-develop with the below configuration:
The installation is successfully done. So confirming this issue for 2.4.3-p2. Thanks |
✅ Jira issue https://jira.corp.magento.com/browse/AC-5900 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Hotel. Thank you for verifying the issue. |
Hi @engcom-Hotel |
This bug appeared out of nowhere yesterday. The mcrypt workaround solved the issue it seems. What happens in background? The log says it tries to decrypt the value 'Paypal'. Is that something related to an invalid API key or something?
|
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Command run successfully
Actual result (*)
There is an exception
The text was updated successfully, but these errors were encountered: