I am working to solve this error but unable to find the reason as I am new for drupal Error at offset 2 of 16 bytes in bootstrap.inc on line 936
when I open /var/www/html/mysite/includes/bootstrap.inc I have found this
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;
}
error is showing on this line $variables = array_map('unserialize', db_query('SELECT name, value FROM {variable}')->fetchAllKeyed());
I am unable to to solve it, what is the reason ?