簡體   English   中英

我正在嘗試在Joomla中添加插件,這給了我一個致命錯誤

[英]I am trying to add a plugin in Joomla and it gives me a fatal error

致命錯誤:在第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;
}

轉到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';

通過將其手動切換到文件,可以修復致命的崩潰錯誤。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM