Page 1 of 1

Horde missing style/script resources via cache.php

Posted: 02 Feb 2011, 17:26
by B3M
Horde requests scripting and styling resources through http://b3.local/pim/imp/cache.php/js|css/<unique>

The problem is that these URLs return empty pages in all the browsers I have on my system. What is up with that?

I have made no alterations to Horde.

Apache’s error log throws:
Apache’s error log wrote:[error] PHP Warning: xcache_get(): xcache.var_size is either 0 or too small to enable var data caching in /usr/share/horde3/lib/Horde/Cache/xcache.php on line 45, referer: http://b3.local/pim/imp/mailbox.php?mailbox=INBOX

Re: Horde missing style/script resources via cache.php

Posted: 02 Feb 2011, 17:57
by B3M
After doing "aptitude reinstall php5-xcache" I got an error message saying "dpkg: version '/etc/php5/conf.d' has bad syntax: invalid character in version number". This is similar to the error I got with php5-psql here. The same fix did not work with this problem, however.

"/etc/php5/apache2/conf.d/xcache.ini" is listed in pphinfo();

Re: Horde missing style/script resources via cache.php

Posted: 02 Feb 2011, 18:13
by B3M
I set "xcache.var_size = 16M" in /etc/php5/apache2/conf.d/xcache.ini in combination with the config copy trick (see the link in my post above) and made the error go away.

The problem, however, is not resolved. I just don’t have any error messages/clues anymore. The cached js/css in Horde still returns empty pages.

Re: Horde missing style/script resources via cache.php

Posted: 02 Feb 2011, 18:38
by B3M
For anyone looking for a work-around:

Disable caching through /etc/horde/imp4/conf.php

Code: Select all

$conf['server']['cachejs'] = fakse;
$conf['server']['cachecss'] = false;