Fatal error: ... checkToken() in controller.php on line 52

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.
Locked
elopoppi
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Apr 19, 2012 6:58 pm

Fatal error: ... checkToken() in controller.php on line 52

Post by elopoppi » Thu Apr 19, 2012 7:10 pm

Hello,

I'm upgrading/migrating my website.
-Have upgrated from the old 1.5.15 to 1.5.26
- have installed Jupgrade
- have upgrated using jupgrade to 2.5

and was able to login w/o problem to back end

then Jupgrade asked to upgrade to 2.5.4
which I did

Only then was I taken through the 6 or so steps of installation
(creation of website w/ joomla, msql login etc)

When finished, successfully deleted "Installation" files

Now:
I can no longer login to back-end and get this message:
Fatal error: Call to undefined method JSession::checkToken() in /homez.46/roulevog/www/jupgrade/administrator/components/com_login/controller.php on line 52
I have tried, as seen on other topics, copying original controller.php file... doesn't change anything.
and I have no idea either of what the error means or how to fix it... obviously ;) otherwise I wouldn't be posting...

Thanks in advance for any help

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 13137
Joined: Thu Feb 15, 2007 5:48 am
Location: Zagreb, Croatia

Re: Fatal error: ... checkToken() in controller.php on line

Post by toivo » Thu Apr 19, 2012 9:06 pm

The error message means that a certain file containing the definition of the checkToken method or function in the class JSession is missing. That file is libraries/joomla/session/session.php. You can find the file from the installation archive and copy it to the server.

If more files are missing, it is best to copy all the installation files - except the installation folder - to the server.
Toivo Talikka, Global Moderator

elopoppi
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Apr 19, 2012 6:58 pm

Re: Fatal error: ... checkToken() in controller.php on line

Post by elopoppi » Fri Apr 20, 2012 1:14 pm

Thank you!
this has easily solved my access problem to the back end. I now can see that...

- the Joomla version actually installed is 2.5.1... ? OK, I can re-upgrade to 5.2.4
BUT
all my content has disappeared...

I can copy/paste content from "old" site to this one, but is there any other way I can "recuperate" my content ?
If not, then I'll go the long way home ;)

Thanks again for your help!

User avatar
humvee
Joomla! Master
Joomla! Master
Posts: 14713
Joined: Wed Aug 17, 2005 10:27 pm
Location: Kent, England

Re: Fatal error: ... checkToken() in controller.php on line

Post by humvee » Sat Apr 21, 2012 5:28 pm

How far did you follow toivo's advice?
Did you just upload that one file or copy the whole joomla_package?
You did not run the installation again, did you?
Is all your content still present in the database? Check with PHPMyAdmin or similar.

elopoppi
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Thu Apr 19, 2012 6:58 pm

Re: Fatal error: ... checkToken() in controller.php on line

Post by elopoppi » Sun Apr 22, 2012 9:51 am

Hello,

I only re-uploaded the one file: session.php and did not re-run installation.

The website appeared fine, but all the content is invisible.
I say invisible because through PHPMyAdmin I was able to see that the content is all there...

However, since yesterday I have a new problem - but this one with my host who is not replying.
My website redirects to the webmail interface - without me asking anything...
So I guess until my host get this solved I won't be able to do much on the website - not through joomla! interface at least.
Through PHPmyAdmin yes though...


Locked

Return to “Migrating and Upgrading to Joomla! 2.5”