Автор Тема: Ошибка в "Правилах каталога"  (Прочитано 1460 раз)

07 Май 2015, 12:51:13
  • Новичок
  • *
  • Сообщений: 42
  • Репутация: +0/-0
  • Сообщество PrestaShop
    • Просмотр профиля
Добрый день уважаемые. Объясните кто может. В админпанели, ценовые правила, правила каталога выдает такую ошибку       

Fatal error: Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(/home6/elitetex/public_html/cache/smarty/compile/99) [<a href='recursivedirectoryiterator.--construct'>recursivedirectoryiterator.--construct</a>]: failed to open dir: Permission denied' in /home6/elitetex/public_html/tools/smarty/sysplugins/smarty_internal_utility.php:242 Stack trace: #0 [internal function]: RecursiveDirectoryIterator->__construct('/home6/elitetex...', 0) #1 /home6/elitetex/public_html/tools/smarty/sysplugins/smarty_internal_utility.php(242): RecursiveDirectoryIterator->getChildren() #2 /home6/elitetex/public_html/tools/smarty/Smarty.class.php(1469): Smarty_Internal_Utility::clearCompiledTemplate(NULL, NULL, NULL, Object(Smarty)) #3 /home6/elitetex/public_html/classes/Tools.php(2733): Smarty->clearCompiledTemplate() #4 /home6/elitetex/public_html/classes/Tools.php(2743): ToolsCore::clearCompile(Object(Smarty)) #5 /home6/elitetex/public_html/controllers/admin/AdminSpecificPriceRuleController.ph in/home6/elitetex/public_html/tools/smarty/sysplugins/smarty_internal_utility.php on line 242
07 Май 2015, 13:07:01
Ответ #1
  • Модератор
  • Ветеран
  • *****
  • Сообщений: 86688
  • Репутация: +25428/-0
  • Сообщество PrestaShop
    • Просмотр профиля
1. Очистите кеш
2. Проверьте права записи в папку cache
07 Май 2015, 13:19:08
Ответ #2
  • Новичок
  • *
  • Сообщений: 42
  • Репутация: +0/-0
  • Сообщество PrestaShop
    • Просмотр профиля
/public_html/cache/smarty/compile/99   Проверил эту папку, пусто. Знать бы что в ней должно лежать...
07 Май 2015, 13:23:21
Ответ #3
  • Администратор
  • Ветеран
  • *****
  • Сообщений: 102503
  • Репутация: +34219/-0
    • Просмотр профиля
/cache/smarty/cache/...
/cache/smarty/compile/...
удалить все файлы, кроме index.php, установить CHMOD 777 или 755 для этих папок.
07 Май 2015, 14:59:12
Ответ #4
  • Новичок
  • *
  • Сообщений: 42
  • Репутация: +0/-0
  • Сообщество PrestaShop
    • Просмотр профиля
Не удается почистить кэш сайта, пишет фатал эрор.
07 Май 2015, 15:06:11
Ответ #5
  • Новичок
  • *
  • Сообщений: 42
  • Репутация: +0/-0
  • Сообщество PrestaShop
    • Просмотр профиля
В  /cache/smarty/compile/... осталась только файл индекс пхр. При очистке кэша сайта, также выдает фатал ерор.
07 Май 2015, 15:44:49
Ответ #6
  • Модератор
  • Ветеран
  • *****
  • Сообщений: 86688
  • Репутация: +25428/-0
  • Сообщество PrestaShop
    • Просмотр профиля
У вас проблема с настройкой хостинга. Напишите в тех. поддержку они должны помочь.
07 Май 2015, 15:59:41
Ответ #7
  • Новичок
  • *
  • Сообщений: 42
  • Репутация: +0/-0
  • Сообщество PrestaShop
    • Просмотр профиля
08 Май 2015, 22:36:22
Ответ #8
  • Новичок
  • *
  • Сообщений: 42
  • Репутация: +0/-0
  • Сообщество PrestaShop
    • Просмотр профиля
Доброго времени суток. Написал о своей проблеме хостеру, ответили что ошибки в коде сайта. Это сообщение об ошибке
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(/home6/elitetex/public_html/cache/smarty/compile/99) [<a href='recursivedirectoryiterator.--construct'>recursivedirectoryiterator.--construct</a>]: failed to open dir: Permission denied' in /home6/elitetex/public_html/tools/smarty/sysplugins/smarty_internal_utility.php:242 Stack trace: #0 [internal function]: RecursiveDirectoryIterator->__construct('/home6/elitetex...', 0) #1 /home6/elitetex/public_html/tools/smarty/sysplugins/smarty_internal_utility.php(242): RecursiveDirectoryIterator->getChildren() #2 /home6/elitetex/public_html/tools/smarty/Smarty.class.php(1469): Smarty_Internal_Utility::clearCompiledTemplate(NULL, NULL, NULL, Object(Smarty)) #3 /home6/elitetex/public_html/classes/Tools.php(2733): Smarty->clearCompiledTemplate() #4 /home6/elitetex/public_html/classes/Tools.php(2743): ToolsCore::clearCompile(Object(Smarty)) #5 /home6/elitetex/public_html/controllers/admin/AdminPerformanceController.php(713) in /home6/elitetex/public_html/tools/smarty/sysplugins/smarty_internal_utility.php on line 242

