JAuthentication::__construct: Could not load authentication libraries.

Discussion regarding Joomla! 1.5 security issues.
Joomla! Vulnerable Extensions: http://feeds.joomla.org/JoomlaSecurityV ... Extensions

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Security Checklist
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Deddia Fedia
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Mar 25, 2010 9:45 pm

Re: JAuthentication::__construct: Could not load authentication

Post by Deddia Fedia » Fri Mar 26, 2010 11:19 am

I still have this problem:
JAuthentication::__construct: Could not load authentication libraries.
Username and password do not match


My jos_plugins table screenshot (click on image):

Image

powermagboss
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Thu Mar 25, 2010 9:33 pm

Re: JAuthentication::__construct: Could not load authentication

Post by powermagboss » Wed Mar 31, 2010 11:23 pm

So, when in phpMyAdmin:

1. Choose the database in question on the left panel / top.
2. Now, when looking at the database displayed, on the left panel, choose _plugins
3. Choose the Structure Tab > Edit the "published" Field (7th item down) and change "0" to "1"
4. Click "Save"
5. Go to the Browse Tab > id = 1 > name = Authentication-Joomla > Now, click on Edit pencil and change published = "1" and click on "Go" (save)

That should do ya...but if anyone has other suggestions to improve on this, fire away (this issue took me a couple hours to figure out, ohhh, I wish I paid attention in computer science class.

-John
+ + + + +

I am following as instructed and I am in Myphpadmin.

I have made it all the way to step 2).
On step 3). I am currently idle in plugins searching for published. Which it does not show at all.

I am currently using the joomla 1.5 version if that helps any.

powermagboss
Joomla! Apprentice
Joomla! Apprentice
Posts: 22
Joined: Thu Mar 25, 2010 9:33 pm

Re: JAuthentication::__construct: Could not load authentication

Post by powermagboss » Wed Mar 31, 2010 11:35 pm

LBsoftware wrote:This is a really old post - but the problem apparently keeps popping up!
REALLY glad this was posted 2 years ago. Thanks for the solutions above.

Setting the database table to 'published' worked like a charm!

Here's what I did:

- Log into PHP MyAdmin
- Find your Joomla Database
- Scroll down the list (on the left) until you see "jos_plugins"

On the right, you'll now see the BROWSE tab.
Click this.

Find "Authentication - Joomla"
Click the pencil icon (to edit)

Set the "Published" field to "1"
Hit the GO button.

Should work now.

Be really careful in PHP MyAdmin however.
Don't touch anything unless you know what you're doing.


Found it : published tinyint(3) No 1

Result:

* JAuthentication::__construct: Could not load authentication libraries.
* Username and password do not match

Now what???????

pmclagon
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Tue Apr 13, 2010 9:35 pm

Re: JAuthentication::__construct: Could not load authentication

Post by pmclagon » Sun Apr 18, 2010 9:56 pm

thanks for all these replies every issue someone had seemed to be mine too. So the solution worked. THANK YOU Joomla Community, your'e the best!

User avatar
AshrafSello
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Apr 21, 2010 1:46 am
Location: Cairo, Egypt
Contact:

Re: JAuthentication::__construct: Could not load authentication

Post by AshrafSello » Wed Apr 21, 2010 1:50 am

Insomn3ak wrote:I fixed this issue for myself earlier today. I was receiving this error message because I inadvertently disabled the plugin "Authentication - Joomla" which I thought was for the front-end authentication. It turns out that it was for the admin authentication (not sure why anyone would want to disable this).

I went into the Joomla database, and changed it's published status to 1 in the "jos_plugins" table. After that, I was able to login without any problems.

You are very Brilliant man, Thank You Very Very Much.
=============
Ashraf Hamdy Sello
Cairo, Egypt
http://www.EgyptShop.com

User avatar
franco
Joomla! Explorer
Joomla! Explorer
Posts: 316
Joined: Thu Aug 18, 2005 3:43 pm
Contact:

Re: JAuthentication::__construct: Could not load authenticat

Post by franco » Tue May 04, 2010 4:05 pm

Perfect!!! Now, if only I can remember why I wanted to login on the backend to begin with.
~ A little imagination can go a long way ~
online at http:/francosantos.com, http://clinicalpsychotherapists.com, http://modernfamilyliving.com

