1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Error with Xcache after upgrade to 1.4.5

Discussion in 'Installation, Upgrade, and Import Support' started by gavpeds, Mar 6, 2015.

  1. gavpeds

    gavpeds Active Member

    I Think this is to do with xcache considering the error but not sure how to fix.

    I only started getting this error after updgrade and have not changed the php.ini file. Was working fine in 1.4.4

    This is what i have in the library/config.php file
    $config['cache']['enabled'] = true;
    $config['cache']['frontend'] = 'Core';
    $config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
    Any ideas?
    Last edited: Mar 6, 2015
  2. gavpeds

    gavpeds Active Member

    Ok Digging round in library/Zend/Cache/Backend/Xcache.php:186

    Should i be changing the things in red now?

    // Necessary because xcache_clear_cache() need basic authentification
    $backup = array();
    if (isset($_SERVER['PHP_AUTH_USER'])) {
    $backup['PHP_AUTH_USER'] = $_SERVER['PHP_AUTH_USER'];
    if (isset($_SERVER['PHP_AUTH_PW'])) {
    $backup['PHP_AUTH_PW'] = $_SERVER['PHP_AUTH_PW'];
    if ($this->_options['user']) {
    $_SERVER['PHP_AUTH_USER'] = $this->_options['user'];
    if ($this->_options['password']) {
    $_SERVER['PHP_AUTH_PW'] = $this->_options['password'];

    Although line 186 is this

    $cnt = xcache_count(XC_TYPE_VAR);
    for ($i=0; $i < $cnt; $i++) {
    xcache_clear_cache(XC_TYPE_VAR, $i);
    Last edited: Mar 6, 2015
  3. Sheratan

    Sheratan Well-Known Member

    Check your xcache.ini, make sure admin and pass is configured
  4. Sheratan

    Sheratan Well-Known Member

    You can find xcache.ini by create phpinfo file. Find in :Additional .ini files parsed"

    if there is no xcache.ini, check your php.ini if there is any xcache configuration in there.

Share This Page