We launched new forums in March 2019β€”join us there. In a hurry for help with your website? Get Help Now!
    • 23363
    • 43 Posts
    Description of Problem:
    Tiny mCE gives an 500 error when I want to add an image and open the image browser KCFinder
    - Folder attributes are 755 for the folders: images, Flash and media
    - No problems with media or Flash
    - Possible to upload an image with Manage Files
    - The bug was introduced after updating from Modx version 1.0.6 to 1.0.12

    Steps to Reproduce:
    Edit page
    add immage
    Browse
    KCFinder opens and shows in both frames "Unknown error." Development tools reveals it is an http 500 error

    Expected Outcome:
    KCFinder opens and shows the content of the image folder


    • MODX Version: 1.0.12
    • PHP Version: 5.3.15
    • Database (MySQL) Version: 5.0.95
    • Additional Server Info: Shared hosting
    • Installed MODX Add-ons: Standard
    • Error Log Contents: (attach as file if it’s too large)
      • 34084 β˜† A M B β˜†
      • 756 Posts
      Double check your configuration of the file manager; in the Tools > Configuration then select the File Manager tab. Verify that your first input field for File Manager Path is correct for the environment. Then go into the Interfaces & Features tab, then scroll down about half way and check the File Base Path information. Let us know what you find.
        Evo Revo // Ubuntu, CentOS, Win // Apache 2x, Lighttp (Lighty)
        Visit CharlesMx.com for latest news and status updates.
        • 21417
        • 486 Posts
        Hi Pierun,

        I had the same issue upgrading from 1.0.10 to 1.0.12.

        My issue was related to some code in the htacess file that I did not change from 1.0.10 and below...

        I needed to upgrade this older code:
        #exclude /assets and /manager directories and images from rewrite rules
        RewriteRule ^(manager|assets)/*$ - [L]
        RewriteRule \.(jpg|jpeg|png|gif|ico)$ - [L]

        to the updated code:
        #exclude /assets and /manager directories and images from rewrite rules
        RewriteRule ^(manager|assets|js|css|images|img)/.*$ - [L]
        RewriteRule \.(jpg|jpeg|png|gif|ico)$ - [L]


        I hope that helps you too.
          Web design Adelaide
          http://gocreate.com.au
          • 23363
          • 43 Posts
          Quote from: charless at Nov 11, 2013, 10:38 PM
          Double check your configuration of the file manager; in the Tools > Configuration then select the File Manager tab. Verify that your first input field for File Manager Path is correct for the environment. Then go into the Interfaces & Features tab, then scroll down about half way and check the File Base Path information. Let us know what you find.

          Dear Charles,

          Thank you for your reply.

          In those fields there are the default values [(base_path)] and [(base_path)]assets/ being used.

          I tried the absolute path /var/www/html/assets but this doesn't solve the problem neither.
          Again the problem does not occur with media and flash oddly enough


          Jeroen [ed. note: pierun last edited this post 12 years, 10 months ago.]
            • 23363
            • 43 Posts
            Hello Nick,

            Thanx for your reply

            I have tried this, but the .htaccess was already the new version. (the old version didn't help btw.)

            Best regards,

            Jeroen

            Quote from: nickf08 at Nov 12, 2013, 04:19 AM
            Hi Pierun,

            I had the same issue upgrading from 1.0.10 to 1.0.12.

            My issue was related to some code in the htacess file that I did not change from 1.0.10 and below...

            I needed to upgrade this older code:
            #exclude /assets and /manager directories and images from rewrite rules
            RewriteRule ^(manager|assets)/*$ - [L]
            RewriteRule \.(jpg|jpeg|png|gif|ico)$ - [L]

            to the updated code:
            #exclude /assets and /manager directories and images from rewrite rules
            RewriteRule ^(manager|assets|js|css|images|img)/.*$ - [L]
            RewriteRule \.(jpg|jpeg|png|gif|ico)$ - [L]


            I hope that helps you too.
              • 21417
              • 486 Posts
              Hi Jeroen,

              No worries.

              Ah ok. For me it was definitely htaccess based - there was another piece of code which caused issues for me.

              I am not a programmer or anything.

              The way that I troubleshot it was to totally clear my browser cache, remove the htaccess file and turn off friendly urls.

              At this stage for me, image insertion in the RTE started working again.

              Then I commented out the rules in the htaccess file and reintroduced them one by one until I found the culprit.

              Maybe that method might help you too?

              Otherwise, you might need to call in the big guns (read, not me).

              Good luck.
                Web design Adelaide
                http://gocreate.com.au
                • 20413
                • 2,877 Posts
                Are you logged into the manager using www and have htaccess rewrite it?
                  @hawproductions | http://mrhaw.com/

                  Infograph: MODX Advanced Install in 7 steps:
                  http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

                  Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
                  http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower