код 0 communication failure undefined

Решение проблемы «пустой админки» MODX Revo

При установке MODX Revolution у многих возникает проблема с тем, что при заходе в админку не загружается основное содержимое (правый блок).

Такое поведение — следствие работы работы модуля Suhosin и/или eAccelerator.

Под катом решения.

Проблема состоит в том, что по-умолчанию в админке MODX Revo используется кеширование JS и CSS файлов с помощью Minify. Одно из решений «в лоб», которое много где рекомендуют «если остальное не сработало», отключение кеширования. На всякий случай, расскажу как это делается:

Открываем файл /core/cache/system_settings/config.cache.php
строку ‘compress_js’ => ’1′, меняем на ’compress_js’ => ’0′,
строку ‘compress_css’ => ’1′, меняем на ’compress_css’ => ’0′,

затем, когда админка загрузиться, идём в Система->Настройки и в поиск вводим compress, будет выведено несколько пунктов, нам нужно у compress_js и compress_css установить значения Нет.

Решение рабочее, вот только таким образом мы тормозим админку загрузкой 100500 скриптов и стилей, а нам хотелось бы чтобы админка работала побыстрее.

Рассмотрим более лучшие правильные решения.

Решение проблемы с Suhosin.

Чаще всего, решить проблему с Suhosin удается путём указания в php-конфиге suhosin.ini значение переменной suhosin.get.max_value_length равной 4096:
suhosin.get.max_value_length = 4096

Или, если настройки сервера позволяют, то прописать в /manager/.htaccess такую строчку:
php_value suhosin.get.max_value_length 4096

Хотя эта настройка и прописана в скрипте minify, но может и не сработать, если у вас запрещено менять такую настройку из PHP скрипта.

Если всё хорошо и кеширование заработало, то дальше можно не читать.

Решение проблемы с eAccelerator.

У меня на сервере работает связка apache+nginx+php с eAccelerator’ом. По неизвестной причине, кеширование скриптов срабатывало через раз. Опытным путём было выяснено, что проблема из-за eAccelerator’а. Гугление толковых советов не дало, отключать eAccelerator совсем не вариант, отключать кеширование скриптов тоже не вариант.

