Наредактировал свой template.php так, что теперь после сохранения параметров или страниц в админке, я получаю белую страницу на выходе.
Где то ошибка.. Вот мой код в template.php
function galaxy_regions() {
return array(
'sidebar_left' => t('left sidebar'),
'sidebar_right' => t('right sidebar'),
'header' => t('header'),
'footer_message' => t('footer'),
'content' => t('content'),
'counters' => t('counters'),
'search' => t('search'),
'menu' => t('menu'),
'newsline' => t('newsline'),
'banner' => t('banner'),
'keywords' => t('keywords'),
'counters' => t('counters'),
);
}
?>
<?php
unset($variables['node']->links['read_more']);
?>
И после рефреша выдает такое:
warning: Cannot modify header information - headers already sent by (output started at /www/stroygal/www/htdocs/themes/galaxy/template.php:22) in /www/stroygal/www/htdocs/includes/common.inc on line 309.
Комментарии
<?php
unset($variables['node']->links['read_more']);
?>
удалите или закомментируйте
Скорее всего проблема в этом:
<?php
Весь код лучше помещать в один блок <?php ?> - т.к. иначе будет выведено несколько пробелов или концов строк, которые не дадут изменить HTTP заголовок. О чем вам и говорит предупреждение.