We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44256
    • 2 Posts
    I duplicated the site files, and duplicated the Databse (MySQL)

    I added the same MySQL user to the duplicate database.

    I pointed the sub-domain at the new duplicate site.

    I update the Core/Config/config.inc.php and Manager/config.core.php to point to the new file path, and the Core config to the new database name.

    When I go to the sub-domain, the duplicate of the website works correctly, displaying content form the duplicate DB... but when I log into the manager the File Tree and elements etc do not display... I have tried everything in the troubleshooting doc "http://rtfm.modx.com/display/revolution20/Troubleshooting+Installation", but nothing works.

    I pointed the core config file back at the original database, and the manager works correctly... I cleared browser cache and site cache directory again and set the core config back to look at the duplicate DB. Again, manager not displaying File Tree.

    running Dev Tools I get the following errors when loading manager:

    SCRIPT5009: '_' is undefined
    modx.tree.directory.js, line 618 character 23432
    SCRIPT1015: Unterminated string constant
    manager, line 783 character 192
    SCRIPT1015: Unterminated string constant
    manager, line 784 character 189
    SCRIPT1015: Unterminated string constant
    manager, line 802 character 230
    SCRIPT1015: Unterminated string constant
    manager, line 810 character 278
    SCRIPT1015: Unterminated string constant
    manager, line 844 character 216
    SCRIPT1015: Unterminated string constant
    manager, line 851 character 4890
    SCRIPT1015: Unterminated string constant
    manager, line 857 character 169
    SCRIPT1015: Unterminated string constant
    manager, line 859 character 261
    SCRIPT1015: Unterminated string constant
    manager, line 864 character 244
    SCRIPT1015: Unterminated string constant
    manager, line 882 character 192
    SCRIPT1015: Unterminated string constant
    manager, line 883 character 189
    SCRIPT1015: Unterminated string constant
    manager, line 904 character 184
    SCRIPT1015: Unterminated string constant
    manager, line 919 character 160
    SCRIPT1015: Unterminated string constant
    manager, line 921 character 261
    SCRIPT1015: Unterminated string constant
    manager, line 933 character 182
    SCRIPT1015: Unterminated string constant
    manager, line 936 character 182
    SCRIPT1015: Unterminated string constant
    manager, line 949 character 302
    SCRIPT1015: Unterminated string constant
    manager, line 956 character 499
    SCRIPT1015: Unterminated string constant
    manager, line 959 character 270
    SCRIPT1015: Unterminated string constant
    manager, line 977 character 203
    SCRIPT1015: Unterminated string constant
    manager, line 987 character -69279139
    SCRIPT1015: Unterminated string constant
    manager, line 987 character -69278694
    SCRIPT1015: Unterminated string constant
    manager, line 987 character -69278314
    SCRIPT1015: Unterminated string constant
    manager, line 993 character 191
    SCRIPT5009: '_' is undefined
    modx.localization.js, line 4 character 5
    SCRIPT5007: Unable to get value of the property 'id': object is null or undefined
    modx.js, line 815 character 9
    SCRIPT5009: '_' is undefined
    modx.grid.user.recent.resource.js, line 11 character 5
    SCRIPT5009: '_' is undefined
    modx.js, line 192 character 13
    SCRIPT5009: '_' is undefined
    modx.js, line 192 character 13

    Please help
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      There are three core.config.php files, on in the install root, one in connectors and one in manager. There are also a number of lines in the config.inc.php file.

      It's recommended to upload the original setup directory into your new installation and run it in upgrade mode.

      You'll also probably need to manually delete all the directories under the core/cash directory, as well as clear your browser cache and cookies.

      And don't forget to edit your .htaccess file for the subdirectory, unless it's set up to be a true subdomain in your web server configuration.
        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
        • 44256
        • 2 Posts
        Thank you sottwell

        You are a champion... I had missed the Connectors config. All is working as it should now smiley

        Thanks