We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    When I click on the "Insert Image" icon in TinyMCE, it opens the image dialog, but when I click on the browse button to browse for images, the window opens but it is completely blank.

    The browse button has this JS:

    javascript:openBrowser('srcbrowser','src', 'image','theme_advanced_image_image_browser_callback');


    I see this in the Error log (though it's from the the NewsPublisher attempt):

    [2012-06-14 17:44:54] (ERROR @ /addons/connectors/system/phpthumb.php) phpThumb was unable to generate a thumbnail for: C:\xampp\htdocs\addons\core\cache\phpthumb\phpThumb_cache_localhost_src4384b8c648e7824e9a046c7066a3d157_paradf896d45f319fa323d889e84ccb98c5_dat0.jpeg
    [2012-06-14 17:44:54] (ERROR @ /addons/connectors/system/phpthumb.php) Error outputting thumbnail:
    OutputThumbnail() failed because !is_resource($this->gdimg_output) in file "phpthumb.class.php" on line 557





    MODX 2.2.1
    TinyMCE 4.3.2

    I've tried completely removing and downloading and installing a new TinyMCE, and clearing the cache and the browser cache and cookies, but the problem remains.

    It's a localhost install on Windows Vista, so it's not a permission issue. Curiously, when I try the same thing from inside NewsPublisher, it works (though the image preview is a broken image).

    Any idea what could cause this?



    ------------------------------------------------------------------------------------------
    PLEASE, PLEASE specify the version of MODX you are using.
    MODX info for everyone: http://bobsguides.com/modx.html
      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting
      • 3749
      • 24,544 Posts
      Update -- Upgraded to MODX 2.2.4. The image browser is still blank when used in a richtext document's content field. It now works fine for richtext TVs, however. WTF?

      I can insert an image tag manually in HTML mode and that works, but when I edit the image and click on the image browser link, the browser window is still empty.

      Seeing this in the FF console for

      POST http://localhost/addons/connectors/system/registry/register.php
      	
      
      Syntax error: MODx.onBrowserReturn = ; 
      this.el is null:
      (function(){var h=Ext.util,j=Ext.each,...lclick",this.onNodeDblClick,this)}}); 
      


      Seeing this in the MODX error log (plugin 217 is TinyMCE):

      [2012-06-15 18:45:08] (ERROR @ /addons/manager/index.php) [OnParseDocument]<br />
      <b>Notice</b>:  Undefined index: language in <b>C:\xampp\htdocs\addons\core\cache\includes\elements\modplugin\217.include.cache.php</b> on line <b>58</br>
      



      Filed: http://tracker.modx.com/issues/8119
      [ed. note: BobRay last edited this post 11 years, 11 months ago.]
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
      • Oh my Bob...

        If you can't figure it out, how would we?

        lol, jk. There's plenty out there who got the brains to do it. Not me. Nuh uh...

        When Bob's stumped... the world ends for me! I was about to update two sites with 2.2.4 but I think I'll wait. I just uploaded the zip to both. But if Dad can't insert images, the world will again... End.

        Bob, did you try Chrome? (I still have issues with image browsing in Chrome. The icon simply doesn't appear after the first try. Brand new install on Win 7.)
          Frogabog- MODX Websites in Portland Oregon
          "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
          Having server issues? These guys have MODX Hosting perfected - SkyToaster
          • 3749
          • 24,544 Posts
          Dad?

          Thanks for the kind words, but don't let this scare you away from 2.2.4. I expect that it's a problem with XAMPP (and possibly just my own XAMPP setup). I have yet to test it on a remote site.

          I see the problem in both Chrome and FF on localhost, though.



          ------------------------------------------------------------------------------------------
          PLEASE, PLEASE specify the version of MODX you are using.
          MODX info for everyone: http://bobsguides.com/modx.html [ed. note: BobRay last edited this post 11 years, 10 months ago.]
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
          • Meh Daddy... I made him a website. He's my most important client :~}

            I installed 2.2.4 on a different server for another client (hopefully), it's seeming to work ok except some of the images I uploaded through the manager never actually uploaded, and some of the ones that did upload wouldn't display at first. Had to ftp the ones I missed, then they showed up.

            FWIW - this other server has Simple Scripts available and 2.2.4-pl was there and available within hours after release. It also installed perfectly. I'm pleasantly impressed.
              Frogabog- MODX Websites in Portland Oregon
              "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
              Having server issues? These guys have MODX Hosting perfected - SkyToaster
              • 3749
              • 24,544 Posts
              Whew, I thought maybe I was in for a paternity suit. wink
                Did I help you? Buy me a beer
                Get my Book: MODX:The Official Guide
                MODX info for everyone: http://bobsguides.com/modx.html
                My MODX Extras
                Bob's Guides is now hosted at A2 MODX Hosting
              • heh... I don't think you're old enough for that. But Happy Father's Day anyway :~}
                  Frogabog- MODX Websites in Portland Oregon
                  "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
                  Having server issues? These guys have MODX Hosting perfected - SkyToaster
                  • 3749
                  • 24,544 Posts
                  Thanks!
                    Did I help you? Buy me a beer
                    Get my Book: MODX:The Official Guide
                    MODX info for everyone: http://bobsguides.com/modx.html
                    My MODX Extras
                    Bob's Guides is now hosted at A2 MODX Hosting
                    • 40758
                    • 17 Posts
                    Good to know I'm not the only one seeing this issue.
                    ModX 2.2.4
                    TinyMCE 4.3.3

                    on IIS 7 or 7.5 (Windows Server 2008 R2 SP1)
                    PHP 5.3.13

                    Works fine in a LAMP stack on Linux. (works way better with less setup issues)
                      • 40758
                      • 17 Posts
                      Can't afford to wait for a fix.
                      The error indicates it's having an issue getting the language from properties, in my case.
                      So I skip the detection and go straight for English.
                      Works for me.