Page 1 of 1

Phpass

Posted: Sat Oct 28, 2023 2:00 pm
by rb1jlo
Hello,
When updating my site from 4.3.4 to 4.4, I get the error "Extend phpass is not installed" (See attachment).
I don't know how to install Phpass in order to suppress the error.
Thank you for your help.

Re: Phpass

Posted: Sat Oct 28, 2023 4:48 pm
by ceford
Your pdf contains a screenshot rotated through 90 degrees - completely unusable. Please just save a screenshot and attach it directly with the Attachments button below.

Re: Phpass

Posted: Sat Oct 28, 2023 6:29 pm
by rb1jlo
Thank you for your answer.
See new attachment

Re: Phpass

Posted: Sat Oct 28, 2023 6:55 pm
by ceford
Did the update actually work?

The error seems to be something to do with the password hash library. Use a file browser to look for administrator/manifests/libraries/phpass.xml. Does it exist? Does it contain the following:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<extension type="library" method="upgrade">
	<name>lib_phpass</name>
	<libraryname>phpass</libraryname>
	<description>LIB_PHPASS_XML_DESCRIPTION</description>
	<creationDate>2004-01</creationDate>
	<author>Solar Designer</author>
	<authorEmail>[email protected]</authorEmail>
	<authorUrl>https://www.openwall.com/phpass/</authorUrl>
	<license>PD / GWC</license>
	<version>0.3</version>
	<packagerurl>https://www.openwall.com/phpass/</packagerurl>

	<files folder="phpass">
		<file>PasswordHash.php</file>
	</files>
</extension>
Try creating a new user with a new password and see if you can login as that user. To be honest - I don't know what might have gone wrong. I suggest you carry on unless other problems emerge.

Re: Phpass

Posted: Tue Oct 31, 2023 12:12 pm
by rb1jlo
Thank you very much for your answer.
On my site, I have exactly the same file with the same content
I can create a new user and I can login as that user.
It is strange because I manage other similar sites and this error doesn't appair.

Re: Phpass

Posted: Thu Nov 02, 2023 10:00 am
by rb1jlo
Hello :
Since Joomla 4.4 and with Joomla 5,
on 5 sites, after updating :
- 1 site : no error
- 3 sites : Extension phpass not installed
- 1 site : a lot of extensions not installed (Com_ajax, Com_Containhistory, Com_finder, Com_postinstall, com_phpass,mod_finder, mod_tags_similar, mod_stats_admin, plg_authentication_cookies...)
but all the sites work correctly
Am I alone with this problem ?
Thank you.

Re: Phpass

Posted: Thu Nov 02, 2023 12:10 pm
by ceford
Delete this file: administrator/cache/autoload_psr4.php - it will be recreated on your next page load. What does that do? You could try a reinstall of Joomla Core Files. Or you could just forget this problem until an error turns up in use.

Re: Phpass

Posted: Tue Feb 27, 2024 7:04 pm
by Wendy D
I FOUND THE FIX for this annoying phpass recurring issue! Working solution was on an older Joomla 3 thread.

PHPass fixed by editing the Joomla database as follows:

Locate the [prefix]_extensions table.
Locate phpass in the table.
Edit as follows:
enabled=1
protected=1
state=0

My state was -1, which was the issue causing phpass warnings to occur during Joomla updates, as well as why phpass was listed under Discover but could never be installed because the name matched a folder name.

Re: Phpass

Posted: Tue May 21, 2024 4:00 pm
by umbrellax2
Thank you, Wendy D! This solved my issue on a big client site. I had the exact same settings in the database, changed to your settings and fixed the Discover issue and also allowed me to reinstall core 4.4 files.

Kudos on the fix!

Re: Phpass

Posted: Tue May 21, 2024 4:02 pm
by umbrellax2
Ugh, sorry - it *didn't* fix the install core files - I'm getting this:

Notice The update completed with errors. Please examine the update logs /home/khc/public_html/administrator/logs/joomla_update.php for more details.
It is recommended to restore the site from backup, fix the issues that caused the update failure and try to update again.
You always can ask for help on Joomla! forum https://forum.joomla.org/
Return to Dashboard

Brief list of captured errors
Error on updating manifest cache: (type, element, folder, client) = (library, phpass, phpass, 0)