I've noticed that if you allow Xanthia (aka "Themes") to cache content for the Users module, it will cache the contents of the login screen function. Because the login processing function checks the CSRF token ('authid') that is transmitted from this interface (which is desirable), transmitting a cached authid can result in silent login failures. (The error messages are never displayed, because Xanthia has cached the login screen.)
You can solve this problem by telling Xanthia to ignore the Users module. Do this in Administration -> Layout [tab] -> Theme -> Settings -> Caching -> Modules to exclude from caching -> [Check the "Users" box].
Xanthia's propensity for caching module output remains highly problematic. I turn off the caching engine for all modules that I use in my sites; pnRender caching works just as well, and is controllable by the module.
And, to help people searching for resolutions to this issue:
login fails
login failure
can't log in
login error
--
--
Ben Birney
http://www.tilsontech.com/
http://www.sophiasfall.com/
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Xanthia caches the login screen, causes silent failures
-
- Rank: Registered User
- Registered: Apr 23, 2004
- Last visit: Feb 07, 2010
- Posts: 30
-
- Rank: Team Member
- Registered: Sep 06, 2006
- Last visit: May 09, 2010
- Posts: 2446
Yes, known issue but unfortunatelly
without a warning about it in the Theme Admin Panel...
if this Xanthia doesn't respect the pnRender nocache tags, or the authids are not fully converted to inserts (Smarty doesn't cache them), Theme cache should be commented out for 1.2
--
- Mateo T. -
Mis principios... son mis fines -
- Rank: Registered User
- Registered: Apr 23, 2004
- Last visit: Feb 07, 2010
- Posts: 30
It would probably be sufficient to have Xanthia automatically configured to not cache Users when it initializes. No other code changes would be needed if that were done.
--
--
Ben Birney
http://www.tilsontech.com/
http://www.sophiasfall.com/ -
- Rank: Team Member
- Registered: Jan 19, 2003
- Last visit: Apr 06, 2010
- Posts: 442
-
- Rank: Registered User
- Registered: Apr 23, 2004
- Last visit: Feb 07, 2010
- Posts: 30
Thanks Guite. That is exactly the bug report I was going to write before I decided to post here instead. :)
--
--
Ben Birney
http://www.tilsontech.com/
http://www.sophiasfall.com/ -
- Rank: Team Member
- Registered: May 03, 2004
- Last visit: May 31, 2010
- Posts: 511
Please also do not forget that Xanthia caching is able to break any multi-language setup. pnRender caching should be set to very short (max. 10 seconds) cache time for the same reason.
Greetings,
Chris
--
an operating system must operate
development is life
my repo -
- Rank: Registered User
- Registered: Apr 23, 2004
- Last visit: Feb 07, 2010
- Posts: 30
Ideally, the pnRender cache IDs would include the current language, effectively creating a separate cached version of each page (or whatever) per language. So, instead of having the object ID be the cache ID, have it be a combination, a la
$pnRender->cache_id = "{$objectid}_{$language}";
We do this in our multilingual page management module, and it works like a charm. Takes a little extra disk space, but not all that much. And caching is, after all, trading disk space for speed.
--
--
Ben Birney
http://www.tilsontech.com/
http://www.sophiasfall.com/
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
