-
- 47 Posts
Hey guys,
Recently I tried to move MODx Revo 2.2 Installation form testing to production environment. first I Deleted Cache, stopped Apache server and made a tarball of the installation. After unpacking and reconfigure /core/config/config.inc.php to the current paths (tried various) it surprised me the Manager isn't reachable anymore. I get a nice;
Fatal error: Call to a member function getMessage() on a non-object in /home/housecube/domains/housecube.nl/public_html/core/model/modx/modmanagercontroller.class.php on line 552
at
http://www.housecube.nl/manager/.
Also menus generated by Wayfinder aren't showing anymore so something is terribly wrong. any suggestions?
Edit; put a info.php on the server:
http://www.housecube.nl/info.php
[ed. note: jambek2003 last edited this post 12 years, 3 months ago.]
UI /UX designer + bit of Front-End Developer. Getting around with MODx Revolution
-
- 141 Posts
Not sure if it helps but did you remember to update the config files for the manager / core as well?
They are:
/config.core.php
/connectors/config.core.php
/manager/config.core.php
-
- 47 Posts
I read the upgrade-guide and changed these config-files. When I change them it will generate bogus paths like /path/to/folder/modx/core/path/to/folder. I changed the connector and manager configs back to initial settings.
[ed. note: jambek2003 last edited this post 12 years, 3 months ago.]
UI /UX designer + bit of Front-End Developer. Getting around with MODx Revolution
-
- 141 Posts
So did you run setup again on the new server?
-
- 47 Posts
Nope! It's an existing install only moving to other domain. Setup folder has been deleted after upgrade.
[ed. note: jambek2003 last edited this post 12 years, 3 months ago.]
UI /UX designer + bit of Front-End Developer. Getting around with MODx Revolution
-
- 24,544 Posts
The first thing to try is running Setup in upgrade mode.
Also, be sure you have this in the head section of all templates:
<base href="[[++site_url]]" />
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODx info for everyone:
http://bobsguides.com/MODx.html
-
- 141 Posts
Setup in upgrade mode is always recommended when moving a site to a new domain / server. It's also worth double checking the permissions on the folders too.
Once you can get in the manager also double check the path for extras in the core settings as last time I moved a revo install this path didn't update.
-
- 47 Posts
Moved the extracted 2.2.0-ZIP to new server. url+/setup is;
FATAL ERROR: MODX Setup cannot continue.
Make sure your /home/housecube/domains/housecube.nl/public_html/core/cache directory exists and is writable by the PHP process.
I don't get it. Checked permisssions, reset them with the DirectAdmin-panel to recursive 775
Is there something wrong with my config.inc.php in /core/config?
if (!defined('MODX_CORE_PATH')) {
$modx_core_path= '/public_html/core/';
define('MODX_CORE_PATH', $modx_core_path);
}
if (!defined('MODX_PROCESSORS_PATH')) {
$modx_processors_path= '/public_html/core/model/modx/processors/';
define('MODX_PROCESSORS_PATH', $modx_processors_path);
}
if (!defined('MODX_CONNECTORS_PATH')) {
$modx_connectors_path= '/public_html/connectors/';
$modx_connectors_url= '/connectors/';
define('MODX_CONNECTORS_PATH', $modx_connectors_path);
define('MODX_CONNECTORS_URL', $modx_connectors_url);
}
if (!defined('MODX_MANAGER_PATH')) {
$modx_manager_path= '/public_html/manager/';
$modx_manager_url= '/manager/';
define('MODX_MANAGER_PATH', $modx_manager_path);
define('MODX_MANAGER_URL', $modx_manager_url);
}
if (!defined('MODX_BASE_PATH')) {
$modx_base_path= '/public_html/';
$modx_base_url= '/';
define('MODX_BASE_PATH', $modx_base_path);
define('MODX_BASE_URL', $modx_base_url);
}
UI /UX designer + bit of Front-End Developer. Getting around with MODx Revolution
-
- 24,544 Posts
You may need 755 if the host is running suPHP or suExec.
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODx info for everyone:
http://bobsguides.com/MODx.html
-
- 47 Posts
@BobRay I meant 755!
checked the phpinfo(); loaded apache-modules;
Loaded Modules core mod_authn_file mod_authn_default mod_authz_host mod_authz_groupfile mod_authz_user mod_authz_default mod_auth_basic mod_include mod_filter mod_deflate mod_log_config mod_logio mod_env mod_expires mod_headers mod_unique_id mod_setenvif mod_version mod_proxy mod_proxy_connect mod_proxy_ftp mod_proxy_http mod_proxy_scgi mod_proxy_ajp mod_proxy_balancer mod_ssl prefork http_core mod_mime mod_dav mod_status mod_autoindex mod_asis mod_suexec mod_cgi mod_dav_fs mod_dav_lock mod_negotiation mod_dir mod_actions mod_userdir mod_alias mod_rewrite mod_so mod_php5
Set the all the subfolder in the root folder, /core, /manager, /connectors, /assets/, /setup, to 755 ans still the same error-message. :-(
[ed. note: jambek2003 last edited this post 12 years, 3 months ago.]
UI /UX designer + bit of Front-End Developer. Getting around with MODx Revolution