Ошибка в "Правилах каталога"

Автор sheltok, 07 мая 2015, 12:51:13

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

sheltok

Добрый день уважаемые. Объясните кто может. В админпанели, ценовые правила, правила каталога выдает такую ошибку       

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

DarinSr

#1
1. Очистите кеш
2. Проверьте права записи в папку cache

sheltok

/public_html/cache/smarty/compile/99   Проверил эту папку, пусто. Знать бы что в ней должно лежать...

Виктор Демидов

#3
/cache/smarty/cache/...
/cache/smarty/compile/...

удалить все файлы, кроме index.php, установить CHMOD 777 или 755 для этих папок.

sheltok

Не удается почистить кэш сайта, пишет фатал эрор.

sheltok

В  /cache/smarty/compile/... осталась только файл индекс пхр. При очистке кэша сайта, также выдает фатал ерор.

DarinSr

У вас проблема с настройкой хостинга. Напишите в тех. поддержку они должны помочь.

sheltok


sheltok

#8
Доброго времени суток. Написал о своей проблеме хостеру, ответили что ошибки в коде сайта. Это сообщение об ошибке
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;

DarinSr

В этом файле нет ошибок.
У вас ошибка - запрет на запись в папку /home6/elitetex/public_html/cache/smarty/compile/...
Цитироватьfailed to open dir: Permission denied
Решение проблемы - CHMOD 777 или 755 для файлов и папок.

sheltok

DarinSr , огромное спасибо за помощь.

sheltok

Цитата: DarinSr от 09 мая 2015, 10:06:31
В этом файле нет ошибок.
У вас ошибка - запрет на запись в папку /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

coder

Зайдите по фтп на хостинг и очистите папку /cache/smarty/compile/ вручную.

sheltok

Цитата: coder от 11 мая 2015, 16:26:35
Зайдите по фтп на хостинг и очистите папку /cache/smarty/compile/ вручную.
Так и сделал, все очистил кроме  index.php. Но файл /public_html/cache/smarty/compile/99  созданный 17.03.2015 не удаляется.

coder

#14
Зайдите под root. Попробуйте изменить права у этого файла на 666.