The Joomla! Forum ™



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.



Post new topic Reply to topic  [ 22 posts ] 
Author Message
PostPosted: Mon Apr 02, 2012 11:31 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 31, 2012 11:45 am
Posts: 5
Hello togheter,

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

Every time I try there is only this error:
Quote:
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


Top
 Profile  
 
PostPosted: Mon Apr 02, 2012 11:39 pm 
User avatar
Joomla! Master
Joomla! Master

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 25381
Location: @Webdongle
Why is the /Download folder in the path ?

_________________
'When I'm right nobody remembers when I'm wrong nobody forgets.'

http://weblinksonline.co.uk/joomla-faq.html
http://www.weblinksonline.co.uk/updating-joomla.html


Top
 Profile  
 
PostPosted: Tue Apr 03, 2012 12:17 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 31, 2012 11:45 am
Posts: 5
This sites is a download site so the folder where the Joomla is placed is "Download"


Top
 Profile  
 
PostPosted: Tue Apr 03, 2012 12:24 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Sat Apr 05, 2008 9:58 pm
Posts: 25381
Location: @Webdongle
So /Download folder is in your /htdocs folder on your PC ?

_________________
'When I'm right nobody remembers when I'm wrong nobody forgets.'

http://weblinksonline.co.uk/joomla-faq.html
http://www.weblinksonline.co.uk/updating-joomla.html


Top
 Profile  
 
PostPosted: Tue Apr 03, 2012 4:42 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Aug 31, 2009 9:32 pm
Posts: 23
Location: Australia
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


Top
 Profile  
 
PostPosted: Tue Apr 03, 2012 5:00 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Aug 31, 2009 9:32 pm
Posts: 23
Location: Australia
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


Top
 Profile  
 
PostPosted: Tue Apr 03, 2012 5:14 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Apr 03, 2012 4:40 am
Posts: 4
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.


Top
 Profile  
 
PostPosted: Tue Apr 03, 2012 5:33 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Aug 31, 2009 9:32 pm
Posts: 23
Location: Australia
administrator/components/com_login/controller.php


Top
 Profile  
 
PostPosted: Tue Apr 03, 2012 5:51 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Apr 03, 2012 4:40 am
Posts: 4
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!


Top
 Profile  
 
PostPosted: Tue Apr 03, 2012 7:56 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Sun Mar 04, 2012 4:30 pm
Posts: 1
I have solved the problem, replacing the file controller.php of ../administrator/components/com_login with another 2.5.3 installation controller.php file.


Top
 Profile  
 
PostPosted: Tue Apr 03, 2012 7:57 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Mar 31, 2012 11:45 am
Posts: 5
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:
Quote:
Fatal error: Call to undefined method JSession::checkToken() in /www/htdocs/w00ec420/Domains/Download/administrator/components/com_config/controllers/application.php on line 41


Top
 Profile  
 
PostPosted: Tue Apr 03, 2012 9:04 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Nov 02, 2006 7:30 pm
Posts: 20
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.


Top
 Profile  
 
PostPosted: Tue Apr 03, 2012 11:22 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Apr 03, 2012 10:31 am
Posts: 8
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?


Top
 Profile  
 
PostPosted: Tue Apr 03, 2012 1:04 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Nov 02, 2006 7:30 pm
Posts: 20
I cant find a solution yet


Top
 Profile  
 
PostPosted: Tue Apr 03, 2012 2:16 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Apr 03, 2012 2:06 pm
Posts: 1
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..


Top
 Profile  
 
PostPosted: Tue Apr 03, 2012 3:57 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Tue Apr 03, 2012 3:36 pm
Posts: 1
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!


Top
 Profile  
 
PostPosted: Tue Apr 03, 2012 7:03 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Fri Aug 25, 2006 2:40 am
Posts: 115
Location: Largo, FL
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.


Top
 Profile  
 
PostPosted: Wed Apr 04, 2012 5:15 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Aug 31, 2009 9:32 pm
Posts: 23
Location: Australia
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


Top
 Profile  
 
PostPosted: Tue Jun 05, 2012 6:45 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Wed Oct 15, 2008 9:18 am
Posts: 210
Location: India - Pune
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


Top
 Profile  
 
PostPosted: Tue Jun 05, 2012 7:04 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Wed Oct 15, 2008 9:18 am
Posts: 210
Location: India - Pune
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


Top
 Profile  
 
PostPosted: Fri Jun 15, 2012 7:50 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Sep 28, 2010 5:52 pm
Posts: 18
Thank you, Neohipper. Your solution fixed it for me as well!


Top
 Profile  
 
PostPosted: Wed Aug 22, 2012 9:29 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed May 18, 2011 9:01 am
Posts: 10
neohipper, nice one, your solution worked for me as well

Kind regards
Alan


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ] 



Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group