A solution to the "empty admin" MODX Revo

install MODX Revolution many have a problem with the fact that when entering the admin area does not load the main content (right block).

This behavior is due to the work of the module Suhosin and/or eAccelerator.

Under the cut decision.br>
The problem is that by default in the admin panel of MODX Revo uses caching JS and CSS files using Minify. One of the decisions "in a forehead", which is where a lot of people recommend "if nothing else has worked", disabling caching. Just in case, will tell you how it's done:
Open the file /core/cache/system_settings/config.cache.php
the string 'compress_js' => '1', replaced 'compress_js' = > '0',
the string 'compress_css' = > '1', replaced 'compress_css' = > '0',

then when the admin panel is loaded, go to System->Settings and in the search enter compress, you will receive a few points, we have compress_js and compress_css to set No.

The decision of the working, that is the only way of slowing down admin area download 100500 scripts and styles, and we would like to the admin panel worked faster.

Let us consider in more the best the right decisions.

the

problem with Suhosin.


Most often, to solve the problem with Suhosin is possible by specifying in the php suhosin.ini the value of the variable suhosin.get.max_value_length is 4096:
suhosin.get.max_value_length = 4096

Or, if server settings allow, you to register in /manager/.htaccess this line:
php_value suhosin.get.max_value_length 4096

Although this setting is spelled out in the script minify, but may not work if you do not change this setting from the PHP script.

If everything is OK and caching to work, then you can not read.

the

problem with eAccelerator.


I have a server running apache+nginx+php eAccelerator'ohms. For some unknown reason, the caching of the scripts worked. Empirically, it was found that the problem is due to eAccelerator'. The gugleniya sensible advice is not given, disable eAccelerator is not an option, disable the caching of scripts too not a variant.

The solution is simple.
Open the file /manager/min/index.php and in the top (after <?php of course) you write:
@ini_set('eaccelerator.enable', 0);
thereby disabling eAccelerator for this script.
Of course, for this to work, you must have the ability to change settings from PHP scripts.

Alternatively, if server settings permit, you can register in the file /manager/min/.htaccess this line:
php_value eaccelerator.enable 0

After the steps above, the caching of scripts and styles works, admin works faster!
Article based on information from habrahabr.ru

Комментарии

Популярные сообщения из этого блога

Monitoring PostgreSQL + php-fpm + nginx + disk using Zabbix

Templates ESKD and GOST 7.32 for Lyx 1.6.x

Customize your Google