이 오류를 해결하기 위해 노력 중이지만/var/www/html/mysite /를 열 때 drupal에 대한 새로운 이유를 찾을 수 없습니다 Error at offset 2 of 16 bytes in bootstrap.inc on line 936
// bootstrap.inc 나는이936 라인의 부트 스트랩 .inc에서 16 바이트 오프셋 2의 오류
function function variable_initialize($conf = array()) {
// NOTE: caching the variables improves performance by 20% when serving
// cached pages.
if ($cached = cache_get('variables', 'cache_bootstrap')) {
$variables = $cached->data;
}
else {
// Cache miss. Avoid a stampede.
$name = 'variable_init';
if (!lock_acquire($name, 1)) {
// Another request is building the variable cache.
// Wait, then re-run this function.
lock_wait($name);
return variable_initialize($conf);
}
else {
// Proceed with variable rebuild.
$variables = array_map('unserialize', db_query('SELECT name, value FROM {variable}')->fetchAllKeyed());
cache_set('variables', $variables, 'cache_bootstrap');
lock_release($name);
}
}
foreach ($conf as $name => $value) {
$variables[$name] = $value;
}
return $variables;
}
오류가 나는 이유는 무엇인가, 그것을 해결할 수없는 생각이 라인 $variables = array_map('unserialize', db_query('SELECT name, value FROM {variable}')->fetchAllKeyed());
에 표시되고 발견 포함?
안녕하세요 @ 카니카, 내 대답에 오타가 있었지만 해결했습니다! 그것이 도움이되었거나 당신이 틀린 것을 찾아내는 지 말해달라고 남겨주세요. 고맙습니다. – EricLavault
@ericLavault 저는 솔루션 작업을 통해 알려 드리겠습니다. – Kanika