in search... | Всем привет! Почему на сайте выдается ошибка сверху?ОшибкаWarning: session_start(): open(/var/lib/php/session/sess_h9lmckbgeht8ts31qhmd1fpiv0, O_RDWR) failed: Отказано в доступе (13) in /var/www/vhosts/domain/subdomains/domain/engine/modules/session/Session.class.php on line 88 [свернуть] А при попытке воити в админ панель:
ОшибкаWarning: session_start(): open(/var/lib/php/session/sess_h9lmckbgeht8ts31qhmd1fpiv0, O_RDWR) failed: Отказано в доступе (13) in /var/www/vhosts/domain/subdomains/domain/engine/modules/session/Session.class.php on line 88 Fatal error: Uncaught exception 'SmartyException' with message 'Unable to read template file 'index.tpl'' in /var/www/vhosts/domain/subdomains/domain/engine/lib/external/Smarty/libs/sysplugins/smarty_internal_resource_file.php:70 Stack trace: #0 /var/www/vhosts/domain/subdomains/domain/engine/lib/external/Smarty/libs/sysplugins/smarty_resource.php(752): Smarty_Internal_Resource_File->getContent(Object(Smarty_Template_Source)) #1 /var/www/vhosts/domain/subdomains/domain/engine/lib/external/Smarty/libs/sysplugins/smarty_internal_compile_extends.php(114): Smarty_Template_Source->__get('content') #2 /var/www/vhosts/domain/subdomains/domain/engine/lib/external/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(439): Smarty_Internal_Compile_Extends->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL) #3 /var/www/vhosts/domain/subdomains/domain/engine/lib/external/Smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php(227): in /var/www/vhosts/domain/subdomains/domain/engine/lib/external/Smarty/libs/sysplugins/smarty_internal_resource_file.php on line 70 Warning: Unknown: open(/var/lib/php/session/sess_h9lmckbgeht8ts31qhmd1fpiv0, O_RDWR) failed: Permission denied (13) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0 [свернуть] Хостинг говорит что это из за кусок кода:
PHP код: if(!session_id()) {
/**
* Даем возможность флешу задавать id сессии
*/
$sUserAgent=isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : null;
if ($sUserAgent and (in_array($sUserAgent,$this->aFlashUserAgent) or strpos($sUserAgent,"Adobe Flash Player")===0) and preg_match("/^[\w\d]{5,40}$/",getRequest('SSID'))) {
session_id(getRequest('SSID'));
} else {
session_regenerate_id();
}
session_start();
}
} else {
$this->SetId();
$this->ReadData();
}
|