User avatar
cspgsl
Joomla! Explorer
Joomla! Explorer
Posts: 348
Joined: Thu Nov 09, 2006 11:35 am

Re: JAuthentication::__construct: Could not load authenticat

Post by cspgsl » Wed May 12, 2010 11:56 am

Just a heads up to everyone - I had this happen to me but I did not disable the plugin in the back end.

This happened when I uninstalled the AEC component. It was a long time ago when I installed AEC and I do not remember all of the hacks that were applied but disabling the Authentication - Joomla plugin must have been one of them

sapphiremoon
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Oct 26, 2009 4:49 am

Re: JAuthentication::__construct: Could not load authenticat

Post by sapphiremoon » Wed May 26, 2010 2:26 am

I have tried every suggestion here and it is still not working any suggestions I get this message under the login JAuthentication::__construct: Could not load authentication libraries.

and this one at the top

* JAuthentication::__construct: Could not load authentication libraries.
* Username and password do not match

Ok I finally got something to work except now when I login the fields in the login goes blank and nothing happens

whitecave
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Jul 19, 2010 12:22 pm

Re: JAuthentication::__construct: Could not load authenticat

Post by whitecave » Mon Jul 19, 2010 12:26 pm

:D I am very happy to have found this thread!! Thank you so much to all who posted advice - you are just brilliant! :D

chamitart
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Jun 17, 2010 12:32 am

Re: JAuthentication::__construct: Could not load authenticat

Post by chamitart » Tue Jul 20, 2010 6:05 am

thank you so much

foris66
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Jul 20, 2010 5:22 pm

Re: JAuthentication::__construct: Could not load authenticat

Post by foris66 » Tue Jul 20, 2010 5:28 pm

Hi I read all your post but I don't know in which folder is the database file I should edit. Please can anyone tell me.

Thank you very much in advance

BrokenBrick
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Jun 23, 2010 7:52 pm

Re: JAuthentication::__construct: Could not load authenticat

Post by BrokenBrick » Fri Aug 27, 2010 5:38 pm

So I am having this problem too but my issue is that when I log in to phpMyAdmin my database has no tables. However my site is still running so obviously my db has tables. Has anyone encountered this problem before? How can I get Joomla to repopulate my database without logging in to the backend?

rpcarnell
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Wed Oct 14, 2009 9:52 pm
Location: Panama
Contact:

Re: JAuthentication::__construct: Could not load authenticat

Post by rpcarnell » Sun Oct 10, 2010 3:09 am

Well, not everyone can log into the database and fix the issue. Sometimes, all we have is FTP. It happened to me while working for a customer. NO DATABASE ACCESS.

See, sometimes you may want to disable the authentication plugin in order to use the JFusion authentication plugin, which allows you to log into PHPBB, etc at the same time you log yourself into Joomla.

This is how you solve the problem without a database. Careful, though, it is risky. For one, your Joomla version may be different than the one on the server. Here it goes:

Find the plugin helper file. It is at libraries/joomla/plugin/helper.php
Now find this code:
if (isset($user))
{
$aid = $user->get('aid', 0);

$query = 'SELECT folder AS type, element AS name, params'
. ' FROM #__plugins'
. ' WHERE published >= 1'
. ' AND access <= ' . (int) $aid
. ' ORDER BY ordering';
}
else
{
$query = 'SELECT folder AS type, element AS name, params'
. ' FROM #__plugins'
. ' WHERE published >= 1'
. ' ORDER BY ordering';
}
Now, what you need to do is force Joomla to upload those plugins that are used for authentication even though they haven't been published:

if (isset($user))
{
$aid = $user->get('aid', 0);

$query = 'SELECT folder AS type, element AS name, params'
. ' FROM #__plugins'
. ' WHERE published >= 1'
. ' AND access <= ' . (int) $aid
. ' OR folder=\'authentication\'' //**************add this line
. ' ORDER BY ordering';
}
else
{
$query = 'SELECT folder AS type, element AS name, params'
. ' FROM #__plugins'
. ' WHERE published >= 1'
. ' OR folder=\'authentication\'' //*********add this line
. ' ORDER BY ordering';
}

That should do the trick, but don't forget to change the file back to the way it was and careful, since your Joomla version may be different than the one on the FTP server.

