The solution to the "empty admin" MODX Revo

    When installing MODX Revolution, many people have a problem with the fact that when entering the admin panel the main content (the right block) does not load.

    This behavior is a consequence of the operation of the Suhosin and / or eAccelerator module.

    Under cat solutions.

    The problem is that by default the MODX Revo admin admin uses caching of JS and CSS files using Minify . One of the “forehead” solutions, which is recommended in many places “if the rest did not work,” disables caching. Just in case, I’ll tell you how to do it:
    Open the file /core/cache/system_settings/config.cache.php the
    line 'compress_js' =>' 1 ′, change it to 'compress_js' =>' 0 ′, the
    line 'compress_css' =>' 1 ′, change it to 'compress_css' => '0 ′,

    then when the admin panel boots up, go to System-> Settings and enter compress in the search , several items will be displayed, we need to set compress_js and compress_css to None .

    The solution is working, that's the only way we slow down the admin panel by loading 100500 scripts and styles, and we would like the admin panel to work faster.

    Consider better, better solutions.

    Solving the problem with Suhosin.


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

    Or, if the server settings allow, the register in /manager/.htaccess following line:
    php_value suhosin.get.max_value_length 4096

    While this setting and spelled in the minify script, but it may not work if it is forbidden for you to change this setting from a PHP script.

    If everything is good and caching worked, then you can not read further.

    Solving the problem with eAccelerator.


    My server runs a bunch of apache + nginx + php with eAccelerator. For an unknown reason, script caching worked every other time. Empirically, it was found that the problem was due to eAccelerator. Googling did not give sensible advice, disabling eAccelerator is not an option at all, disabling script caching is also not an option.

    The solution is simple.
    We open the file /manager/min/index.php and go to the very top (after that, by disabling eAccelerator for this script. Of course, for this to work, you should be able to change the settings from PHP scripts. Alternatively, if the server settings allow it, You can write the following line in the /manager/min/.htaccess file : @ini_set('eaccelerator.enable', 0);




    php_value eaccelerator.enable 0

    After the manipulations, caching scripts and styles works, the admin panel works faster!

    Also popular now: