We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • I just moved my site htttp://www.stjaneschool.com from a sub-directory http://2012.stjaneschool.com. I followed the directions and everything seemed to go great and I thought everything was working until I tried to create a new document. Got the following error:

    Fatal error: Cannot redeclare class ResourceCreateManagerController in /home/stjaneschool/www/www/manager/controllers/default/resource/create.class.php on line 234

    That's the only error I seem to get. I can also do a Quick Create for a document. That works fine. I can edit the existing documents. That works fine. MX Calendar works. Front end seems fine.

    Any help here would be appreciated. [ed. note: mdsdesign last edited this post 11 years, 8 months ago.]
      Michael Smull
      http://www.bigpixelstudio.com
      twitter: @mdsdesign
      • 39932
      • 483 Posts
      @mdsdesign:

      I'm not sure (as I've never had this problem), but this error will only occur if a php file tries to create a class multiple times. This might indicate that your installation may be accessing another modx installation and trying to invoke its classes. Do you perhaps happen to have the original installation present?

      Also, which directions did you follow? There are several sets out there and they do not always say the same thing.

      Finally, what version of MODx Revolution do you have? I'm not a migration expert in the least, but the experts will need to know this.
        Website: Extended Dialog Development Blog: on Extended Dialog
        Add-ons: AJAX Revolution, RO.IDEs Editor & Framework (in works) Utilities: Plugin Compatibility List
        Tutorials: Create Cross-Context Resources, Cross-Context AJAX Login, Template-Based Actions, Remove Extensions from URLs

        Failure is just another word for saying you didn't want to try. "It can't be done" means "I don't know how".
        • 3749
        • 24,544 Posts
        Did you run Setup after moving everything? That will usually straighten out the paths.

        If you've already tried that, check the paths in core/config.config.inc.php and the path in manager/config.core.php.

        Look for a path to the old site. You could also check the path in the modx_workspaces table in the DB.


        ------------------------------------------------------------------------------------------
        PLEASE, PLEASE specify the version of MODX you are using.
        MODX info for everyone: http://bobsguides.com/modx.html
          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
        • I didn't run setup, I manually changed the paths listed in the ModX How To Tutorial. I changed all paths that were listed. I didn't empty the cache before I copied the files. I have a lot of folders in my cache folder. Should I delete these manually? Should I still run setup even though all of the paths look correct? Do I upload the setup folder again and then run it?
            Michael Smull
            http://www.bigpixelstudio.com
            twitter: @mdsdesign
          • Yes, manually delete all of the folders inside the core/cache folder.

            Yes, upload the setup folder and run setup again.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
            • I just deleted everything in the core/cache folder and I can now create and save new files. It looks like I should have followed step 1 in the tutorial. It always helps to read and follow instructions.
                Michael Smull
                http://www.bigpixelstudio.com
                twitter: @mdsdesign