We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38878
    • 255 Posts
    Quote from: johnnyp at Jun 28, 2015, 09:13 PM
    https://forums.modx.com/thread/79958/custom-manager-pages-in-2-3#dis-post-440541

    Solution found. sottwell pointed out years ago how confusing the tutorial is.

    It's not that the tutorial is wrong, just that it's not obvious how to construct your own class name unless you're using a basic name. Maybe Just putting the note in a little highlight box like in other articles may help?

    [EDIT] Actually... The tutorial may well be wrong, as it states that your class should be prefixed with the CMP name, not the namespace. Can someone check this out?

    [EDIT2] Yeah, I'm fairly sure the tutorial is wrong. What does "CMP name" even mean?

    Conclusion:

    Name the class within your action.class.php file strictly as:

    class namespaceactionManagerController extends modExtraManagerController {

    And remove any hyphens in namespace or action name; don't replace with underscores, just remove them. From the previous error I'm also fairly sure that having a hyphen in the namespace causes other issues; so it's probably inadvisable to use 'em.

    <!-- Begin Rant -->
    I hate to add to the noise about the CMP, but I tried this and I am also getting the WSoD. Running 2.4.1 on cloud. I have done this before a few months ago and it took me a while to wrangle it out. I figured this time I was a "seasoned pro" given the sweat equity I put into it last time. But No. The only way to get the manager back is to rename the component directory to something else and delete the cache. This really shouldn't be this hard. Hours trying to get a simple CMP to load with minor modifications to the tutorial shouldn't take the better part of a day. Nothing in the error log either.

    Mother of All That is Holy can someone fix this or document the proper way to do it?
    <!-- End Rant --> [ed. note: harveyev last edited this post 10 years, 11 months ago.]
      • 3749
      • 24,544 Posts
      Was this a widget, or a regular CMP? I don't see how a CMP would give you the WSOD unless you run it (or it has an enabled plugin that fires when Manager pages load), and even then the back button ought to restore the Manager.
        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