Phpass Topic is solved

Need help installing Joomla! 4.x? For all Joomla! 4.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
rb1jlo
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Apr 24, 2023 4:48 pm

Phpass

Post by rb1jlo » Sat Oct 28, 2023 2:00 pm

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.
You do not have the required permissions to view the files attached to this post.

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2654
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Phpass

Post by ceford » Sat Oct 28, 2023 4:48 pm

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.

rb1jlo
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Apr 24, 2023 4:48 pm

Re: Phpass

Post by rb1jlo » Sat Oct 28, 2023 6:29 pm

Thank you for your answer.
See new attachment
You do not have the required permissions to view the files attached to this post.

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2654
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Phpass

Post by ceford » Sat Oct 28, 2023 6:55 pm

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.

rb1jlo
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Apr 24, 2023 4:48 pm

Re: Phpass

Post by rb1jlo » Tue Oct 31, 2023 12:12 pm

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.

rb1jlo
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Mon Apr 24, 2023 4:48 pm

Re: Phpass

Post by rb1jlo » Thu Nov 02, 2023 10:00 am

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.

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2654
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: Phpass

Post by ceford » Thu Nov 02, 2023 12:10 pm

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.

Wendy D
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Jan 17, 2023 1:34 am

Re: Phpass

Post by Wendy D » Tue Feb 27, 2024 7:04 pm

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.


Post Reply

Return to “Installation Joomla! 4.x”