Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Class "DocumentCreateManagerController" not found when enable_template_picker_in_tree is off #16004

Closed
Mark-H opened this issue Jan 25, 2022 · 2 comments
Labels
bug The issue in the code or project, which should be addressed.
Milestone

Comments

@Mark-H
Copy link
Collaborator

Mark-H commented Jan 25, 2022

Bug report

Summary

When the template picker in 3.0.0-rc1 is DISABLED, or when using Collections or a quick dashboard link to create a new document, an error is thrown.

Step to reproduce

Try to navigate to the resource/create controller with a pre-defined class key, e.g.:

  • https://localhost/3.x/manager/?a=resource/create&class_key=MODX\Revolution\modDocument&parent=1&context_key=web

URLs like this are generated with the template picker off and right clicking in the tree > create document here, or through Collections or Quickstart Buttons.

Observed behavior

afbeelding

Error: Class "DocumentCreateManagerController" not found

Errors:

    ResourceManagerController::getInstance()
    MODX\Revolution\modManagerResponse->outputContent()
    MODX\Revolution\modManagerRequest->prepareResponse()
    MODX\Revolution\modManagerRequest->handleRequest()

What's interesting though: it does work for weblinks, static resources and symlinks. So it seems to be document-specific.

When removing the class_key URL parameter, it also works fine.

Expected behavior

Allow creating a new document without the template picker.

Related issue(s)/PR(s)

N/a

Environment

3.0.0-rc1

@Mark-H Mark-H added the bug The issue in the code or project, which should be addressed. label Jan 25, 2022
@Mark-H Mark-H added this to the v3.0.0-rc2 milestone Jan 25, 2022
@JoshuaLuckers
Copy link
Contributor

@Mark-H this has been resolved in PR #15997

@Mark-H
Copy link
Collaborator Author

Mark-H commented Jan 26, 2022

Ah, totally missed that one. Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue in the code or project, which should be addressed.
Projects
None yet
Development

No branches or pull requests

2 participants