“Strict Standards: Accessing static property JCache::$_handler as non static” error will get when you access the Site ater insatlling Joomla 1.7.3. Just you can open the mentioned file and go to the line where you are getting the error, and modify the code.
The following code steps will help to fix this error in cache.php on line 422 in Joomla 1.7.3 installation.
Step 1. Open the cache.php file in the code editor and go to the line 422. cache.php file is located in the follwing path.
libraries/joomla/cache/cache.php
Step 2. You will see the following lines of code in cache.php file on line 422.
/**
* Get the cache storage handler
*
* @return JCacheStorage A JCacheStorage object
*
* @since 11.1
*/
public function &_getStorage()
{
if (!isset($this->_handler)) {
$this->_handler = JCacheStorage::getInstance($this->_options['storage'], $this->_options);
}
return $this->_handler;
}
Step 3. Replace the above lines of code with the following.
/**
* Get the cache storage handler
*
* @return JCacheStorage A JCacheStorage object
*
* @since 11.1
*/
public function &_getStorage()
{
if (!isset(JCache::$_handler)) {
JCache::$_handler = JCacheStorage::getInstance($this->_options['storage'], $this->_options);
}
return JCache::$_handler;
}
Step 4. Once you made the changes; Save the changes and Refresh your webpage. Now you will not see the error.