We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36788
    • 75 Posts
    I'm getting 400 Bad Request error with minification of JS/CSS in manager.

    I checked the log file - it is empty.

    After some search, I found that the most possible reason is a wrong configuration of root setting, and the possible solution is to set the path manually using the manager_js_document_root parameter in system settings.

    I thought this would be easy, but after I checked all possible and impossible combination I understand I was wrong))

    To define the core path I use "/storage/home/usr11202/mysite.com/core/"

    So for manager_js_document_root I tested:
    /storage/home/usr11202/mysite.com/
    /storage/home/usr11202/
    and even
    /storage/home/usr11202/mysite.com/manager/
    /home/usr11202/mysite.com/manager/
    /storage/home/usr11202/mysite.com/manager/

    but none work((

    Please help!
      • 36788
      • 75 Posts
      I found that $_SERVER['DOCUMENT_ROOT'] returns /home/usr11202/mysite.com/, while should return /storage/home/usr11202/mysite.com/, so part of the url is missing.

      $_SERVER['DOCUMENT_ROOT'] is used in manager/min/index.php