После смены шаблоны - пустая страница

Автор Vladius, 27 июля 2018, 14:55:01

« назад - далее »

Vladius

Всем привет!

Установил шаблон organicfood, все делал 1 в 1 как в инструкции на ютубе https://www.youtube.com/watch?v=I_cCV8ROv_w, сначала заменил файлики в папке prestashop, потом добавил тему.

Тема появилась, я ее применил но теперь открывается пустая страница, что я делаю не так?((( Второй день не могу с этим разобраться. Если поменять тему обратно классик то старая тема работает.

Версия PHP 5.6 так же пробовал 7.0.

Версия престы 1.7.4.1

Vladius

#1
Заметил такую штуку стартовая страница открывается пустая, НО! Если открыть другой раздел сайта то открывается!

Другие шаблоны на старте вообще выдает ошибку 500.

Mr.Sen

Стартовая пустая потому что ошибки в модулях которые в хуке home.
Включите показ ошибок, покажет названия модулей.

Vladius

Какая то адовая жесть  :)


(1/1) SmartyException
Source: Missing name
in smarty_template_source.php line 167
at Smarty_Template_Source::load(object(SmartyDevTemplate))
in smarty_internal_template.php line 160
at Smarty_Internal_Template->__construct(null, object(SmartyDev), null, 'posslideshows|1|1|2|1|0', null, null, null)
in Smarty.class.php line 955
at Smarty->createTemplate(null, 'posslideshows|1|1|2|1|0', null, object(Smarty_Data))
in Module.php line 2303
at ModuleCore->getCurrentSubTemplate('modules/posslideshows/views/templates/hook/slider.tpl', 'posslideshows|1|1|2|1|0', null)
in Module.php line 2347
at ModuleCore->isCached('slider.tpl', 'posslideshows|1|1|2|1|0')
in posslideshows.php line 544
at Posslideshows->renderWidget('displayTopColumn', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart)))
in Hook.php line 929
at HookCore::coreRenderWidget(object(Posslideshows), 'displayTopColumn', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart)))
in Hook.php line 881
at HookCore::exec('displayTopColumn', array('smarty' => object(SmartyDevTemplate)), null)
in smarty.config.inc.php line 165
at smartyHook(array('h' => 'displayTopColumn'), object(SmartyDevTemplate))
at call_user_func_array('smartyHook', array(array('h' => 'displayTopColumn'), object(SmartyDevTemplate)))
in SmartyLazyRegister.php line 83
at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayTopColumn'), object(SmartyDevTemplate)))
at SmartyLazyRegister->smartyHook(array('h' => 'displayTopColumn'), object(SmartyDevTemplate))
at call_user_func_array(array(object(SmartyLazyRegister), 'smartyHook'), array(array('h' => 'displayTopColumn'), object(SmartyDevTemplate)))
in 83b750a9372536e88b6e009d339abbb6b1a55b55_2.file.layout-both-columns.tpl.php line 68
at content_5b5b712d1a8344_58057573(object(SmartyDevTemplate))
in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))
in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))
in smarty_internal_template.php line 206
at Smarty_Internal_Template->render()
in smarty_internal_template.php line 365
at Smarty_Internal_Template->_subTemplateRender('layouts/layout-both-columns.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)
in smarty_internal_runtime_inheritance.php line 127
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')
in a20233d0bb75ddf702c3adc97ac26e69fa36487f_2.file.layout-full-width.tpl.php line 42
at content_5b5b712d13d7e8_45944587(object(SmartyDevTemplate))
in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))
in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))
in smarty_internal_template.php line 206
at Smarty_Internal_Template->render()
in smarty_internal_template.php line 365
at Smarty_Internal_Template->_subTemplateRender('layouts/layout-full-width.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)
in smarty_internal_runtime_inheritance.php line 127
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-full-width.tpl')
in 4f0caa712f7ef764b1f08026418662f7fe48f07b_2.file.page.tpl.php line 33
at content_5b5b712d122903_85690790(object(SmartyDevTemplate))
in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))
in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))
in smarty_internal_template.php line 206
at Smarty_Internal_Template->render()
in smarty_internal_template.php line 365
at Smarty_Internal_Template->_subTemplateRender('page.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)
in smarty_internal_runtime_inheritance.php line 127
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'page.tpl')
in 609bdd03db2c10bb1d9b3f323aeccb28d7f2381e_2.file.index.tpl.php line 33
at content_5b5b712d0fded3_45323882(object(SmartyDevTemplate))
in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))
in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))
in smarty_internal_template.php line 206
at Smarty_Internal_Template->render(false, 0)
in smarty_internal_templatebase.php line 232
at Smarty_Internal_TemplateBase->_execute('index.tpl', null, 'layouts/layout-full-width.tpl', null, 0)
in smarty_internal_templatebase.php line 116
at Smarty_Internal_TemplateBase->fetch('index.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false)
in SmartyDev.php line 41
at SmartyDev->fetch('index.tpl', null, 'layouts/layout-full-width.tpl')
in FrontController.php line 679
at FrontControllerCore->smartyOutputContent('index.tpl')
in FrontController.php line 663
at FrontControllerCore->display()
in Controller.php line 275
at ControllerCore->run()
in Dispatcher.php line 428
at DispatcherCore->dispatch()
in index.php line 28

Mr.Sen


Vladius

Удалил, ещё ругался на модуль комметарии к товару, его тоже удалил, теперь белый экран ((

Adik

Модули удаляйте, не отключайте.
Отключите кеширование, включите перекомпиляцию.
Очистите кеш.

Vladius

Перепробовал около 10 шаблонов, уже нашел специально для версии 1.7, все равно ничего не работает, постоянно ругается на какие то модули.

Например модуль posslideshows нельзя отключать, потому что он используется в шаблоне на главной странице, без его шаблон некрасивый.

Может проблема в новой версии 1.7? Кроме классического шаблона ничего не работает, раз 30 уже заново переустанавливал престу.

Adik

У prestashop 1.7.4.1 и выше много проблем с темами.
Нужна тема имено для этой версии. Темы которые совместимы с prestashop 1.7-1.7.3 не подходят.

Vladius

Спасибо! Поставил 1.7.3 работают ВСЕ шаблоны, УРА! Я уже думал бросать это дело  :)

Agent

#10
После переноса на другой домен тоже пустая страница главная и админка и такие ошибки:

Fatal error: Uncaught Error: [] operator not supported for strings in /www/ мой домен /classes/db/DbQuery.php:96 Stack trace: #0 /www/htdocs/w0171158/ мой домен /Adapter/Adapter_EntityMapper.php(45): DbQueryCore->from('shop', 'a') #1 /www/ мой домен /classes/ObjectModel.php(233): Adapter_EntityMapper->load('1', NULL, Object(Shop), Array, NULL, true) #2 /www/ мой домен /classes/shop/Shop.php(131): ObjectModelCore->__construct('1', NULL, NULL) #3 /www/ мой домен classes/shop/Shop.php(397): ShopCore->__construct('1') #4 /www/ мой домен /config/config.inc.php(114): ShopCore::initialize() #5 /www/ мой домен /index.php(27): require('/www/...') #6 {main} thrown in /www/ мой домен /classes/db/DbQuery.php on line 96

PS: Вопрос снят. Пытался поставить Prestashop 1.6 на хостинг с php 7.1. Видимо не поддерживает. На 7.0 все ОК.