We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42287
    • 9 Posts
    My file browser will display all my images, and I can upload new images, but when I click an image to insert it, nothing happens. No error, just nothing.

    I can manually add the image by typing "assets/images/[filename]" in the add image dialogue box, so it doesn't seem like a permission issue that I can think of.

    I don't see any error in the logs either.

    I did upgrade to TinyMCE 3.2.4 to try and fix it but no change.

    Evolution 1.06
    UNIX, Apache,PHP 5.3.4
    Thanks for any ideas why I can't insert images.

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

    • Does your browser's error console show any Javascript errors?

      Is this a new site, or were you able to insert images before?
        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
        • 42287
        • 9 Posts
        I've had this issue since I upgraded from .9.6.3 to 1.06.
        Thanks for that console idea. I opened the javascript error console on the pop-up browser window and do have these 3 messages:
        Failed to load resource: the server responded with a status of 404 (Not Found) http://[sitename.com]/assets/plugins/tinymce3241jscripts/tiny_mce/tiny_mce_popup.js

        Uncaught ReferenceError: tinyMCEPopup is not defined tinymce.modxfb.js:24
        (anonymous function) tinymce.modxfb.js:24

        Uncaught ReferenceError: tinyMCEPopup is not defined tinymce.modxfb.js:6
        FileBrowserDialogue.selectURL tinymce.modxfb.js:6
        SetUrl tinymce.modxfb.js:27
        OpenFile /manager/media/browser/mcpuk/frmresourceslist.html:189
        onclick /manager/media/browser/mcpuk/frmresourceslist.html:1

        As for the first message, tiny_mce_popup.js IS on the server in that location. All folders above it have 755 permissions and that file is 644. So I'm not sure what that is giving me 404.

        I don't know what the second and third message mean. Any idea?
        • The other messages are because the file that can't be found is where they get defined.

          The URL assets/plugins/tinymce3241jscripts/tiny_mce/tiny_mce_popup.js is missing a / after the assets/plugins/tinymce3241
            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
          • discuss.answer
            • 42287
            • 9 Posts
            Great catch. I feel like I read a thread of a similar problem and how to fix it, but I can't find it! At least I'm on track. Thanks.
              • 42287
              • 9 Posts
              Found it! I had to edit the file seturl_js_tinymce.inc inside /manager/media/browser/mcpuk. It's a 2-line file and the first line was
              <script language="javascript" type="text/javascript" src="[+editor_path+]jscripts/tiny_mce/tiny_mce_popup.js"></script>


              I just had to add the / before "jscripts".

              Solved. Thank you.
                • 43136
                • 1 Posts
                Quote from: chrisa at Dec 28, 2012, 06:17 PM
                Found it! I had to edit the file seturl_js_tinymce.inc inside /manager/media/browser/mcpuk. It's a 2-line file and the first line was
                <script language="javascript" type="text/javascript" src="[+editor_path+]jscripts/tiny_mce/tiny_mce_popup.js"></script>


                I just had to add the / before "jscripts".

                Solved. Thank you.

                Note for modx 1.09 I found the above was not the fix but removing the jscripts/ was eg
                src="[+editor_path+]tiny_mce/tiny_mce_popup.js"

                Hope that helps someone else
                  • 42387
                  • 10 Posts
                  in my case the paths are little different:

                  <script language="javascript" type="text/javascript" src="[+editor_path+]jscripts/tiny_mce/tiny_mce_popup.js"></script>
                  <script language="javascript" type="text/javascript" src="[+editor_path+]tinymce.modxfb.js"></script>

                  (added jscripts/ in first row)...