Добрый день!
Не могу разобраться в чем может быть причина возникновения этой ошибки.
Ругается на первую строку.
PHP Fatal error: ob_start(): Cannot use output buffering in output buffering display handlers
ob_start();
$this->vars = $vars;
$this->isStarted = true;
return true;
}
public function abortDataCache()
{
if (!$this->isStarted)
return;
$this->isStarted = false;
ob_end_flush();
}
public function endDataCache($vars=false)
{
if (!$this->isStarted)
return;
$this->isStarted = false;
$allVars = array(
"CONTENT" => ob_get_contents(),
"VARS" => ($vars!==false ? $vars : $this->vars),
);
$this->cacheEngine->write($allVars, $this->baseDir, $this->initDir, $this->filename, $this->TTL);
if (static::$showCacheStat)
{
$written = 0;
$path = '';
if ($this->cacheEngine instanceof ICacheEngineStat)
{
$written = $this->cacheEngine->getWrittenBytes();
$path = $this->cacheEngine->getCachePath();
}
elseif ($this->cacheEngine instanceof \ICacheBackend)
{
/** @noinspection PhpUndefinedFieldInspection */
$written = $this->cacheEngine->written;
/** @noinspection PhpUndefinedFieldInspection */
$path = $this->cacheEngine->path;
}
Diag\CacheTracker::addCacheStatBytes($written);
Diag\CacheTracker::add($written, $path, $this->baseDir, $this->initDir, $this->filename, "W");
}
if (strlen(ob_get_contents()) > 0)
ob_end_flush();
else
ob_end_clean();
}