1. Vote now - Choose the template types you want in coming months


    JA HawkStore - Stable version Released


    JM Siotis - Beta version released


    Tools & Tips - Make your Joomla site faster


    JA Brisk, Mitius, Onepage & Mero updated - Offcanvas navigation for mobile now available


    5 more JATC extensions updated - Backend UI improvement & new coding standards.


User Tag List

+ Reply to Thread
 
Results 1 to 2 of 2
  1. #1

    JoomlaTemplate Club Member - Personal License - 1 Year Expired

    Join Date
    Oct 2011
    Posts
    59
    Points
    105.94
    Downloads
    295
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks
    13
    Thanked 0 Times in 0 Posts

    global config not showing up

    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;
    }
    }
    }

  2. #2


    Join Date
    Mar 2007
    Posts
    11,512
    Points
    4,865.68
    Downloads
    63
    Uploads
    0
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Thanks
    128
    Thanked 787 Times in 694 Posts
    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 ?

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts