We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27444 ☆ A M B ☆
    • 117 Posts
    Hi,

    I am currently developing a website using the latest MODX Evo 1.0.15.

    One issue that is being encountered is when trying to upload using the KCFinder.

    As can be seen from: http://snag.gy/bfqc5.jpg there are a couple of missing scripts which try to load when uploading an image. Result is that no images can be uploaded.

    Checked the FTP and the files are indeed not there. But also checked the downloaded zipped file from the modx.com and they are not in it neither.

    Did someone encounter same issue and solve?

    Thanks smiley

    This question has been answered by sjmclean. See the first response.

      Steven James McLean
      Tech Lead
      springbokagency.com
      • 1343 ☆ A M B ☆
      • 2,213 Posts
      Did you check if the files were located on github and perhaps missed in the zip?
        Patrick | Server Wrangler
        About Me: Website | Tweets |  MODX Hosting
        • 27444 ☆ A M B ☆
        • 117 Posts
        Yes, it was included in the zip file on Github in fact. Re-uploaded the whole manager folder from it.

        I still got an error though when uploading, and noted the following from Developer Tools (loaded after uploading an image):

        http://domain.com/manager/media/browser/mcpuk/browse.php?type=images&lng=en&act=upload - gives a 404 Error (Not Found)
        http://domain.com/manager/media/browser/mcpuk/browse.php?type=images&lng=en&act=chDir - gives a 200 (Post OK)

        The only difference between the two are the query strings. Do you know how this can be solved?
          Steven James McLean
          Tech Lead
          springbokagency.com
          • 41754
          • 5 Posts
          I came on here to see if anyone else was having trouble too. After seeing there wasn't any solutions posted and a bit of debugging, in my case it turned out the newer method seemed to be triggering a ModSecurity rule that it wasn't prior to upgrading to 1.0.15. The only thing that changed with this site (that was known to be working before) was the Evo upgrade.

          If you haven't already maybe that's something you could check.
            • 27444 ☆ A M B ☆
            • 117 Posts
            Hi dustinwalker, thanks for the hint smiley

            Could you please give me an indication which ModSecurity Rule I should switch off or add an exception?

            I'm using WHM (with CPanel) as a Server Management Software.
              Steven James McLean
              Tech Lead
              springbokagency.com
              • 41754
              • 5 Posts
              To be honest, I'm not sure. This was also WHM/cPanel. Once I saw my IP address in the modSecurity log, I whitelisted the directory to disable it completely to see if it fixed the issue which it did. I then put out a ticket with the host and after a few messages back and forth they were able to adjust it so it worked. I am not entirely sure what rule the adjusted or what they whitelisted.
              • discuss.answer
                • 27444 ☆ A M B ☆
                • 117 Posts
                For those facing the same problem, I solved it by applying the following rule to the Mod_Sec Configuration:

                <Directory /home/user/public_html/manager/media/browser/mcpuk>
                SecRuleRemoveById 1234123456
                </Directory>
                  Steven James McLean
                  Tech Lead
                  springbokagency.com
                  • 28120
                  • 380 Posts
                  This problem might be affecting me.

                  The site is on Rackspace Cloud Sites. How do I find out if ModSecurity Rules are running on this environment?
                    • 1343 ☆ A M B ☆
                    • 2,213 Posts
                    You should check with Rackspace, and/or the person who manages your server.
                      Patrick | Server Wrangler
                      About Me: Website | Tweets |  MODX Hosting
                      • 27444 ☆ A M B ☆
                      • 117 Posts
                      Quote from: sparkyhd at Nov 27, 2014, 10:42 AM
                      This problem might be affecting me.

                      The site is on Rackspace Cloud Sites. How do I find out if ModSecurity Rules are running on this environment?

                      Create a script with phpinfo(). Access it and check: apache2handler > Loaded Modules. You should see something similar to: http://gyazo.com/bcba303469f23671f7213e1478788cbd.png
                        Steven James McLean
                        Tech Lead
                        springbokagency.com