Решение простое.
Открываем файл /manager/min/index.php и в самый верх (после @ini_set(‘eaccelerator.enable’, 0);
тем самым отключив eAccelerator для этого скрипта.
Разумеется, чтобы это сработало, у вас должна работать возможность изменения настроек из PHP-скриптов.

Как вариант, если настройки сервера позволяют, можно прописать в файл /manager/min/.htaccess такую строчку:
php_value eaccelerator.enable 0

После проделанных манипуляций кеширование скриптов и стилей работает, админка работает шустрее!

Источник

Код 0 communication failure undefined

Админка перестала открываться, выдает ошибку

Или «Код: 0 communication failure undefined»

Как правильно настроить переадресацию в MODX?

Добрый день, недавно, после того как majordomo обновила сервера, слетела админка, т.е. нет дерева документов. Пробовал все, отключал сжатие, смотрел права и т.д.

ошибка распространенная и даже здесь нашел подобную проблему на серверах majordomo, может кто-нибудь решил?

Комментарии (4)

код 0 communication failure undefined. author 32. код 0 communication failure undefined фото. код 0 communication failure undefined-author 32. картинка код 0 communication failure undefined. картинка author 32. При установке MODX Revolution у многих возникает проблема с тем, что при заходе в админку не загружается основное содержимое (правый блок).

код 0 communication failure undefined. author 32. код 0 communication failure undefined фото. код 0 communication failure undefined-author 32. картинка код 0 communication failure undefined. картинка author 32. При установке MODX Revolution у многих возникает проблема с тем, что при заходе в админку не загружается основное содержимое (правый блок).

код 0 communication failure undefined. author 32. код 0 communication failure undefined фото. код 0 communication failure undefined-author 32. картинка код 0 communication failure undefined. картинка author 32. При установке MODX Revolution у многих возникает проблема с тем, что при заходе в админку не загружается основное содержимое (правый блок).

В продолжении истории, отключил кэширование css и js на хостинге, все заработало. Не забудьте только у браузера и на сайте кэш почистить, на всякий случай. В итоге этот мозговынос от мажордомо стоил мне порядка 20 часов рабочего времени, так что если подвести итог, что делать когда не работает админка, можно выдвинуть простой алгоритм:

1. Отключаем кэширование:
Открываем файл /core/cache/system_settings/config.cache.php
строку ‘compress_js’ => ’1′, меняем на ’compress_js’ => ’0′,
строку ‘compress_css’ => ’1′, меняем на ’compress_css’ => ’0′,
атем, когда админка загрузиться, идём в Система->Настройки и в поиск вводим compress, будет выведено несколько пунктов, нам нужно у compress_js и compress_css установить значения Нет
2. Если не помогло чистим core/cashe
3. Если не помогло отключаем кэширование в nginx(если есть)
4. На всякий случай проверяем все права доступа к файлам.
5. Если и это не помогло, бекапим БД и файлы, развертываем все на новом хостинге, проверяем. Если работаем, начинаем искать проблемы на своем хостинге.

Для добавления комментариев вы должны авторизоваться или зарегистрироваться.

Источник

Nothing rendered on File Tab within Manager

I’m using ModX 2.3.1, and nothing is rendered when I navigate to the file tab within the Manager. The Resource and Elements lists are fine.

I have not changes any settings. Any ideas??

Did you do a clean install of 2.3.1 or updated it? Often rendering issues can be solved by deleting all the content in the core/cache directory followed by clearing the browsercache.

Do you have any Media Source Access ACL entries that might be protecting the files? That seems like the most likely cause.

Connecting a Media Source to a user group you’re not a member of could hide the files from you unless you’re a member of the group.

This probably isn’t a solution to your question, but I had the same problem with the Resource tab until I finally noticed that it was just collapsed.

Also, clearing caches and my browser didn’t help in one situation I had until I rebooted my computer. I don’t know why that is, but rebooting worked for me. (after clearing the modx caches and the browser cache)

Do you have any Media Source Access ACL entries that might be protecting the files? That seems like the most likely cause.

Connecting a Media Source to a user group you’re not a member of could hide the files from you unless you’re a member of the group.

It’s my personal website and I haven’t bothered with any access or manager customization. And, upon logging into the site this morning, the issue is now present on the Resource and Elements tabs.

All or most of the shortcut icons on the Elements tabs are present. Only one is present on the Resource tab, and that section of the UI (the horizontal bar where the icons align) is not present at all on the Files tab. No lists are present in any tabs.

It also seems there are issues elsewhere. I jumped into the package manager and no extras are listed, though I have several installed.

I opened the media browser and receive an error: code: «0 communication failure undefined». I get the same thing when trying to access system settings.

The ‘clear cache’ function hangs, as does ‘log out all users’.

The first thing to try is deleting all files in the core/cache directory.

Other things to try:

Turn off the compress_js and compress_css System Settings. (in the modx_system_settings table in the DB, if necessary).

Repair all DB tables in PhpMyAdmin

Re-running Setup would do no harm, but I don’t think it’s the most likely fix. Try it if everything else fails.

The first thing to try is deleting all files in the core/cache directory.

Other things to try:

Turn off the compress_js and compress_css System Settings. (in the modx_system_settings table in the DB, if necessary).

Repair all DB tables in PhpMyAdmin

Re-running Setup would do no harm, but I don’t think it’s the most likely fix. Try it if everything else fails.

Thanks. FWIW, I have deleted core/cache several times prior to this, but this errant behavior continues to return.

In any case, took your suggested steps and the files tab still does not display a list. I have a feeling it’s only a matter of time before previously-mentioned issues crop up again.

The most likely possibility I can think of is that one or more files didn’t get overwritten in the upgrade.

I’m using ModX 2.3.1, and nothing is rendered when I navigate to the file tab within the Manager. The Resource and Elements lists are fine.

I have not changes any settings. Any ideas??

I know this is an old thread but I had the same thing happen to me. Tried all of the above and nothing worked. However:
mysite.com/manager: still doesn’t work
www.mysite.com/manager: the manager is running fine.

All I had to do was add www. in front of the URL. Weird, hu?

Anyway, I hope this can help someone.

Jean-Marc Buytaert (@jmbuytaert)

MODX truly is the greatest thing that’s ever happened to the Internet.

Don’t have a MODX.com account? Create one

In the time it takes to read this, you could start a new site with nothing to download or install.

Don’t Be That Guy

Be nice, respectful and patient. Inflammatory or inappropriate posts will get your post nuked and flood your life with bans and bad karma.

Thank the People that Help

Remember, this is an Open Source project and the volunteers here assist out of love for the project and a desire to help others.

Источник

error 2.4.4 recurring

I’ve done a standard modx 2.4.4 install, and several times during one hour, I get this error message in a «pop up»:

Then when I refresh my browser I see the resources again.

Any help would be appreciated.

It can be a browser issue that clearing your browser cache and cookies might fix, but I doubt it, since it works when you refresh the page.

One possible cause is a timeout caused by an overloaded server or a slow internet connection. If it takes about 30 seconds for the message to show up, that would make it likely that this is the issue.

Is there a particular place in the Manager where this shows up (e.g., the Dashboard or Package Manager grid)?

It can be a browser issue that clearing your browser cache and cookies might fix, but I doubt it, since it works when you refresh the page.

One possible cause is a timeout caused by an overloaded server or a slow internet connection. If it takes about 30 seconds for the message to show up, that would make it likely that this is the issue.

Is there a particular place in the Manager where this shows up (e.g., the Dashboard or Package Manager grid)?

I have a VPS server which is lightning fast, so speed can’t be the issue here.

This error occurs always in the «page manager» (the tab on the left).

thanks for the expertise Bob

This error occurs always in the «page manager» (the tab on the left).

Sorry, I’m not sure what that means. Do you mean the Resource Tree?

Try going to the System Settings grid and putting ‘feed’ in the search box at the upper right. Turn off the two feeds and see if that helps.

This error occurs always in the «page manager» (the tab on the left).

Sorry, I’m not sure what that means. Do you mean the Resource Tree?

Try going to the System Settings grid and putting ‘feed’ in the search box at the upper right. Turn off the two feeds and see if that helps.

Thanks for your tip, I applied it.

Sadly, I still get that error sometimes, and the resourcetree is empty then.

Don’t have a MODX.com account? Create one

In the time it takes to read this, you could start a new site with nothing to download or install.

Don’t Be That Guy

Be nice, respectful and patient. Inflammatory or inappropriate posts will get your post nuked and flood your life with bans and bad karma.

Thank the People that Help

Remember, this is an Open Source project and the volunteers here assist out of love for the project and a desire to help others.

Источник

Код 0 communication failure undefined

Здравствуйте. Столкнулся с проблемой нерабочей админки. В админку заходит как и раньше, но ничего в ней сделать не могу, даже сбросить системный кеш. Проблема была зафиксирована 28.10.14. Сейчас сайт функционирует как раньше, поэтому до сегодняшнего дня его не трогал. Но появилась необходимость отредактировать материал и добавить новый.

При входе в админку стартовая страница загружается без дерева ресурсов (бокового меню). Но при выборе любого пункта из верхнего меню, кроме справочной страницы, страничка обновляется, меняется тайтл и прогружается только верхнее меню, страница остается пустой. Пробовал обновиться до версии 2.3.2, результатов не дало. Возможно система и обновилась, но посмотреть я это не могу.

Чистил кеш браузера, использовал разные браузеры их версии, результата ноль.

Вот, что показывает браузер хром

Uncaught ReferenceError: _ is not defined
index.php?f=/shop/manager/assets/modext/core/modx.localization.js,/shop/manager/assets/modext/util/…:181
Line 181, Column 1

Uncaught TypeError: Cannot read property ‘prototype’ of undefined
ext-base.js:21
Line 21, Column 1

Uncaught ReferenceError: _ is not defined
index.php?f=/shop/manager/assets/modext/core/modx.localization.js,/shop/manager/assets/modext/util/…:1
Line 1, Column 1

Uncaught TypeError: undefined is not a function
ext-all.js:21
Line 21, Column 1

Uncaught TypeError: undefined is not a function
?a=system/settings:35
Line 35, Column 1

Failed to load resource: net::ERR_CACHE_MISS
http://site.ru/shop/manager/?a=system/settings
Line 1, Column 1

Очень надеюсь на вашу помощь. Заранее большое спасибо.

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *