<?php
define('MODX_CORE_PATH', dirname(__FILE__) . '/core/');
define('MODX_CONFIG_KEY', 'config');
<?php
define('MODX_CORE_PATH', 'YOUR-MAIN-CONTEXT-CORE-PATH');
define('MODX_CONFIG_KEY', 'config');
Redirect permanent /assets/ http://www.your-site.com/assets/
I have the follwoing in log file:
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
[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
)
<?php
define('MODX_CORE_PATH', '/home/sites/domain.com/public_html/core/');
define('MODX_CONFIG_KEY', 'config');