Problem with Joomla Login

Joomla versions 2.5, 1.7 and 1.6 are all end-of-life since December 31st 2014 and are no longer supported. Please use Joomla 3.x instead.

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.
Locked
the_zoker_09
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sat Mar 31, 2012 11:45 am

Problem with Joomla Login

Post by the_zoker_09 » Mon Apr 02, 2012 11:31 pm

Hello togheter,

Since today I have a problem with login in to my joomla backend.

Every time I try there is only this error:
Fatal error: Call to undefined method JSession::checkToken() in /Download/administrator/components/com_login/controller.php on line 52
What is the problem?
How can I solve it?

Thank you
the_zoker_09

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44018
Joined: Sat Apr 05, 2008 9:58 pm

Re: Problem with Joomla Login

Post by Webdongle » Mon Apr 02, 2012 11:39 pm

Why is the /Download folder in the path ?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

the_zoker_09
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sat Mar 31, 2012 11:45 am

Re: Problem with Joomla Login

Post by the_zoker_09 » Tue Apr 03, 2012 12:17 am

This sites is a download site so the folder where the Joomla is placed is "Download"

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44018
Joined: Sat Apr 05, 2008 9:58 pm

Re: Problem with Joomla Login

Post by Webdongle » Tue Apr 03, 2012 12:24 am

So /Download folder is in your /htdocs folder on your PC ?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
garkell
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Mon Aug 31, 2009 9:32 pm
Location: Australia
Contact:

Re: Problem with Joomla Login

Post by garkell » Tue Apr 03, 2012 4:42 am

I have just received the same message.

Steps taken before this...
1. Tried an upgrade from J!2.5.3 to J!2.5.4 but failed with a "Copy Failed" on file libraries/joomla/filesystem/folder.php.
2. Switched debug on
3. Retried install, same failure which identified the failed file
4. Checked permissions on folder and upped this to 775
5. Retried install, same failure
6. Tried to switch debug off and Failed with this same error message.
7. Updated the config file to switch debug off
8. Now can't log in to Admin area with this message.

Any assistance appreciated before I start mannually over-writing files one at a time. Cheers.

Glenn

User avatar
garkell
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Mon Aug 31, 2009 9:32 pm
Location: Australia
Contact:

Re: Problem with Joomla Login

Post by garkell » Tue Apr 03, 2012 5:00 am

Ok, just copied in J!2.5.3 version of the offending controller.php file and I have been able to log in.

Comparison of the to version of this file show on line 76:
J!2.5.3 = JRequest::checkToken('default') or jexit(JText::_('JInvalid_Token'));

J!2.5.4 = JSession::checkToken('request') or jexit(JText::_('JInvalid_Token'));

Just thought I'd mention this. Cheers.

Glenn

tripthelight
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Apr 03, 2012 4:40 am

Re: Problem with Joomla Login

Post by tripthelight » Tue Apr 03, 2012 5:14 am

I'm having a similar problem with log in now to my admin area since updating to 2.5.4. However, I've not received any error messages, just a screen with the top bar of the Joomla adminstration page, with the "View Site" button and the "Log In" button and the bottom copyright. The fields for log in have disappeared.

Where do I find the controller.php file from 2.5.3 to copy over the one that was created by 2.5.4? Maybe that will help me be able to log in.

User avatar
garkell
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Mon Aug 31, 2009 9:32 pm
Location: Australia
Contact:

Re: Problem with Joomla Login

Post by garkell » Tue Apr 03, 2012 5:33 am

administrator/components/com_login/controller.php

tripthelight
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Apr 03, 2012 4:40 am

Re: Problem with Joomla Login

Post by tripthelight » Tue Apr 03, 2012 5:51 am

garkell wrote:administrator/components/com_login/controller.php
Thanks for replying. This is a real security problem with this update. Unfortunately, your fix didn't work for me but I sure do appreciate your input. Thanks!

fjpo
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Mar 04, 2012 4:30 pm

Re: Problem with Joomla Login

Post by fjpo » Tue Apr 03, 2012 7:56 am

I have solved the problem, replacing the file controller.php of ../administrator/components/com_login with another 2.5.3 installation controller.php file.

the_zoker_09
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Sat Mar 31, 2012 11:45 am

Re: Problem with Joomla Login

Post by the_zoker_09 » Tue Apr 03, 2012 7:57 am

Webdongle wrote:So /Download folder is in your /htdocs folder on your PC ?
Yes. The hole path is:
/www/htdocs/w00ec420/Domains/Download/administrator/components/com_login/controller.php

But I solved the problem by copying the 2.5.3 controller.php file in the Joomla installation.

edit:
There is just another error by editing the config:
Fatal error: Call to undefined method JSession::checkToken() in /www/htdocs/w00ec420/Domains/Download/administrator/components/com_config/controllers/application.php on line 41

marchelo
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Thu Nov 02, 2006 7:30 pm

Re: Problem with Joomla Login

Post by marchelo » Tue Apr 03, 2012 9:04 am

