We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28215
    • 4,149 Posts
    Quote from: papachumba at Jun 07, 2011, 09:28 AM

    Hi Shaun, the downloads do not seem to work any more "access denied in xml?".
    I managed to download the updated code from github for modext.js
    Gah. Ok, fixed. Transmit seems to not like me this AM. Should be able to DL it fine now.
      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
      • 22656
      • 121 Posts
      Thanks, downloaded and uploaded,
      would like to report 3 more issues, sorrry!



      • Setting compress_js in settings to Yes reproduces the problem, so I think something is still wrong with modext-min.js
      • Opening the resources browser for the first time loads the folder tree correctly (according to what i set in settings, ie./assets/resources/images), however right pane still shows the root files. Clicking on the resources/images folder in the left pane after the page has loaded does show the thumbs in the right pane.
      • Also, clicking the "cancel" button in resources browser causes the window to show a grey background without closing in Firefox 4.01

      edit: sorry just to add, this occurs when you go to tiny’s "insert image" icon, and then click on resource browser shortcut within here. Using a TV of image type seems to work ok as far as i can tell.
        • 3894
        • 15 Posts
        Quote from: papachumba at Jun 07, 2011, 09:52 AM

        Thanks, downloaded and uploaded,
        would like to report 3 more issues, sorrry!



        • Setting compress_js in settings to Yes reproduces the problem, so I think something is still wrong with modext-min.js
        • Opening the resources browser for the first time loads the folder tree correctly (according to what i set in settings, ie./assets/resources/images), however right pane still shows the root files. Clicking on the resources/images folder in the left pane after the page has loaded does show the thumbs in the right pane.
        • Also, clicking the "cancel" button in resources browser causes the window to show a grey background without closing in Firefox 4.01

        edit: sorry just to add, this occurs when you go to tiny’s "insert image" icon, and then click on resource browser shortcut within here. Using a TV of image type seems to work ok as far as i can tell.

        I can confirm all of above.
        I am running Modx 2.1.1-pl with this patch:
        https://github.com/modxcms/revolution/commit/ea641b8cbc6545a4b3f5ceafdc5145d8206dbf32

        I have downloaded the following new js files but there was no difference with own files.
        http://modx.s3.amazonaws.com/assets/fixes/211modxrb/modext-min.js
        http://modx.s3.amazonaws.com/assets/fixes/211modxrb/modext.js

        EDIT:
        After some more research. I figured out that the first problem (images still not shown when compress_js is On) is caused by the fact that the file "manager/assets/modext/build/widgets/core/modx.rte.browser-min.js" is included when "compress_js" is On. So if you’ve only changed the file "manager/assets/modext/widgets/core/modx.rte.browser.js" (changes shown in the diff) it will only work with "compress_js" turned Off.

        The solution is to edit the "manager/assets/modext/build/widgets/core/modx.rte.browser-min.js".

        Find:
        this.view.run({dir:A,ctx:MODx.ctx});

        and replace it with:
        this.view.run({dir:A,wctx:MODx.ctx});

        to fix the minified/compressed version.
          • 34108
          • 66 Posts
          UPDATE - Got it working for both the MODx Browser & the TinyMCE browser.


          Quote from: papachumba at Jun 07, 2011, 09:52 AM

          edit: sorry just to add, this occurs when you go to tiny’s "insert image" icon, and then click on resource browser shortcut within here. Using a TV of image type seems to work ok as far as i can tell.

          I’m having the same result. I uploaded the latest .js files (thanks Shaun!) and that fixed the viewing problem from within the modx browser (so works fine for TV’s) but within TinyMCE the problem persists - I can see all the folders on the left-side just fine, but the only images that will show up are those in the main root directory (screenshot attached).

            • 28215
            • 4,149 Posts
            Make sure you’ve cleared your browser cache - the JS might be cached.
              shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
              • 34108
              • 66 Posts
              Thanks Shaun smiley Yup I think that was part of the problem. It’s working fine for me now, I’ve posted the steps I took in my post above.
                • 36686
                • 165 Posts
                When there’s a new version of MODx (or TinyMCE?) released that includes this fix, it would be much appreciated if it was posted here. Tnx!
                  • 15200
                  • 56 Posts
                  Hi guys, I’ve got KIND OF a similar problem, you can find it in this thread.

                  Could these problems be related?
                    • 33983 ☆ A M B ☆
                    • 181 Posts
                    I am running on IIS 7.5, windows 2008 and I followed the steps above but the images do not appear for me. Here is the hack I did to make it work:

                    File: connectors/system/phpthumb.php insert the following code on line 2
                    <?php
                    if( isset($_REQUEST['HTTP_MODAUTH'])) {
                        unset($_REQUEST['HTTP_MODAUTH']);
                    }
                    ?>


                    For some reason it is not sending the correct value, but if you unset the value it works fine.
                      • 21395
                      • 91 Posts
                      I followed HarmonySteel’s changes and it worked partially for me: I can now see the little squares in TinyMCE that surround the images. But still no images. Capturing an image in a TV is unchanged. Now a very similar view in the MODX Web Browser to the Tiny MCE view.

                      Could there be another underlying reason? All the directory permisisons are 755, the image files themselves are 644. I’ve cleared all caches to the point where I’ve also turned off the entire computer as well to make sure there wasn’t a cashe I didn’t know about. No good, of course.

                      Nic Boyde

                      My set-up

                      CGI/FastCGI
                      MODx Revo 2.1.1 (trad)
                      PHP 5.3.6
                      MySQL 5.1.56
                      pdo-mysql installed
                      ImageMagick 6.4.8 2010-01-07
                      json version 1.2.1
                      I browse in Firefox, Safari, IE and Chrome - latest non-Betas of each.
                      I’m not opcode cacheing to my knowledge
                        MODX Revolution 2.6.5-pl (traditional)

                        Hosted on MODX Cloud

                        Skype: nicbaldeagle