[horde] Horde upgrade issues with CSS and JS..
Simon Brereton
simon.brereton at buongiorno.com
Wed Oct 19 16:10:26 UTC 2011
On 18 October 2011 18:00, Michael M Slusarz <slusarz at horde.org> wrote:
> Quoting Simon Brereton <simon.brereton at buongiorno.com>:
>
>> I upgraded to Horde 4.0.10 today and suffered the disappearing sidebar -
>> http://lists.horde.org/archives/horde/Week-of-Mon-20110613/041209.html
>>
>> I was able to fix it by installing with -f
>>
>> However, I also implemented js and CSS caching - and that has almost
>> entirely hosed the installation (it works, but it is sure not pretty).
>>
>> How can I go about debugging this?
>>
>>
>> 76 $conf['cache']['default_lifetime'] = 86400;
>> 77 $conf['cache']['params']['sub'] = 0;
>> 78 $conf['cache']['driver'] = 'File';
>> 79 $conf['cache']['compress'] = true;
>> 80 $conf['cache']['use_memorycache'] = '';
>> 81 $conf['cachecssparams']['driver'] = 'filesystem';
>> 82 $conf['cachecssparams']['lifetime'] = 86400;
>> 83 $conf['cachecssparams']['compress'] = 'php';
>> 84 $conf['cachecss'] = true;
>> 85 $conf['cachejsparams']['driver'] = 'filesystem';
>> 86 $conf['cachejsparams']['compress'] = 'php';
>> 87 $conf['cachejsparams']['lifetime'] = 86400;
>> 88 $conf['cachejs'] = true;
>> 89 $conf['cachethemes'] = false;
>
> Did you run the test script? High chance you have not given the proper
> permissions to the static directory.
I hadn't run the script - but after setting testdisable to false, I
get this result.
Local File Permissions
* Is /usr/share/horde4/lib/../static writable by the web server user? Yes
Which I presume is what you were after, yes? Everything else is
either green or yellow (in the case of Kolab or LDAP, neither of which
I use).
This appears to be limited to firefox into which I've logged as the
administrator (despite clearing the cookies and the cache. Twice).
However, if I log in (same browser to another account whilst the
log-in screen has no CSS, as soon as I navigate to different
applications, it all looks normal. And the log-out screen does have
CSS. One exception - I logged in one other account and all the apps,
except IMP, were ok. On the other account, everything was OK.
Everything appears to be okay in Chromium too.
I also have multiple domains - so horde is available on
https://webmail.domain1.com and https://webmail.domain2.net - however,
both accept any valid user account from the IMAP server (so I could
login with simon at domain1.com on the domain2.net interface for example.
And here I see the same issue - when I log in, my CSS is hosed, but
other accounts are not.
So it appears to be limited to a) firefox I've logged in at (until you
log in with a different account, then it's fine), and b) my account
anywhere I log in. Perhaps it's something to do with the theme? But
in fact my account doesn't have theme modifications (although one of
the other accounts I use - postmaster - does; and that works fine)..
Oh - I don't know if this is related, but I was testing also the
mobile interface messages list fix - and that works fine. I have no
problem with the CSS there!
Then I turned CSS caching off - and whilst the page reloaded and
looked great, I got this error when I logged off:
A fatal error has occurred
Failed to import configuration file "/usr/share/horde4/lib/../config/nls.php".
Details have been logged for the administrator.
Also, when I log back in the js in the sidebar no longer works unless
I turn off the js caching.
So, then I turned both off and it was fine.
Finally, I renabled both - but chose Horde Caching instead of the
recommended file system - and this too appears to work. However, I'd
like to follow the horde team's recommendations where possible..
Currently my cache settings look like:
$conf['cache']['default_lifetime'] = 86400;
$conf['cache']['params']['sub'] = 0;
$conf['cache']['driver'] = 'File';
$conf['cache']['compress'] = true;
$conf['cache']['use_memorycache'] = '';
$conf['cachecssparams']['driver'] = 'horde_cache';
$conf['cachecssparams']['lifetime'] = 86400;
$conf['cachecssparams']['compress'] = 'php;
$conf['cachecss'] = true;
$conf['cachejsparams']['driver'] = 'horde_cache';
$conf['cachejsparams']['compress'] = 'php';
$conf['cachejsparams']['lifetime'] = 86400;
$conf['cachejs'] = true;
$conf['cachethemes'] = false;
Perhaps it's a file system permissions issue?
Simon
More information about the horde
mailing list