1. WANTED: Forum Moderators >> and YOU can help!


    April Responsive Joomla template for Interior Design - JA Decor is out >> Demo | More info


    April Responsive Magento theme JM Leathercraft >> Demo | More info


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
    Licensed Member
    Joomla Developer Membership - 1 yearMagento Theme Club Member - Developer License

    Join Date
    Mar 2007
    Posts
    12,567
    Points
    7,462.35
    Downloads
    126
    Uploads
    0
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Thanks
    220
    Thanked 982 Times in 879 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

Stop working on Weekend!X

If your Boss broke your Joomla template or extension and ask you to fix it today. Here is the immediate solution. Then leave your request on the right forum, we will be helping after the Weekend Happy hours
Our Happy Hours: Friday 18:00 - Monday 9:00

No working during happy hours. Keep calm and don't break anything.