We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Can you make a new TV with the same values and name, and disable & rename the offending TV? Does the issue return?

    I've done this before, with good results. Don't duplicate the TV. Make new.
      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
      • 34178
      • 212 Posts
      Hi Frogabog,
      by making a new TV with the same values we found the problem: The error occur if a Resource Group is chosen in the Access Permissions of any TV.

      Maybe we did something wrong when we setup our Resource Groups or maybe this is a bug. I will report this in the 2.2-part of this forum.

      Thanks a lot for this help! [ed. note: lettis last edited this post 11 years, 5 months ago.]
      • Good to know. I'm not sure what's going on with 2.2.5 but I'm dealing right now with a (2nd time this happened) resource that's behaving badly. Interestingly enough, it depends upon where I place it in the tree. If I stick it into a hidden folder, publish it, unhide it and view it, it works fine. But if I place it into it's rightful spot, a simple getResources call set to [ [ *id ] ] pulls in children too.
          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
          @Frogabog: Do you mean &parents=`[ [*id] ]` (or am I misunderstanding you)? That would be expected to get the children.

          What are you trying to do?



          ------------------------------------------------------------------------------------------
          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
          • I put the details into a new thread. I didn't want to hijack this one.

            edit: how funny, it's my own thread in the first place.

            new thread here: forums.modx.com/thread/79943/getresouces-is-confused
              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
              • 20407
              • 82 Posts
              I'm having this problem (document won't save) for the first time today on a Revo 2.2.4 site. I've seen it on another, older site too and posted here in a similar topic.

              Followed the suggestions here, and it's nothing to do with the browser or with whether the resource is hidden from menus or published. It's either something in the content or the content length. One paragraph of text saves fine, any more than that and I get the endless "Saving..." dialog and see a 500 error in Firefox's Net panel. Looks like I'll have to do a manual db update, which is how I got around the problem on the other site.

              There should at least be some AJAX error checking and some kind of error message. Does anyone know if this has been addressed later versions of Revo? [ed. note: MrFussyfont last edited this post 10 years, 9 months ago.]
                • 20407
                • 82 Posts
                I did some more testing and it does seem to be something to do with the content itself, rather than the content length (number of characters). I can't isolate which part of the text is offensive though – it seems to be a combination of different parts. I will check with my hosting provider about security settings as per the other forum topic.
                  • 3749
                  • 24,544 Posts
                  This is almost certainly mod_security in action. It's objecting to some word or phrase in the document that looks suspicious. Different hosts have different ideas about what looks suspicious. Look for stuff like exec, unlink, etc. Hosts have some goofy ideas on this. One user couldn't save a resource with the word 'casino' in the content.

                    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
                    • 20407
                    • 82 Posts
                    OK, I talked to my host and he said he whitelisted the 2 most commonly flagged false positive rules, specifically SQL injection rules 300015 and 300016. This was done for the shared SSL domain, since that's how I access the MODX manager (e.g., https://domain.com/~user/manager). This solved the problem for me; hope this helps someone else.

                    Also see http://wiki.modxcms.com/index.php/What_is_mod_security_and_how_does_it_affect_me. This information may be outdated however, since the .htaccess solution did not work for me and in fact caused a 500 error.
                      • 3749
                      • 24,544 Posts
                      I think not so much outdated as incomplete. Hosts decide what they will and won't allow in .htaccess and violations usually result in an unhelpful 500 error.

                      There's some more information here: http://rtfm.modx.com/display/revolution20/Installation+on+a+server+running+ModSecurity
                        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