Good day everyone.
I am trying to transfer modx from dev to production servers.
What i do:
http://rtfm.modx.com/display/revolution20/Moving+Your+Site+to+a+New+Server
The site works BUT when i visit the manager panel i get:
Fatal error: Call to a member function getMessage() on a non-object in /***/***/***/core/model/modx/modmanagercontroller.class.php on line 552
Then i run update (normal update & advanced update give the same result) and get a new error:
Fatal error: Uncaught exception 'SmartyException' with message 'Unable to load template file 'header.tpl'' in /***/***/***/core/model/smarty/sysplugins/smarty_internal_template.php:162 Stack trace: #0 /***/***/***/core/model/smarty/sysplugins/smarty_internal_template.php(537): Smarty_Internal_Template->isExisting(true) #1 /***/***/***/core/model/smarty/Smarty.class.php(335): Smarty_Internal_Template->getRenderedTemplate() #2 /***/***/***/core/model/modx/modmanagercontroller.class.php(252): Smarty->fetch('header.tpl') #3 /***/***/***/core/model/modx/modmanagercontroller.class.php(443): modManagerController->fetchTemplate('header.tpl') #4 /***/***/***/core/model/modx/modmanagercontroller.class.php(161): modManagerController->getHeader() #5 /***/***/***/core/model/modx/modmanagerresponse.class.php(117): modManagerController->render() #6 /***/***/***/core/model/modx/modmanagerrequest.class.php(173): modManagerResponse->outputContent(Array) #7 /***/***/***/core/model/modx/modmanager in /***/***/***/core/model/smarty/sysplugins/smarty_internal_template.php on line 162
system specs:
development: unknown
production: XAMPP for Linux 1.7.4
Apache 2.2.17
MySQL 5.5.8
PHP 5.3.5
phpMyAdmin 3.3.9
modx version: modx-2.2.0-pl2 revolution
I googled, but didn't find much relevant information to the second error.
I really don't know where to go with this, any help will be really appreciated.
Hm... I seem to have found relevant errors.
At the update screen after the update succeeds i get the following:
Your assets/ directory was not created at: /home/***/assets/
You will need to create this directory and make it writable if you want to use Package Management or 3rd Party Components.
Your assets/components/ directory was not created at: /home/***/assets/components/
You will need to create this directory and make it writable if you want to use Package Management or 3rd Party Components.
If i create this directory and chmod it to 0777 && chown it to nobody:nobody (the web user) then the manager works.
I guess now i have to find out where in the configs this directory is.
yep. a grep -lir "/home/***/assets/" * from base directory gave me:
core/packages/ditsnews-0.2.0-alpha3/preserved.php
core/config/config.inc.php
core/cache/setup/settings.cache.php
Somehow the core/config/config.inc.php
MODX_ASSETS_PATH (Line 77) value wasn't being changed when i followed the guide.
Just to be sure i manually changed all the other defines:
$modx_base_path=
$modx_manager_path=
which still seemed to have the old /home/***/* paths.
The
$modx_core_path
$modx_processors_path
$modx_connectors_path
paths changed to correct ones when i upgraded i believe, or earlier.
Thread can be marked as solved.
[ed. note: f16d5s last edited this post 14 years, 8 months ago.]