try commenting out:
PHP: › <?php foreach (array('sidebarBlocks', 'albumBlocks', 'photoBlocks') as $blockKey) {
if (!isset($theme['params'][$blockKey])) {
continue;
}
$theme['params'][$blockKey] = unserialize($theme['params'][$blockKey]);
$seen = array();
foreach ($theme['params'][$blockKey] as $block) {
$seen[$block[0]][] = $block[1];
}
foreach ($seen as $key => $blockParams) {
list ($module, $file) = explode('.', $key);
if (empty($pluginStatus[$module]['active'])) {
continue;
}
$path = "modules/$module/Preloads.inc";
if ($platform->file_exists("$g2Base/$path")) {
GalleryCoreApi::relativeRequireOnce($path);
$className = "${module}Preloads";
$instance = new $className;
$ret = $instance->preload($template, $file, $blockParams);
if ($ret->isError()) {
return array($ret->wrap(__FILE__, __LINE__), null);
}
}
}
} ?>
and see what happens. this happens because the G1 theme does not have sidebars, so this chunk of code fails.