We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23510
    • 168 Posts
    Hi,

    Odd problem with TInyMCE - modx 2.2.5, tinymce 4.3.3.

    When selecting text in the editor and clicking the insert link button, I'm getting the current website's home page loaded inside the dialog box? Anyone else experience this? Particularly with the latest versions of modx and tinymce?

    Thanks in advance.

    John.
    • I have seen it a few time; what that means is that the URL being used by the javascript to load the dialog box is bad, and it's loading the site's default Not Found page. You might try manually clearing all the core/cache/ folders on your site, and completely clearing your browser cache and cookies for the domain (log out of the Manager first). A stale cached javascript file in your browser can cause a lot of problems.

      This sort of thing can be very confusing, which is why immediately after installing MODx I create a dedicated "404 Not Found" resource and change the system setting "error_page" to that resource. Now whenever there is a bad URL somewhere I know that's what the problem is.
        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
        • 23510
        • 168 Posts
        Thanks Susan. I know its not the browser at fault as its happening with multiple browsers. I've also tried clearing the cache folder and completely removing tinymce and its folders. Next I will try the error_page suggession and see if that helps.

        John
        • That won't help, it will just make it more obvious what is happening. For solving your actual problem, it may be an issue I ran into some years ago. The hosting company had a security setting that only allowed scripts to be run that were 4 levels deep into the file structure, and TinyMCE has files that are six levels deep. The hosting tech support changed the depth limitation from 4 to 6, and it worked fine after that.
            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
            • 23510
            • 168 Posts
            Problem sorted. It was the permissions on the assets folder.

            Thanks.

              • 18367
              • 834 Posts
              Got the same problem, it goes to my custom 404 page.

              This doesn't happen on my desktop version, or in a sub directory version I installed on the same host.

              I'm wondering if it's a system setting, FURLs or .htaccess custom issue.

                Content Creator and Copywriter
                • 34174
                • 67 Posts
                Did you check permissions on your assets folder? or even a folder inside assets

                Quote from: markg at Mar 20, 2013, 09:42 AM
                Got the same problem, it goes to my custom 404 page.

                This doesn't happen on my desktop version, or in a sub directory version I installed on the same host.

                I'm wondering if it's a system setting, FURLs or .htaccess custom issue.

                  • 18367
                  • 834 Posts
                  John,

                  assets is set at 777, components, at 755 and all the folders in tinymce at 755.

                  Some of the files in those folders are set at 644

                  OK, there must be some setting amiss somewhere as I'm getting the same problem with Redirector and some other plugins. That is they can't find the resource they need.

                  They keep getting the 404 page.

                  Very strange
                  [ed. note: markg last edited this post 11 years, 1 month ago.]
                    Content Creator and Copywriter
                    • 34174
                    • 67 Posts
                    It may be the ownership on the folders....is it set to nobody? This is where I get a little tied up and I find that what works on one server may not work on another.
                      • 18367
                      • 834 Posts
                      Hmm,

                      haven't dealt with that before, where do I check and change the ownership settings?

                        Content Creator and Copywriter