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.
-
- 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.
-
- 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
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
-
- 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.
-
- 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.
-
- 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