Replacing the controller.php with the old version hasnt fixed my problem.
My problem is that I can t access to my admin panel at all. No even the admin bar or white screen. I can t reproduce my problem in my local/dev site, because I dont get the error and everything works smooth there.

jhilverink
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Tue Apr 03, 2012 10:31 am

Re: Problem with Joomla Login

Post by jhilverink » Tue Apr 03, 2012 11:22 am

I do have the same problem. No backend acces after update from 2.5.3 to 2.5.4.
Fatal error: Call to undefined method JSession::checkToken() in /administrator/components/com_login/controller.php on line 52

Is there a fix?

marchelo
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Thu Nov 02, 2006 7:30 pm

Re: Problem with Joomla Login

Post by marchelo » Tue Apr 03, 2012 1:04 pm

I cant find a solution yet

neohipper
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Apr 03, 2012 2:06 pm

Re: Problem with Joomla Login

Post by neohipper » Tue Apr 03, 2012 2:16 pm

It seems that the JRequest::checkToken() has been changed to JSession::checkToken() in several places. For instance in manage.php where it also generates a 500 error. To prevent me having to find all of these instances I added the following to /libraries/joomla/session/session.php (just before the last closing bracket):

public function checkToken($argument='default'){
return JRequest::checkToken($argument);
}

This mimicks the otherwise lost function.

btw: my joomla administration panel hasn't changed to 2.5.4 and the update icon is still telling me to update, however when pressing the find updates button in the update screen no updates appear..

Andreas76
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Apr 03, 2012 3:36 pm

Re: Problem with Joomla Login

Post by Andreas76 » Tue Apr 03, 2012 3:57 pm

Hello, i am new in this forum,

i had today similar problems after updating one of my sites from 2.5.3 to 2.5.4 and my solution was by replacing the controller.php with 2.5.3 and also replacing the line 30 of helper.php (path: administrator/includes) from
if (!$user->authorise('core.login.admin')) {
to
if ($user->get('guest')) {

Good luck!

User avatar
JSYMedia
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 123
Joined: Fri Aug 25, 2006 2:40 am
Location: Largo, FL
Contact:

Re: Problem with Joomla Login

Post by JSYMedia » Tue Apr 03, 2012 7:03 pm

I fixed this issue by doing the following:

1. Download complete 2.5.3 package
http://joomlacode.org/gf/project/joomla ... ge_id=6302

2. FTP complete administrator folder and overwrite all

I'm back in and it's working fine.

BTW ~ when I check my Joomla installation version (after overwriting the administrator folder from 2.5.3) it still says I'm using 2.5.4. :geek:
Tampa Joomla web design at http://JSYMedia.com.

User avatar
garkell
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Mon Aug 31, 2009 9:32 pm
Location: Australia
Contact:

Re: Problem with Joomla Login

Post by garkell » Wed Apr 04, 2012 5:15 am

FWIW

I resolved this issue by manually ftp'ing all files from the upgrade 2.5.3 to 2.5.4 package, over-writing all existing ones on the server. Possibly a safer fix that hacking individual files? Just a thought.

My problem appears the be some files were upgraded and others didn't and thus have a mix of the JSession calls with JRequest calls. Hope this might help others with a similar problem.

Glenn

User avatar
amitpatekar
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 213
Joined: Wed Oct 15, 2008 9:18 am
Location: India - Pune
Contact:

Re: Problem with Joomla Login

Post by amitpatekar » Tue Jun 05, 2012 6:45 am

Problem SOLVED by Replacing 2 occurrences of JRequest with Jsession in administrator/components/com_login/controller.php
Regards
Amit Patekar
Follow me on twitter @amitpatekar
Or visit http://www.itdesignlab.com

User avatar
amitpatekar
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 213
Joined: Wed Oct 15, 2008 9:18 am
Location: India - Pune
Contact:

Re: Problem with Joomla Login

Post by amitpatekar » Tue Jun 05, 2012 7:04 am

neohipper wrote:It seems that the JRequest::checkToken() has been changed to JSession::checkToken() in several places. For instance in manage.php where it also generates a 500 error. To prevent me having to find all of these instances I added the following to /libraries/joomla/session/session.php (just before the last closing bracket):

public function checkToken($argument='default'){
return JRequest::checkToken($argument);
}

This mimicks the otherwise lost function.

btw: my joomla administration panel hasn't changed to 2.5.4 and the update icon is still telling me to update, however when pressing the find updates button in the update screen no updates appear..
Thank you very much, this has solved all the problems at several different locations.
Regards
Amit Patekar
Follow me on twitter @amitpatekar
Or visit http://www.itdesignlab.com

0perap1xie
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Tue Sep 28, 2010 5:52 pm

Re: Problem with Joomla Login

Post by 0perap1xie » Fri Jun 15, 2012 7:50 pm

Thank you, Neohipper. Your solution fixed it for me as well!

alanbagley24
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Wed May 18, 2011 9:01 am

Re: Problem with Joomla Login

Post by alanbagley24 » Wed Aug 22, 2012 9:29 am

neohipper, nice one, your solution worked for me as well

Kind regards
Alan


Locked

Return to “Migrating and Upgrading to Joomla! 2.5”