[Решено] При переходе в документы белый экран

Здравствуйте. Возникла проблема после переноса сайта с MODX Evo, на MODX Revo через компонент provision. Всё вроде перенеслось как надо, админка работает нормально. Редактирование элементов тоже работает, но при переходе на документ открывается пустая стираница, хотя при быстром редактировании окно появляется, но отсутствуют везде Дополнительные поля. Может кто сталкивался? Помниться подобное советовали лечить переходом на винде в другой часовой пояс. В логах имеются вот такие ошибки:

[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=52
UPD. Помучившись, нашёл такое решение, в файле

/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
Андрей Копп
07 марта 2015, 00:26
modx.pro
1
5 729
0

Комментарии: 3

Алексей
29 декабря 2015, 14:39
1
0
У меня подобная ситуация случилась при установке пакета tagManager. Его деинсталляция с последующим удалением не привело к результату. Замена содержимого файла:
/core/model/modx/processors/element/tv/renders/mgr/input/text.class.php
помогло.
Спасибо.
    Александр
    05 апреля 2019, 18:55
    0
    Хоть тема и давняя, тоже столкнулся с такой ошибкой.
    Мне помогло просто то, что я проверил все TV поля и оказалось, что остался TV от компонента (yMaps), который был удален. И соответственно в тех шаблонах где этот TV был выдавалась ошибка. Удалил TV и все заработало.
      Segey
      19 июля 2021, 16:54
      0
      привет из 2021 — таже самая проблемка на 2.7.0 на тяжелом сайте с кучей ТиВишек за пару часов даже все не просмотриш так что сразу применился этот фикс — спасибо!
        Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
        3