We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19872
    • 1,078 Posts
    So let's take this error for example that ends with [OnRichTextEditorInit]1

    According to info found at the link you sent, it indicates: Renders anytime a Richtext Editor could be used. I am using Redactor as my Rich Text editor. So if I go into each snippet for Redactor and insert return; as the last item in the code, this error should then stop appearing in the MODx error log YET Redactor will continue to successfully function?

    I think I'm getting lost in the weeds here. Much of this is over my head. If indeed the Extras are the problem, I'm willing to jump in a throw a return; at the end of every snippet.

    Thanks for your feedback Susan.
    • I would presume that Redactor is just one plugin.

      That message is just returning the value from the function run by the OnRichTextEditorInit event processing code. So the message is telling you "who" is saying the message, the event processing function, and the message is 1, or success. If the plugin that the event processor included had a closing return; statement, then that would get returned... nothing.
        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
        • 19872
        • 1,078 Posts
        Ok. So here's something very interesting:

        Redactor is a plugin... yes. As for snippets / Extras I have MIGx, FormIt, pdoTools, pThumb and Wayfinder. At this point, all are in their original state when they were loaded. I just went into the Redactor plugin, and entered return; at the very end, and now, I do not seem to be able to get any errors to show up in the log. I've toggled around through the various resources and elements, previewed the site, and still no new errors.

        Could it be that all of my Extras are actually OK, and that Redactor is the only item that needed return; added to the end of the code?

        For now it looks like just adding return; at the end of the Redactor plugin has solved the problem.
          • 19872
          • 1,078 Posts
          Now with my other site experiencing the errors in the log after updating to MODx 2.3, I use TinyMCE. I'll jaunt over to that site and see if adding return; fixes the issue there as well.
            • 19872
            • 1,078 Posts
            OK. Other site with TinyMCE... TinyMCE already had return; at the end of the code. BUT! CAPTCHA does not. Adding it to the CAPTCHA plugin code resulted in no more errors in the log.

            So this is perhaps no so much with the actual snippet code, but in the plug-in code.
              • 19872
              • 1,078 Posts
              Hey Susan:
              Thanks for your input on this topic. Your helpful explanations, feedback and patience are truly appreciated.
                • 3749
                • 24,544 Posts
                Good catch! I've updated the Captcha package.
                  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
                  • 33988
                  • 110 Posts
                  Looks like this was fixed in 2.3.1 http://modx.com/blog/2014/07/22/revolution-2.3.1/
                    Sal Sodano
                    President & Co-Founder of SkyToaster
                    My Website Salscode.
                    • 19872
                    • 1,078 Posts
                    Hi Sal:

                    Thanks for followoing up Sal. I keep hearing that but I just downloaded MODx last night and it was 2.3.0

                    That install is actually working really well. Wish I could say the same for my other site that got hit by core services. Might be moving this site over to Skytoaster this weekend. The goDaddy is noDaddy right now.