Ошибка при переносе на денвер

Перенёс сайт с хостинга на денвер.

В config.local.php строчку:
$config['path']['root']['server'] = $_SERVER['DOCUMENT_ROOT'];

заменил на:
$config['path']['root']['server'] = 'Z:\home\site.ru\www';


При заходе на сайт выходит такая ошибка:

Warning: include_once(Z:\home\site.ru\www\engine\lib\external\Smarty\libs\sysplugins\smarty_internal_templatebase.php) [function.include-once]: failed to open stream: No such file or directory in Z:\home\site.ru\www\engine\lib\external\Smarty\libs\Smarty.class.php on line 96

Warning: include_once() [function.include]: Failed opening 'Z:\home\site.ru\www\engine\lib\external\Smarty\libs\sysplugins\smarty_internal_templatebase.php' for inclusion (include_path='.;/usr/local/php5/PEAR;Z:\home\site.ru\www;Z:\home\site.ru\www\engine\classes') in Z:\home\site.ru\www\engine\lib\external\Smarty\libs\Smarty.class.php on line 96

Warning: include(Z:\home\site.ru\www\engine\lib\external\Smarty\libs\sysplugins\smarty_internal_templatebase.php) [function.include]: failed to open stream: No such file or directory in Z:\home\site.ru\www\engine\lib\external\Smarty\libs\Smarty.class.php on line 1506

Warning: include() [function.include]: Failed opening 'Z:\home\site.ru\www\engine\lib\external\Smarty\libs\sysplugins\smarty_internal_templatebase.php' for inclusion (include_path='.;/usr/local/php5/PEAR;Z:\home\site.ru\www;Z:\home\site.ru\www\engine\classes') in Z:\home\site.ru\www\engine\lib\external\Smarty\libs\Smarty.class.php on line 1506

Fatal error: Class 'Smarty_Internal_TemplateBase' not found in Z:\home\site.ru\www\engine\lib\external\Smarty\libs\sysplugins\smarty_internal_template.php on line 22


Подскажите пожалуйста как решить проблему.

10 комментариев

avatar
Попробуйте слэши в другую сторону поставить, с '\' на '/'
avatar
Попробовал, ничего не изменилось, та же ошибка.
avatar
$config['path']['root']['web']        = 'http://'.$_SERVER['HTTP_HOST'];

$config['path']['root']['server']     = dirname(dirname(__FILE__));   
avatar
Такая же ошибка…
avatar
Попробуйте удалить из config.local.php все $config['path']['root']
avatar
Не помогло
avatar
Попробуйте где то тут в ручную прописать пути.

$config['path']['smarty']['template'] = '___path.root.server___/templates/skin/___view.skin___';
$config['path']['smarty']['compiled'] = '___path.root.server___/templates/compiled';
$config['path']['smarty']['cache'] = '___path.root.server___/templates/cache';
$config['path']['smarty']['plug'] = '___path.root.engine___/modules/viewer/plugs';
avatar
Не помогло это. Ошибка судя по всему тут Smarty.class.php
Не могу понят в чем дело, на хостинге же всё работает.
avatar
Перезалив папку engine из стандартного архива LS заработало. Буду вспоминать, что я там исправлял, но всё же почему на хостинге работает а на денвере нет, не понятно.
avatar
Проверив папки программой Beyond Compare нашел причину, некоторые файлы почему-то были с разрешением ph вместо php. Наверное при создании резервной копии это изменилось. Буду узнавать у хостера в чем дело.
Только зарегистрированные и авторизованные пользователи могут оставлять комментарии.