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

    So I’m just about ready to launch my first MODx site, but I still can’t get it ported to my laptop in preparation to send online.

    The first time I tried, I was moving from WAMP on my desktop to XAMPP on my laptop, but encountered problems connecting to the database as explained here http://modxcms.com/forums/index.php/topic,62535.msg354789.html#msg354789.

    So this time round, I figured "why complicate things any more than necessary" and switched to WAMP on my laptop too. I’ve followed the instructions laid out here: http://rtfm.modx.com/display/revolution20/Moving+Your+Site+to+a+New+Server but every time I try and access any of the pages - web or manager - I get a 500 error. I assumed that having an identical set up on both machines would iron out any problems with this move, but obviously I was wrong.

    Can anyone help me out here? I’ve not dealt with anything other than plain old HTML/CSS before, so this is all very alien at the moment.

    Thanks in advance.

    Host & destination environments : WAMP 2.1 (Apache Version 2.2.17 - PHP Version 5.3.5} MODx Revolution 2.0.7-pl traditional
      • 3749
      • 24,544 Posts
      It’s hard to make suggestions since it’s most likely a WAMP configuration issue.

      Do you have Friendly URLs turned on? It might help to turn them off and rename .htaccess to ht.access for the transfer.
        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
        • 5143
        • 116 Posts
        Hello BobRay

        Yes, before I zipped up the entire modx directory, I turned off FURLs and renamed ".htaccess" to "ht.access". I also followed the advice on your website about enabling Drop Table and Create Table when exporting the SQL.

        Although I don’t doubt it could be a WAMP issue, I don’t understand why. I’m using the same version on both machines, unaltered, and using the exact same filepaths etc - I’m probably being very naive, but to me the two set-ups are practically carbon copies.

        Is there something else I should be checking?
          • 3749
          • 24,544 Posts
          Are you sure you renamed .htaccess *before* you zipped up all the files. If not, that could be your problem. wink

          I’m afraid I’m strictly an XAMPP guy, so I’m no help on any WAMP issues.
            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
            • 5143
            • 116 Posts
            Yeah, I renamed it before - wouldn’t know how to do it afterwards tbh undecided

            Ok, so now when I try and run setup on my destination computer (a last-ditch effort) I get past the first 2-3 stages ok, but then when I choose upgrade I get some strange errors at the top of the page:

            Notice: Undefined index: in C:\wamp\www\modx\setup\includes\modinstalltest.class.php on line 366
            Call Stack
            #	Time	Memory	Function	Location
            1	0.0006	399368	{main}( )	..\index.php:0
            2	0.0155	1202080	modInstallRequest->handle( )	..\index.php:89
            3	0.0262	1687312	include( 'C:\wamp\www\modx\setup\controllers\summary.php' )	..\modinstallrequest.class.php:75
            4	0.0262	1687424	modInstall->test( )	..\summary.php:12
            5	0.0285	1866432	modInstallTest->run( )	..\modinstall.class.php:282
            6	0.0361	1872400	modInstallTest->_checkDatabase( )	..\modinstalltest.class.php:35
            7	0.0599	3829520	modInstallTest->fail( )	..\modinstalltest.class.php:291
            
            ( ! ) Notice: Undefined index: msg in C:\wamp\www\modx\setup\includes\modinstalltest.class.php on line 366
            Call Stack
            #	Time	Memory	Function	Location
            1	0.0006	399368	{main}( )	..\index.php:0
            2	0.0155	1202080	modInstallRequest->handle( )	..\index.php:89
            3	0.0262	1687312	include( 'C:\wamp\www\modx\setup\controllers\summary.php' )	..\modinstallrequest.class.php:75
            4	0.0262	1687424	modInstall->test( )	..\summary.php:12
            5	0.0285	1866432	modInstallTest->run( )	..\modinstall.class.php:282
            6	0.0361	1872400	modInstallTest->_checkDatabase( )	..\modinstalltest.class.php:35
            7	0.0599	3829520	modInstallTest->fail( )	..\modinstalltest.class.php:291
            
            ( ! ) Notice: Undefined index: class in C:\wamp\www\modx\setup\controllers\summary.php on line 17
            Call Stack
            #	Time	Memory	Function	Location
            1	0.0006	399368	{main}( )	..\index.php:0
            2	0.0155	1202080	modInstallRequest->handle( )	..\index.php:89
            3	0.0262	1687312	include( 'C:\wamp\www\modx\setup\controllers\summary.php' )	..\modinstallrequest.class.php:75
            


            It could well be completely unrelated, but you (by which I mean "I") never know.

            It also still fails to connect to the database - could this be the main cause of the problem?
              • 3749
              • 24,544 Posts
              You did do an upgrade install at the new site, right?

              Check the values in the four config.core.php files:

              § MODX root directory
              § /manager/
              § /connectors/
              § /setup/includes/


              And check the values in core/config/config.inc.php -- especially the DB name, user, password, and character set.

              It’s also possible that one or more files was corrupted or missed in the transfer if you used FTP. It happens more often than you might think. And check the memory_limit setting on the second site.

              That’s really all the configuration there is to MODX, so it it’s not that, it must be WAMP.
                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
                • 5143
                • 116 Posts
                The config.core.php files in those locations simply contain:

                <?php
                define('MODX_CORE_PATH', dirname(dirname(__FILE__)) . '/core/');
                define('MODX_CONFIG_KEY', 'config');


                Aha... there is no "core/config/config.core.php" file.

                I’ll try adding that and see what happens.


                Scratch that, I was looking in the wrong place - everything is fine in there
                  • 5143
                  • 116 Posts
                  At last!
                  It seems at some point I created a user within MYSQL that I hadn’t recreated at the other end.
                  Problem solved!
                    • 3749
                    • 24,544 Posts
                    Glad you got it worked out. cool

                    Thanks for reporting back.
                      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
                      • 5143
                      • 116 Posts
                      Thanks for your kind guidance - I always try and report back when I resolve an issue, that’s half the poit of this forum IMO. smiley

                      I’m now having some bizzare issues (there’s always something, it seems) with ht.access/.htaccess and Internal Server Errors, but I’ll post my query later today when I get home.