0

致命错误:在第 435 行调用 C:\xampp\htdocs\jsf\libraries\joomla\cache\storage\memcache.php 中非对象的成员函数 add()

protected function lockindex()
{
    $looptime = 300;
    $data_lock = self::$_db->add($this->_hash . '-index_lock', 1, false, 30);

    if ($data_lock === false)
    {

        $lock_counter = 0;

        // Loop until you find that the lock has been released.  that implies that data get from other thread has finished
        while ($data_lock === false)
        {
            if ($lock_counter > $looptime)
            {
                return false;
                break;
            }

            usleep(100);
            $data_lock = self::$_db->add($this->_hash . '-index_lock', 1, false, 30);
            $lock_counter++;
        }
    }

    return true;
}
4

1 回答 1

1

转到 configuration.php 并更改为此设置。

public $caching = '0';
public $cache_handler = 'file';
public $cachetime = '15';

代替:-

public $caching = '0';
public $cache_handler = 'memcache';
public $cachetime = '30';
public $memcache_persist = '1';
public $memcache_compress = '0';
public $memcache_server_host = 'mem';
public $memcache_server_port = '11211';

这将通过手动将其切换到文件来修复致命的崩溃错误。

于 2012-07-28T21:54:06.033 回答