We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6281
    • 45 Posts
    Hi,

    Just developed a site locally and transferred to host. All ok. .htaccess, rewrite all working fine. Problem i’m having is that when i edit a resource it shows correctly in the Manager but on saving, the file save but the manager doesn’t close automatically and shows a 404 in the manager window. Any ideas?

    Thanks
      Argue for your limitations and they are yours!
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Sounds like a problem with mod_security, or suhosin. http://wiki.modxcms.com/index.php/What_is_mod_security_and_how_does_it_affect_me
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 6281
        • 45 Posts
        Hi thanks,

        But, using ANY of the options from that link in the .htaccess files causes 500 Internal Server Error.

        I’ll keep looking...

        Thanks
          Argue for your limitations and they are yours!
          • 6281
          • 45 Posts
          I found my resolution.

          SoftException in Application.cpp:256: File "/home/websitename/public_html/assets/plugins/qm/close.php" is writeable by group, referer: http://www.websitename.co.uk/manager/index.php?a=27&id=1&quickmanager=true
          Premature end of script headers: close.php, referer: http://www.websitename.co.uk/manager/index.php?a=27&id=1&quickmanager=true

          It appears to be a permissions problem with the QM file close.php. Also the folders ’assets’, ’plugins’ and ’qm’ were writeable by the group user.

          permissions changed to 755 on those files/folders and recursively within. All working great now smiley
            Argue for your limitations and they are yours!
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            A lot of shared hosting require folder permissions of 755 and file permissions of 644, mostly if they have PHP running as CGI (rather than an apache module) and some form of suexec (where a scripts runs as its owner rather than the apache user; apache calls the script, but then the user is switched to the script owner).
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 6281
              • 45 Posts
              That makes sense, thanks! wink
                Argue for your limitations and they are yours!