Ошибка file_get_contents (ckeditor.js) в в файле includes/locale.inc в строке 1710

Главные вкладки

Аватар пользователя Alex_Obukhov Alex_Obukhov 23 марта 2013 в 3:10

Полностью звучит так:

file_get_contents(sites/all/modules/ckeditor/ckeditor/ckeditor.js?I) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory в файле /home/all-roads/public_html/includes/locale.inc в строке 1710.

в locale.inc на указанной строке и перед ней следующее:

function _locale_parse_js_file($filepath) {
global $language;
// Load the JavaScript file.
$file = file_get_contents($filepath);

Ошибка не постоянная. Всплывает эпизодически на разных страницах. Что ему для счастья не хватает?

Комментарии

Аватар пользователя Integer Integer 24 апреля 2013 в 16:39

Такая же история. Может кто то знает с чем связано?

Warning: file_get_contents(sites/all/libraries/superfish/jquery.hoverIntent.minified.js) [function.file-get-contents]: failed to open stream: No such file or directory в функции _locale_parse_js_file() (строка 1488 в файле /var/www/p157581/data/www/domenname.ru/includes/locale.inc).

В файле local.inc

1486 // Uninstall Locale.
1487 module_disable($locale_module);
1488 drupal_uninstall_modules($locale_module);

Аватар пользователя alexo alexo 27 февраля 2015 в 1:12

У меня похожая ситуация (file_get_contents(sites/all/modules/ckeditor/ckeditor/ckeditor.js) [function.file-get-contents]: failed to open stream: No such file or directory в функции _locale_parse_js_file) после перехода на другую тему (возможно, совпадение).
На встроенной теме (Bartik) этого не было.
Вот здесь (http://podrupalim.com/forum/38/ostanovka-apache-pri-popytke-perevoda) обсуждали похожее (появилось после включения locale), пишут, что
"система не может найти файлы в папке 'js' основной темы."

Аватар пользователя alexo alexo 27 февраля 2015 в 1:08

Вот здесь предлагают решения
https://www.drupal.org/node/1056068

in Global Profile "Path to CKEditor" field we have flags "%m" and "%l" - remove flag "%b" (it's not needed in D7 because it's added automaticly by core). Now everything seems to work.
Предлагают убрать flag "%b" из "путь к CKEditor" в глобальных настройках