Solved: Error in Compat.php While Installing Magento 2
Hello Magento Peeps,
Stumbled upon an unexpected error in compact.php while installing Magento 2? 🤔
We’ve got you covered, probably! 😃😇😊
Recently, I installed Magento 2 with XAMPP on a Windows PC of one of my colleagues and encountered an unexpected error. The error read:
In compat.php line 1927:
This is not implemented, as it is not possible to implement Argon2i with acceptable performance in pure-PHP.
On further investigation, I found that the error was thrown by Magento because certain PHP extensions were missing.
If you are also facing such an error while installing Magento 2, you can follow this blog post to solve the issue.
Method to Solve Error in Compat.php During Magento 2 Installation
Magento 2 is a PHP-based eCommerce platform and requires certain resources to function properly. You can check out Magento 2 system requirements for your reference.
Coming back to the issue, the “This is not implemented, as it is not possible to implement Argon2i with acceptable performance in pure-PHP.” during Magento installation is caused because of the missing PHP extension named sodium
. The solution is to enable sodium extension.
Detailed steps to solve the issue in a Local XAMPP server are provided below:
- Step 1: Open the XAMPP control panel, and go to Configure > PHP in the Apache module.
- Step 2: This will open the
php.ini
file, where you can find the list of active/inactive PHP extensions. Findextension=sodium
, remove the;
sign before it, and save the file. This will enablesodium
extension.
- Step 3: Restart the web server, and you’re done! The issue will be solved.
This is how you can solve the error in Compat.php while installing Magento 2 on a local server. 😇
Related Solution: Call to Undefined Function bccomp() in Magento 2
In case you are facing the Compat.php line 1927 error while installing Magento 2 in a live server, contact your respective hosting provider to enable the sodium PHP extension to solve the issue. 😊
Found this solution helpful? Share it with your developer friends via social media and spread the knowledge!
Also, do not hesitate to write to us in the comments if you still have any doubts. We’d be happy to assist you. 😇
Thanks for reading..! 🍀
Jignesh Parmar
An expert in his field, Jignesh is the team leader at Meetanshi and a certified Magento developer. His passion for Magento has inspired others in the team too. Apart from work, he is a cricket lover.
Prev
How to Integrate Mastercard Payment Gateway in WooCommerce
35+ Best Digital Marketing Tools for 2024 [Free & Premium]
Next