We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 49705
    • 1 Posts
    Hello all,

    I am attempting to create a new page and give it a specific page template.
    I go under "Uses Template", then I select a different template from the default one it is currently set to.

    A box comes up and says:
    "Are you sure you want to change the Template?

    WARNING: This will only temporarily store your prior changes and reload the page; ensure you are ready to do so before proceeding. After the page has reloaded, you will need to save when you are ready to save the Template change.

    I select yes, and then it gives me a page that says the following:
    "Fatal error: Cannot redeclare class ResourceUpdateManagerController in /home/MY-SITE-NAME/public_html/manager/controllers/default/resource/update.class.php on line 228"

    Let me know if you have a fix?
    Thanks in advance!
    • Is there perhaps a TV in the new template that relies on a package that has been uninstalled?
        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
        That error means that the file with the ResourceUpdateManagerController class
        (manager\controllers\default\resource\update.class.php) is being loaded.

        The second time, PHP complains because the class already exists. MODX generally won't include a class if it already exists, so most likely cause would be a plugin that fires in the Manager and loads that class file with 'include' or 'require'.

        You may be able to figure out which plugin by disabling all your plugins. If that fixes it, then re-enable them one at a time until it happens again.

        One solution (if you can find the offending code) would be to wrap the include or require statement like this:

        if (! class_exists('ResourceUpdateManagerController')) {
             // include or require statement here

          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
          • 51223
          • 1 Posts
          I also have this issue.Why i got this error?And how I can solve this please?I am a beginner in Modx, it's my first work.