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

    It's been a while since I've had any issues, but just now tinymce is having issues with creating a link.
    I thought maybe it needed updating, so I upgraded to 4.3.0, but the problem persists.

    Whenever I try and edit or add a link I get the message in the attachment.

    I'm running:
    ModX Revo 2.1.1pl
    MySQL 5.1.56
    Php 5.2.9

    Any Ideas?

    Chris

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

      • 3749
      • 24,544 Posts
      Have you done anything that might be affecting this -- e.g. working with contexts, messing with the TinyMCE configuration, changing file/directory permissions, etc.

      If not, the first thing I'd suggest is uninstalling and removing TinyMCE and then re-downloading and re-installing it.
        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
        • 27446
        • 8 Posts
        Hello,

        I have the same problem as chris with my TinyMCE.
        I tried your suggestion but sadly for me it did not fix the problem. I uninstalled and removed TinyMCE and then redownloaded it to reinstall it but yet it did not work.

        Is there any other possibility that might cause TinyMCE to act this way?

        What I'm running:
        TinyMCE 4.3.0
        MODx Revo 2.1.3pl
        MySQL 5.0.91
        PHP 5.2.17
          • 37383
          • 6 Posts
          Thanks BobRay, I suppose I should've considered that option first...

          It seems to have worked for now although, admittdly, the issue was intermittent, so we'll see if it lasts. And no, I hadn't changed any settings whatsoever - it's quite disconcerting when things like this happen without any alteration by myself.

          As an aside - whenever I try to browse within the Modx Resource Browser ( tinymce -> insert/edit link -> link url : browse ) none of the folders, other than the root will show their contents. I can click through them and expend/contract the filetree, but the displayed files remain the same. [ed. note: chris. last edited this post 14 years, 11 months ago.]
            • 34759
            • 3 Posts
            Hi,

            I've been looking all over the internet and many forums about the same problem but still don't know why is this happening. I installed the TinyMCE editor but when i click the Insert link button it opens the pop-up window with homepage of my website and with url:

            <name-of-the-site>/assets/components/tinymce/jscripts/tiny_mce/plugins/modxlink/link.php?v=220pl2 .

            The insert/edit media and insert/edit image work just fine but i can't insert links.

            I mean, it's not the end of the world, i can still insert the link manually in html mode but i would like to know why this doesn't work.

            Modx version is 2.2.0
            TinyMCE 4.3.2

            [ed. note: DSkyline last edited this post 14 years, 5 months ago.]
              • 31902
              • 342 Posts
              I understand this is a 6+ year old thread but believe it or not, I have the same issue. I'm dealing with a VERY old MODx site (MODx 2.2.0-pl2). For certain reasons, the site is not to be updated at the moment, so that is not an option right now.

              The site had been running for years and then the client declared that the links option popup through TinyMCE would throw a "This page isn't working" error message (Chrome). The same URL as stated above at the top of the popup box (http://www.domain.com/assets/components/tinymce/jscripts/tiny_mce/plugins/modxlink/link.php?v=220pl2). And, I just noticed a similar issue when I try to add an image through the editor, as well.

              Some notes:


              • I can use TinyMCE to make text changes, as normal.
              • Nothing changed that I know of on the site; nothing behind the scenes that the client has access to except basic editing.
              • When originally built, the site had been running with an older version of PHP (5.6, I believe). The server is currently running on PHP 7 but we have reverted the version to 5.6, with no improvement.
              • All component related directories permissions are okay.
              • The site had TinyMCE version 4.3.2. I upgraded it to 4.3.4 and when it crashed the site, I then installed version 4.3.3 of TinyMCE.
              • There is nothing in the error log about this.
              • Unlike the OP, I can't just leave this problem with manually adding links and images through the html portion of the editor. The client is not that html savvy.

              Has this issue been identified and remedied before? Is there any other editor, other than TinyMCE that would work with this old version of MODx?

              Thank you in advance.
                • 3749
                • 24,544 Posts
                I don't have a direct answer, but it might work to use NewsPublisher to let the user create and edit resources in the front end. NP has its own file and image browser, though you wouldn't be able to drag-and-drop resources for links. NP also uses the current version of TinyMCE from CDN, so it won't user your current TinyMCE at all. I can't guarantee that NP would work in that old version, but I think it would.

                Something to try, though it doesn't really fit your symptoms very well, is to manually delete all files in the core/cache directory. Early 2.2 versions had trouble with cache corruption.

                You probably know this, but your version has serious security vulnerabilities and is in danger of being hacked. A number of security fixes have been introduced since that version.
                  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
                  • 31902
                  • 342 Posts
                  Quote from: BobRay at Jan 11, 2018, 11:52 PM
                  I don't have a direct answer, but it might work to use NewsPublisher to let the user create and edit resources in the front end. NP has its own file and image browser, though you wouldn't be able to drag-and-drop resources for links. NP also uses the current version of TinyMCE from CDN, so it won't user your current TinyMCE at all. I can't guarantee that NP would work in that old version, but I think it would.

                  Thanks, Bob. I'll look into that

                  Quote from: BobRay at Jan 11, 2018, 11:52 PM
                  Something to try, though it doesn't really fit your symptoms very well, is to manually delete all files in the core/cache directory. Early 2.2 versions had trouble with cache corruption.

                  Yeah. One of the first things I tried.

                  Quote from: BobRay at Jan 11, 2018, 11:52 PM
                  You probably know this, but your version has serious security vulnerabilities and is in danger of being hacked. A number of security fixes have been introduced since that version.

                  I agree.

                  Thank you for your responses. If you can think of anything else, please advise.
                    • 31902
                    • 342 Posts
                    Interestingly, the insert images feature of the TinyMCE editor seems to work with Firefox, although the link feature still doesn't. Not sure what that means, if anything.
                    • discuss.answer
                      • 31902
                      • 342 Posts
                      Problem solved.

                      Turns out several directories within the assets folder had permissions set to 777. Changed them to 755 and all was fine. Thinking recent server security hardening made the permissions thing a lot less permissive, so to speak.