А это файл index.php  Может ли кто-то подсказать, есть ли здесь ошибка? Спасибо.
<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <contact@prestashop.com>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");

header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0"false);
header("Pragma: no-cache");

header("Location: ../");
exit;
09 Май 2015, 10:06:31
Ответ #9
  • Модератор
  • Ветеран
  • *****
  • Сообщений: 86688
  • Репутация: +25428/-0
  • Сообщество PrestaShop
    • Просмотр профиля
В этом файле нет ошибок.
У вас ошибка - запрет на запись в папку /home6/elitetex/public_html/cache/smarty/compile/...
Цитировать
failed to open dir: Permission denied
Решение проблемы - CHMOD 777 или 755 для файлов и папок.
09 Май 2015, 22:35:15
Ответ #10
  • Новичок
  • *
  • Сообщений: 42
  • Репутация: +0/-0
  • Сообщество PrestaShop
    • Просмотр профиля
DarinSr , огромное спасибо за помощь.
11 Май 2015, 16:20:41
Ответ #11
  • Новичок
  • *
  • Сообщений: 42
  • Репутация: +0/-0
  • Сообщество PrestaShop
    • Просмотр профиля
В этом файле нет ошибок.
У вас ошибка - запрет на запись в папку /home6/elitetex/public_html/cache/smarty/compile/...
Цитировать
failed to open dir: Permission denied
Решение проблемы - CHMOD 777 или 755 для файлов и папок.
Добрый день. Все очистил, изменил доступ на CHMOD 777. Этот файл /public_html/cache/smarty/compile/99  не удаляется и не открывается. При очистке кэша сайта с админпанели по прежнему выдает ошибку
Fatal error: Uncaught exception 'UnexpectedValueException' with message 'RecursiveDirectoryIterator::__construct(/home6/elitetex/public_html/cache/smarty/compile/99) [<a href='recursivedirectoryiterator.--construct'>recursivedirectoryiterator.--construct</a>]: failed to open dir: Permission denied' in /home6/elitetex/public_html/tools/smarty/sysplugins/smarty_internal_utility.php:242 Stack trace: #0 [internal function]: RecursiveDirectoryIterator->__construct('/home6/elitetex...', 0) #1 /home6/elitetex/public_html/tools/smarty/sysplugins/smarty_internal_utility.php(242): RecursiveDirectoryIterator->getChildren() #2 /home6/elitetex/public_html/tools/smarty/Smarty.class.php(1469): Smarty_Internal_Utility::clearCompiledTemplate(NULL, NULL, NULL, Object(Smarty)) #3 /home6/elitetex/public_html/classes/Tools.php(2733): Smarty->clearCompiledTemplate() #4 /home6/elitetex/public_html/classes/Tools.php(2743): ToolsCore::clearCompile(Object(Smarty)) #5 /home6/elitetex/public_html/controllers/admin/AdminSpecificPriceRuleController.ph in/home6/elitetex/public_html/tools/smarty/sysplugins/smarty_internal_utility.php on line 242
11 Май 2015, 16:26:35
Ответ #12
  • Ветеран
  • *****
  • Сообщений: 33325
  • Репутация: +26771/-0
    • Просмотр профиля
Зайдите по фтп на хостинг и очистите папку /cache/smarty/compile/ вручную.
11 Май 2015, 16:38:54
Ответ #13
  • Новичок
  • *
  • Сообщений: 42
  • Репутация: +0/-0
  • Сообщество PrestaShop
    • Просмотр профиля
Зайдите по фтп на хостинг и очистите папку /cache/smarty/compile/ вручную.
Так и сделал, все очистил кроме  index.php. Но файл /public_html/cache/smarty/compile/99  созданный 17.03.2015 не удаляется.
11 Май 2015, 16:42:00
Ответ #14
  • Ветеран
  • *****
  • Сообщений: 33325
  • Репутация: +26771/-0
    • Просмотр профиля
Зайдите под root. Попробуйте изменить права у этого файла на 666.