Upgrade from 2.1.1 to 2.2.7 (avanced)
That is how it worked for me:
1.- Download modx-2.2.7-pl-advanced.zip anc unzip in empty folder.
2.- Copy all old folders except core and setup
3.- Diable .htacces rule for not allowinf acces to setup
#RewriteRule ^_?setup - [F,L]
4.- Enable zlib compresion
In php.ini:
zlib.output_compression = On
zlib.output_compression_level 5
Or in .htaccess
php_flag zlib.output_compression On
php_value zlib.output_compression_level 5
Restart Apache if you do it in php.ini
If you can not enable it on your host provider then disable in table modx_system_settings
compress_css 0
compress_js 0
6.- Donwload modx-2.2.7-pl and copy over manager folder and connectors folder. (This was the different for me!!!)
Without this step manager show a popup with an error:
Unexpected token <:
The problem is that connectors folder does not have this script:
WEB_ROOT/connectors/system/derivatives.php
7.- Copy over the config.core.php, manager/config.core.php and core/config/config.inc.php
8.- Clear cache.
5.- Run setup and select upgrade.
// EDIT:
I had to disable compress_css and compress_js even with zlib enable. I do not know what exactly do those settings. More info:
https://forums.modx.com/forums/thread/28517/compress-css-and-compress-js-break-manager#dis-post-153245
And I have to change this line:
if (!defined('MODX_CORE_PATH')) define('MODX_CORE_PATH', dirname(dirname(dirname(__FILE__))) . '/core/');
In file D:\www\newlayoutmerge.snaprent.net\manager\min\index.php
because I commented this other:
//define('MODX_CORE_PATH', '/home/path/core/');
in file D:\www\newlayoutmerge.snaprent.net\manager\config.core.php
[ed. note: josecelano last edited this post 13 years, 4 months ago.]