ratak
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Oct 31, 2010 12:24 pm

Re: JAuthentication::__construct: Could not load authenticat

Post by ratak » Sun Oct 31, 2010 12:31 pm

I had the same problem. I tried everythig but did not help. Then I noticed that there are TWO similar tables in my DB. 1 was with jos_ prefix and the other with myprefix_ . I do the same with second table and it works. !

suwanna
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Nov 03, 2010 10:13 am

Re: JAuthentication::__construct: Could not load authenticat

Post by suwanna » Wed Nov 03, 2010 10:26 am

hello everyone,

i m newbie for Joomla, I get this error message too.
I have tried to do it follow your instruction such as change the field, publish to 1 for
Authentication - Joomla" and "User - Joomla" but I still can not log in to my site.

I get the problem after I installed phpBB3 and then installed JFusion yesterday. Yesterday it worked, i could log in to my site but for today why I can not log in to my joomla site?

Please help ! I see this post was in 2008, Hope anyone reply me soon
thanks so much

suwanna

wikkinfo
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sun Oct 24, 2010 5:20 am

Re: JAuthentication::__construct: Could not load authenticat

Post by wikkinfo » Wed Nov 03, 2010 3:30 pm

Thank You Every Body Here for Wondeer Full Tip.

Its Works for me

buononut
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Oct 12, 2010 3:16 am

Re: JAuthentication::__construct: Could not load authenticat

Post by buononut » Mon Nov 15, 2010 6:03 am

Awesome! Well, the fix is "awesome"... anyone know why/when/how this happens?

jahddt
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Fri Dec 03, 2010 4:15 pm

Re: JAuthentication::__construct: Could not load authenticat

Post by jahddt » Fri Dec 03, 2010 4:35 pm

rpcarnell wrote:Well, not everyone can log into the database and fix the issue. Sometimes, all we have is FTP. It happened to me while working for a customer. NO DATABASE ACCESS.

See, sometimes you may want to disable the authentication plugin in order to use the JFusion authentication plugin, which allows you to log into PHPBB, etc at the same time you log yourself into Joomla.

This is how you solve the problem without a database. Careful, though, it is risky. For one, your Joomla version may be different than the one on the server. Here it goes:

Find the plugin helper file. It is at libraries/joomla/plugin/helper.php
Now find this code:
if (isset($user))
{
$aid = $user->get('aid', 0);

$query = 'SELECT folder AS type, element AS name, params'
. ' FROM #__plugins'
. ' WHERE published >= 1'
. ' AND access <= ' . (int) $aid
. ' ORDER BY ordering';
}
else
{
$query = 'SELECT folder AS type, element AS name, params'
. ' FROM #__plugins'
. ' WHERE published >= 1'
. ' ORDER BY ordering';
}
Now, what you need to do is force Joomla to upload those plugins that are used for authentication even though they haven't been published:

if (isset($user))
{
$aid = $user->get('aid', 0);

$query = 'SELECT folder AS type, element AS name, params'
. ' FROM #__plugins'
. ' WHERE published >= 1'
. ' AND access <= ' . (int) $aid
. ' OR folder=\'authentication\'' //**************add this line
. ' ORDER BY ordering';
}
else
{
$query = 'SELECT folder AS type, element AS name, params'
. ' FROM #__plugins'
. ' WHERE published >= 1'
. ' OR folder=\'authentication\'' //*********add this line
. ' ORDER BY ordering';
}

That should do the trick, but don't forget to change the file back to the way it was and careful, since your Joomla version may be different than the one on the FTP server.
Thank you very much for this fix.

RickyJ123
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Dec 13, 2010 10:10 am

Re: JAuthentication::__construct: Could not load authenticat

Post by RickyJ123 » Mon Dec 13, 2010 10:34 am

blueyemen wrote:This may also help:

I use the version Joomla! 1.5.6

In my case changing the permission of the "Authentication - Joomla" table wasn't enough. I also had to change the permission of the "User - Joomla" to.

Booth "Authentication - Joomla" and "User-Joomla" must have the Published propertie set to 1.

I hope that could help someone.

Regards.
This solution worked for me thx ***** star!

FruRosborg
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Oct 14, 2010 10:40 pm

