I'm running into this same exact problem on MAMP.
[2011-11-23 11:54:40] (ERROR @ /All_Fired_Up/manager/index.php) Instantiated a derived class modResource that is not a subclass of the requested class modDocument
Is this just a bug or is there a way to define in System Settings for the default "Resource Type" to be "Document"?
Precision Web Development ... SmashStack.com
To help narrow down the specific conditions in which "Resource Type" is defaulting to "modResource", it's only occurring when I add a new MODx document under an existing document in the tree structure. If I click on the "New Document" icon above the tree structure, this isn't happening...it's only happening when I add a new document (make it a child document) in the tree.
Hope this helps clarify.
Precision Web Development ... SmashStack.com
-
- 202 Posts
Revisiting this minor issue: Quick Create has the correct Resource Type Setting already selected.
-
- 202 Posts
Interestingly enough, the Quick Create defaults to modDocument.
-
- 81 Posts
I don't have it in front of me right now to check, but I believe that is because the QuickCreate function doesn't have to pass/intercept its values through an HTTP request. So I guess it's assumed that the class_key is correct. and isn't matched against an array as in the code i pasted above.
I'll look into it further if I get a chance later. In the meantime, can anyone more knowledgeable about the revo 2.2 code-base chime in on this? Keep in mind that the regular devs are probably not going to be looking at this stuff over the weekend.
-
- 81 Posts
Thanks, splittingred. I'd love to, but I mentioned in my first post that I am unable to register on the bug tracker, leaving this forum as my only available recourse. How can I sign up for an account so I can formally submit this?
-
- 4,149 Posts
MokoJumbie:
Use the account you're logged into the forums with. It's all SSO.
shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect |
github |
splittingred.com