By Randall McCallum on Monday, 02 December 2013
Posted in Technical Issues
Replies 6
Likes 0
Views 1.4K
Votes 0
In the past few weeks I have noticed that every time I try to login, I get an invalid token message in the Chrome browser. I have EasySocial, EasyBlog and EasyDiscuss installed.

This invalid token issue is no high on my agenda to get fixed. I can't figure out the solution so this doesn't happen all the time. In some instances the second time I try I can login. Many times I have to refresh the cache on the browser so I can login.

Suggestions?
This is what I found out during a search for invalid token and Joomla 3.

Do I have to turn off caching altogether? What I see below makes suggestions that kind of defeats the purpose of trying to use the cache plugin to speed the site up. Still not sure how to resolve this, other than to turn the cache plugin OFF and Global Configuration System Cache setting to OFF.

So what do I do now to speed my site up from poor performance if I have to turn such features off?

From a thread on http://www.itoctopus.com/
http://www.itoctopus.com/invalid-token-on-joomla-login

Why are you getting this invalid token error?

Now since it’s your website and you (or your legitimate users) are trying to login (or vote, or submit a form, etc..) to it normally, then theoretically, you shouldn’t see the “Invalid Token” message. However, since you are reading this post, then you have obviously experienced it! But why? Well, there are many reasons for you to get this error, and here’s a list of the most common ones:

Expired cookie: The cookie that Joomla expects you to have has expired. Deleting your cookies and trying to login again will fix the problem.
Caching: If we had a dime on how many problems caching creates on a Joomla website, we’d be billionaires! It’s amazing how many conflicts this very useful feature creates in Joomla (maybe the future of Joomla will feature a better caching system?). There are two ways to address the caching problem:

Disable caching entirely. This is a two step process:
Login to your Joomla control panel, go to Site, Global Configuration, System, and click on “No” next to Cache under Cache Settings and
Disable the System cache plugin, by going to Extensions, Plugins, and then search for the System – Cache and click the checkbox next to it, and finally click on Disable on the top right.
Fix the code for the login (or the other feature you’re having problem with) yourself, by commenting out the check for the token. (You may need Joomla Experts to do that for you!)
·
Monday, 02 December 2013 08:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Randall,

In Joomla, when it caches the page the token will also get cached. If I recall correctly, the "System - Cache" plugin is supposed to help replace these token codes and the System - Cache plugin needs to be switched on (Not too sure if they changed this behavior in Joomla 3.x.)
·
Monday, 02 December 2013 09:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks Mark,

Maybe I can get around this by using other methods to speed up my site. I downloaded NoNumbers CDN plugin and also another most popular caching plugin (can't recall the name) and I created an Amazon AWS account, but O don't think I set things right.

I'll have to find the best way to compress JavaScript etc and use the CDN then I don't have to use the default Joomla Cahing stuff.

I'll have to find a good tutorial. it will be a good learning experience to get this working properly. My sites PageSpeed number is terrible at 52/100 so I need to get that number to show in the high 80s. A challenge, but a good learning experience.
·
Monday, 02 December 2013 09:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, the default Joomla caching doesn't compress javascripts. Perhaps you want to try JCH Optimize and also use a CDN to serve those compressed javascript files.
·
Monday, 02 December 2013 11:57
·
0 Likes
·
0 Votes
·
0 Comments
·
Yep. I already downloaded and installed JCH Optimize and also use the NoNumberrs CDN to serve those compressed javascript files., but it had some conflicts with the new Rockettheme template I just installed. I went back to RT because of their support and elegant templates.

The site speed increased from 33/100 PageSpeed to 58/100 before optimization. I replaced the JoomlaShine template as my subscription expired so I went with Rovkettheme again.

Tomorrow I have to resolve the conflicts with JCH Optimize and the NN CDN. Then go with another gigabyte or 2 of memory n my VPS subscription. Lots to do, not enough time.

I think I asked late last week, EasySocial v1.1 is coming later this week or? Can't recall timing you mentioned about the next beta?
·
Monday, 02 December 2013 12:30
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Randall,

1.1.0 beta 2 will be released tomorrow
·
Monday, 02 December 2013 22:26
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post