Re: JAuthentication::__construct: Could not load authenticat

Post by FruRosborg » Wed Dec 15, 2010 10:44 pm

Hello Everyone!

Thanks for all of this useful information...
I am having a little trouble :(

I have created my Joomla! site in LOCALHOST using MAMP. I am having this same error
* JAuthentication::__construct: Could not load authentication libraries.
* Username and password do not match

How can i fix this using my localhost? i.e. what file do i go into to change 0 to 1 as advise above as i cant go into a control panel....

Hope i make sense. Thank you so much

kurusetro
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Dec 16, 2010 9:33 am

Re: JAuthentication::__construct: Could not load authenticat

Post by kurusetro » Thu Dec 16, 2010 9:37 am

help me bro, i tried all of your suggestions but i'm still can't login to my joomla back end

uvilsv83s
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Jan 05, 2011 4:25 pm

Re: JAuthentication::__construct: Could not load authenticat

Post by uvilsv83s » Wed Jan 05, 2011 4:45 pm

blueyemen wrote:This may also help:

I use the version Joomla! 1.5.6

In my case changing the permission of the "Authentication - Joomla" table wasn't enough. I also had to change the permission of the "User - Joomla" to.

Booth "Authentication - Joomla" and "User-Joomla" must have the Published propertie set to 1.

I hope that could help someone.

Regards.
DesignGuy wrote:See the note below, I believe this helpful person meant "change from 0 to 1." I followed other instructions in this thread, but still had the same issue. Then, I followed the advice below, changing the "published" toggle under Authentication - Joomla, from ZERO to ONE, and it's back to work for me. ;)

So, when in phpMyAdmin:

1. Choose the database in question on the left panel / top.
2. Now, when looking at the database displayed, on the left panel, choose _plugins
3. Choose the Structure Tab > Edit the "published" Field (7th item down) and change "0" to "1"
4. Click "Save"
5. Go to the Browse Tab > id = 1 > name = Authentication-Joomla > Now, click on Edit pencil and change published = "1" and click on "Go" (save)

That should do ya...but if anyone has other suggestions to improve on this, fire away (this issue took me a couple hours to figure out, ohhh, I wish I paid attention in computer science class.

-John

+ + + + +

Re: JAuthentication::__construct: Could not load authentication libraries.

Postby linuxuk on Sat Jan 26, 2008 4:29 pm
;D hey

Is all fixed I went to Joomla DB using phpMYAdmin click on SQL tag and where is the Authentication Joomla Table
click there and find the published section and change to 1 from 0 and all working fine again,

THANKS Insomn3ak FOR THE TIP ;D
THANKS!! it works...
really helps alot

kammkyk1
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Mon Sep 27, 2010 12:04 am

Re: JAuthentication::__construct: Could not load authenticat

Post by kammkyk1 » Wed Jan 12, 2011 10:50 am

cheers guys it worked like a treat :D

SeoChicago
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Jan 25, 2011 4:13 pm
Location: Chicago
Contact:

Re: JAuthentication::__construct: Could not load authenticat

Post by SeoChicago » Tue Jan 25, 2011 4:47 pm

Insomn3ak wrote:I fixed this issue for myself earlier today. I was receiving this error message because I inadvertently disabled the plugin "Authentication - Joomla" which I thought was for the front-end authentication. It turns out that it was for the admin authentication (not sure why anyone would want to disable this).

I went into the Joomla database, and changed it's published status to 1 in the "jos_plugins" table. After that, I was able to login without any problems.
Thank you Insomn3ak!

You made the difference in my life. ;)

Regards,
Dacy
Last edited by mandville on Tue Jan 25, 2011 7:52 pm, edited 1 time in total.
Reason: signature against forum rules

jireljoomla
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Jan 28, 2011 5:22 am

Re: JAuthentication::__construct: Could not load authenticat

Post by jireljoomla » Fri Jan 28, 2011 5:28 am

blueyemen

Thanks for your reply, you saved me dude, i'm new to joomla and was really in deepshit. U'r solution helped me.

;D

Hammah
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Thu Oct 06, 2005 8:13 pm

Re: JAuthentication::__construct: Could not load authenticat

Post by Hammah » Fri Jan 28, 2011 5:01 pm

ok, after a database crash i'm getting this error when trying to login to admin control.

JAuthentication::__construct: Could not load authentication libraries

I've check the post here and i have changed the state of the published status to 1 in the "jos_plugins" table (it was 0), but no change.

I don't have a "Authentication - Joomla" row in my _plugins table, but i do have...

Authentication - LDAP
Authentication - GMail
Authentication - OpenID

all of which have published set to 0

I have tried upgrading to 1.15.22 from 1.15.14, but i can't remember the install instructions and after ftping the files and overwriting, if i'm supposed to run the INSTALL.php file i just get a blank page with "Restricted access".

any help apprecitated, thanks in advance.

User avatar
mandville
Joomla! Master
Joomla! Master
Posts: 15150
Joined: Mon Mar 20, 2006 1:56 am
Location: The Girly Side of Joomla in Sussex

Re: JAuthentication::__construct: Could not load authenticat

Post by mandville » Sat Jan 29, 2011 11:45 pm

gokhan198 wrote:last week i also meet this problem but solved it myself.
how?
HU2HY- Poor questions = Poor answer
Un requested Help PM's will be reported, added to the foe list and possibly just deleted
{VEL Team Leader}{TM Auditor }{ Showcase & Security forums Moderator}

nicmehr
I've been banned!
Posts: 36
Joined: Fri Feb 04, 2011 12:19 pm

Re: JAuthentication::__construct: Could not load authenticat

Post by nicmehr » Fri Feb 04, 2011 12:28 pm

mandville wrote:
gokhan198 wrote:last week i also meet this problem but solved it myself.
how?
i thnik best way for solving this problem is :

In my case changing the permission of the "Authentication - Joomla" table wasn't enough. I also had to change the permission of the "User - Joomla" to.

Booth "Authentication - Joomla" and "User-Joomla" must have the Published propertie set to 1.

i do it and solved my problem
thanks from blueyemen that helpedto me.

nwambach
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Apr 25, 2010 6:18 am

Re: JAuthentication::__construct: Could not load authenticat

Post by nwambach » Sat Feb 26, 2011 6:31 am

Well, I did the same thing everyone else did, I disabled the Authentication-Joomla plug-in... only problem with fixing it was that I'm using Joomla 1.6. In Joomla 1.6 you need to do this:

go to jos_extensions table (not jos_plugins)
find this record and change the bold items to these values:
extension_id 401
name plg_authentication_joomla
type plugin
element joomla
folder authentication
client_id 0
enabled 1
access 1
protected 1

manifest_cache
params {}
custom_data
system_data
checked_out 0
checked_out_time 0000-00-00 00:00:00
ordering
state 1

---

find this record and change the bold items to these values:
extension_id 432
name plg_user_joomla
type plugin
element joomla
folder user
client_id 0
enabled 1
access 1
protected 0

manifest_cache
params {"autoregister":"1"}
custom_data
system_data
checked_out 0
checked_out_time 0000-00-00 00:00:00
ordering 2
state 1

I changed just ENABLED and ACCESS at first and no dice. Nothing helped until I changed state to '1' on both of them.

davidknoerr
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sat Mar 05, 2011 6:06 am

Re: JAuthentication::__construct: Could not load authenticat

Post by davidknoerr » Sat Mar 05, 2011 6:24 am

I had the same error "JAuthentication:_construct: Could not load authentication libraries", but fixed it with another solution I haven't yet seen mentioned.

I have been working on this for 9 hours, and I finally went to another database I had for another site, compared the settings for mySQL database and discovered the error. I also reuploaded the Plugins folder (after I copied the original). I tested the login after I uploaded the Plugins, but I had the same issue.

My mySQL settings that work in my jos_plugins are now:
id name element folder access ordering published iscore
1 Authentication - Joomla joomla authentication 0 1 1 1

For me, my "Access" had been changed to 2 on the Authentication - Joomla table.
Also on the User - Joomla table my "Access" had been changed to 1.

I set the Authentication - Joomla table "Access" to "0" and then all I got was a login-password error.

As soon as I set the User - Joomla table to "0", it worked fine. I logged in, but it took 3 times. Perhaps the cache needed to be cleared out. (I also reset the password - hash tags.)

But thank you all so much for getting me on the right track.


Locked

Return to “Security in Joomla! 1.5”