Php 我试图在Joomla中添加一个插件,它给了我一个致命的错误
致命错误:在第435行的C:\xampp\htdocs\jsf\libraries\joomla\cache\storage\memcache.php中对非对象调用成员函数add()Php 我试图在Joomla中添加一个插件,它给了我一个致命的错误,php,joomla,syntax-error,Php,Joomla,Syntax 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
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';
这将通过手动将其切换到文件来修复致命的崩溃错误。这是Joomla的摘录!源代码,不是吗?由于这个问题几乎肯定是由你的插件间接引起的,我们需要知道你的插件在做什么才能帮助你。我尝试安装的每个插件都会发生这种情况,你的缓存应该在memcache中吗?你试过把它转换成文件吗?