[Решено] При переходе в документы белый экран
Здравствуйте. Возникла проблема после переноса сайта с MODX Evo, на MODX Revo через компонент provision. Всё вроде перенеслось как надо, админка работает нормально. Редактирование элементов тоже работает, но при переходе на документ открывается пустая стираница, хотя при быстром редактировании окно появляется, но отсутствуют везде Дополнительные поля. Может кто сталкивался? Помниться подобное советовали лечить переходом на винде в другой часовой пояс. В логах имеются вот такие ошибки:
modxclub.ru/blog/119.html
[Sat Mar 07 03:45:22 2015] [error] [client 87.178.23.77] PHP Fatal error: Cannot redeclare class modTemplateVarInputRenderText in /var/www/p134436/data/www/test.tatish.ru/core/model/modx/processors/element/tv/renders/mgr/input/text.class.php on line 10, referer: http://test.tatish.ru/manager/?a=element/template/update&id=52
[Sat Mar 07 03:45:24 2015] [error] [client 87.178.23.77] PHP Fatal error: Cannot redeclare class modTemplateVarInputRenderText in /var/www/p134436/data/www/test.tatish.ru/core/model/modx/processors/element/tv/renders/mgr/input/text.class.php on line 10, referer: http://test.tatish.ru/manager/?a=element/template/update&id=52
[Sat Mar 07 03:45:25 2015] [error] [client 87.178.23.77] PHP Fatal error: Cannot redeclare class modTemplateVarInputRenderText in /var/www/p134436/data/www/test.tatish.ru/core/model/modx/processors/element/tv/renders/mgr/input/text.class.php on line 10, referer: http://test.tatish.ru/manager/?a=element/template/update&id=52
[Sat Mar 07 03:45:40 2015] [error] [client 87.178.23.77] PHP Fatal error: Cannot redeclare class modTemplateVarInputRenderText in /var/www/p134436/data/www/test.tatish.ru/core/model/modx/processors/element/tv/renders/mgr/input/text.class.php on line 10, referer: http://test.tatish.ru/manager/?a=element/template/update&id=52
[Sat Mar 07 03:46:24 2015] [error] [client 87.178.23.77] PHP Fatal error: Cannot redeclare class modTemplateVarInputRenderText in /var/www/p134436/data/www/test.tatish.ru/core/model/modx/processors/element/tv/renders/mgr/input/text.class.php on line 10, referer: http://test.tatish.ru/manager/?a=element/template/update&id=52UPD. Помучившись, нашёл такое решение, в файле/core/model/modx/processors/element/tv/renders/mgr/input/text.class.phpвсё содержимое заменить на if(!class_exists('modTemplateVarInputRenderText')){
class modTemplateVarInputRenderText extends modTemplateVarInputRender {
public function getTemplate() {
return 'element/tv/renders/input/textbox.tpl';
}
}
}
return 'modTemplateVarInputRenderText';Как ни странно, всё заработало, спасибо Fi1osof'у modxclub.ru/blog/119.html
Комментарии: 3
Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
/core/model/modx/processors/element/tv/renders/mgr/input/text.class.php
помогло.
Спасибо.
Мне помогло просто то, что я проверил все TV поля и оказалось, что остался TV от компонента (yMaps), который был удален. И соответственно в тех шаблонах где этот TV был выдавалась ошибка. Удалил TV и все заработало.