cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2.4.2 Update Admin Error

SOLVED

Re: Magento 2.4.2 Update Admin Error

My Webhost swears all the latest extensions/patches are installed on their end and sent me back here. Is there anything I can do from cPanel or CLI on my end to fix this?

Note this issue is also for Mag 2.4.1-p1.

Also note, customer login on the front end also fails - I assume for the same reason.

I've tried switching between php7.3 and 7.4 in multiPHP manager and forcing php7.3 or 7.4 in .htaccess (

AddHandler application/x-httpd-php73.php

) to no avail.

Re: Magento 2.4.2 Update Admin Error

Run the command:

php -m

 

If sodium isn't listed it is not installed, from what I read.  I posted earlier how to install sodium, and that worked for me....that is until Elasticsearch started randomly stopping, but that is another issue

Re: Magento 2.4.2 Update Admin Error

Thank you! Indeed Libsodium was not installed.  My webhost was able to install and indeed 

php -m | grep sodium  

on root dir confirms libsodium install.  

Note this fixed login issue on both front and back ends of Mag 2.4.1-p1.

Now on to update to 2.4.2 - I assume that will work now too Smiley Happy

Thanks again for finding the solution.

Re: Magento 2.4.2 Update Admin Error

Thank you very much!

It was only a klick in Cpanel (PHP Version) to activate sodium

 

Re: Magento 2.4.2 Update Admin Error

[root@server1 ~]# php -m [PHP Modules] bcmath bz2 calendar Core ctype curl date dom exif fileinfo filter ftp gd gettext gmp hash iconv imagick imap intl json libxml mbstring mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar posix pspell Reflection session SimpleXML soap sockets sodium SPL sqlite3 standard sysvmsg sysvsem sysvshm tidy tokenizer xml xmlreader xmlrpc xmlwriter xsl zip zlib [Zend Modules] and still getting this error

Re: Magento 2.4.2 Update Admin Error

me too same error with 2.4.2

Re: Magento 2.4.2 Update Admin Error

AddHandler application/x-httpd-php73.php

i put in in the htacess file in the pub folder and that solved the problem for me hope it helps you 

Re: Magento 2.4.2 Update Admin Error

I am getting a different error at the 1385/1390 installation progress . the error is 

 

"in compat.php line 1927: this is not implemented, as it is not possible to implement argon2i with acceptable performance in pure-php magento 2.4 installation"

does anyone know what to do about. The installation is on Xampp windows 10 64bit

Re: Magento 2.4.2 Update Admin Error

I was facing the same issue, I fixed that with below mentioned changes.

1. Add "extension=sodium" to php.ini (no quotes)
2. Copy php/libsodium.dll to apache/bin/
3. Restart Server

Re: Magento 2.4.2 Update Admin Error

great post and very clear explanation on this question. Very good effort..https://unlockmytvapk.xyz/