global config not showing up - JoomlArt
T3 Framework & 9 templates updated to Joomla 3.6.0 More Details!
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • lumpkan1 Friend
    #176664

    when i log into the site i get the following error message:
    Fatal error: Cannot make non static method JCacheStorage::test() static in class JCacheStorageCachelite in /home/wheels/public_html/libraries/joomla/cache/storage/cachelite.php on line 334

    This happens when i click on global config.
    here is the code:
    jimport(‘joomla.filesystem.folder’);

    if (trim($group) == ”)
    {
    $clmode = ‘notgroup’;
    }

    if ($mode == null)
    {
    $clmode = ‘group’;
    }

    switch ($mode)
    {
    case ‘notgroup’:
    $clmode = ‘notingroup’;
    $success = self::$CacheLiteInstance->clean($group, $clmode);
    break;

    case ‘group’:
    if (is_dir($this->_root . ‘/’ . $group))
    {
    $clmode = $group;
    self::$CacheLiteInstance->setOption(‘cacheDir’, $this->_root . ‘/’ . $group . ‘/’);
    $success = self::$CacheLiteInstance->clean($group, $clmode);
    JFolder::delete($this->_root . ‘/’ . $group);
    }
    else
    {
    $success = true;
    }

    break;

    default:
    if (is_dir($this->_root . ‘/’ . $group))
    {
    $clmode = $group;
    self::$CacheLiteInstance->setOption(‘cacheDir’, $this->_root . ‘/’ . $group . ‘/’);
    $success = self::$CacheLiteInstance->clean($group, $clmode);
    }
    else
    {
    $success = true;
    }

    break;
    }

    if ($success == true)
    {
    return $success;
    }
    else
    {
    return false;
    }
    }

    /**
    * Garbage collect expired cache data
    *
    * @return boolean True on success, false otherwise.
    *
    * @since 11.1
    */
    public function gc()
    {
    $result = true;
    self::$CacheLiteInstance->setOption(‘automaticCleaningFactor’, 1);
    self::$CacheLiteInstance->setOption(‘hashedDirectoryLevel’, 1);
    $success1 = self::$CacheLiteInstance->_cleanDir($this->_root . ‘/’, false, ‘old’);

    if (!($dh = opendir($this->_root . ‘/’)))
    {
    return false;
    }

    while ($file = readdir($dh))
    {
    if (($file != ‘.’) && ($file != ‘..’) && ($file != ‘.svn’))
    {
    $file2 = $this->_root . ‘/’ . $file;

    if (is_dir($file2))
    {
    $result = ($result and (self::$CacheLiteInstance->_cleanDir($file2 . ‘/’, false, ‘old’)));
    }
    }
    }

    $success = ($success1 && $result);

    return $success;
    }

    /**
    * Test to see if the cache storage is available.
    *
    * @return boolean True on success, false otherwise.
    *
    * @since 11.1
    */
    public static function test()
    {
    @include_once ‘Cache/Lite.php’;

    if (class_exists(‘Cache_Lite’))
    {
    return true;
    }
    else
    {
    return false;
    }
    }
    }

    Sherlock Friend
    #451210

    Hi lumpkan1,

    This is a joomla core related problem and maybe your php version also, could you try to install a fresh joomla to see if this occurring ? what is your php version ?

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Sherlock 4 years, 2 months ago.

You must be logged in to reply to this topic.