We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16162
    • 14 Posts
    Change the new context ’config.core.php’ file content
    <?php
    define('MODX_CORE_PATH', dirname(__FILE__) . '/core/');
    define('MODX_CONFIG_KEY', 'config');
    

    to
    <?php
    define('MODX_CORE_PATH', 'YOUR-MAIN-CONTEXT-CORE-PATH');
    define('MODX_CONFIG_KEY', 'config');
    
      • 22282
      • 10 Posts
      UPDATE: I have rectified my below post. This is the solution.

      Place this in your subdomains .htaccess file.
      Redirect permanent /assets/ http://www.your-site.com/assets/


      Hello,

      I have the same problem my specs follow.

      Revolution 2.0.6-pl2 Traditional
      php 5.2.14
      mysql 5.0.91-community
      Apache 2.2.16 (linux)

      I made the above modification and I have now got past the 503 error but my template is not displaying. Any thoughts?
      I have no errors in the modx error log.

      Thanks


        • 36926
        • 701 Posts
        Could someone confirm what exactly needs to change as I’m also getting the 503 page and keep trying a few different solution but to no success.

        I’m using the latest 2.0.7 install.

        So according to the docs:
        http://rtfm.modx.com/display/revolution20/Creating+a+Subdomain+from+a+Folder+using+Virtual+Hosts

        I only need to make a small change on the index.php file ($modx->initialize(’web’);
        ) and don’t need to amend the config file at all.

        But reading all the posts I need to change the reference to the root core folder. So say for example the core folder is located here:
        /home/sites/domain.com/public_html/core

        What and where would I need to change the reference and should i use the server url or say http://www.domain.com/core

        Thanks in advance.

        Ben
          • 36926
          • 701 Posts
          Quote from: bennyb at Jan 27, 2011, 08:49 AM

          Could someone confirm what exactly needs to change as I’m also getting the 503 page and keep trying a few different solution but to no success.

          I’m using the latest 2.0.7 install.

          So according to the docs:
          http://rtfm.modx.com/display/revolution20/Creating+a+Subdomain+from+a+Folder+using+Virtual+Hosts

          I only need to make a small change on the index.php file ($modx->initialize(’web’);
          ) and don’t need to amend the config file at all.

          But reading all the posts I need to change the reference to the root core folder. So say for example the core folder is located here:
          /home/sites/domain.com/public_html/core

          What and where would I need to change the reference and should i use the server url or say http://www.domain.com/core

          Thanks in advance.

          Ben
          I have the follwoing in log file:

          [2011-01-26 23:59:28] (ERROR @ /home/sites/domain.com/public_html/core/model/modx/error/moderror.class.php : 88) Recoverable error: Argument 1 passed to modError::checkValidation() must be an array, object given, called in /home/sites/domain.com/public_html/core/model/modx/processors/context/create.php on line 26 and defined
          [2011-01-26 23:59:37] (ERROR @ /connectors/context/index.php) modManagerLog: Attempt to set NOT NULL field item to NULL
          [2011-01-26 23:59:52] (ERROR @ /connectors/context/index.php) modManagerLog: Attempt to set NOT NULL field item to NULL
          [2011-01-27 00:03:33] (ERROR @ /connectors/context/setting.php) Error 42S02 executing statement: 
          Array
          (
              [0] => 42S02
              [1] => 1146
              [2] => Table 'web157-modx-uoe.modx_lexicon_topics' doesn't exist
          )
          


          Any ideas?
            • 36926
            • 701 Posts
            Ok not sure what I acutally done, as I’d had tried a few different options with no success, but guessing maybe the file was cached as i left it for a while and it then suddenly it started working. This is what I now have in the config file

            <?php
            define('MODX_CORE_PATH', '/home/sites/domain.com/public_html/core/');
            define('MODX_CONFIG_KEY', 'config');
            
            
              • 2807
              • 20 Posts
              My solution was to use both the posts #22 AND #25. (Thanks guys!)

              i.e.

              .htaccess
              Redirect permanent /assets/ http://www.your-site.com/assets/

              config.core.php
              define(’MODX_CORE_PATH’, ’/home/sites/domain.com/public_html/core/’);

              Now works perfectly.

              Dave