I use to clone my production sites to have copies for development. I have it automated by a bash script to help myself and it used to go without any problems. The steps are the following: upgrade MODX core from GitHub for the clone site, sync [tt]core/components/[/tt], sync [tt]core/packages/[/tt], dump source site db and import it to clone db, perform upgrade from CLI.
Now, I've got a problem with recent clone. The cloning operation went as usual but the cloned site doesn't work: the resources can't be accessed except of home resource, which displays its content but no navigation (by Wayfinder).
The error log contained nothing until I set [tt]log_level[/tt] to [tt]3[/tt]. Then it filled with the following warnings with ids of resources to be listed by Wayfinder:
[2012-11-04 18:39:56] (WARN @ /connectors/resource/index.php) `4` was requested but no alias was located.
[2012-11-04 18:39:56] (WARN @ /connectors/resource/index.php) `172` was requested but no alias was located.
[2012-11-04 18:39:56] (WARN @ /connectors/resource/index.php) `148` was requested but no alias was located.
[2012-11-04 18:39:56] (WARN @ /connectors/resource/index.php) `9` was requested but no alias was located.
[2012-11-04 18:39:56] (WARN @ /connectors/resource/index.php) `110` was requested but no alias was located.
[2012-11-04 18:39:56] (WARN @ /connectors/resource/index.php) `26` was requested but no alias was located.
[2012-11-04 18:39:56] (WARN @ /connectors/resource/index.php) `7` was requested but no alias was located.
[2012-11-04 18:39:56] (WARN @ /connectors/resource/index.php) `119` was requested but no alias was located.
I cleared the cache manually but the [tt]context.cache.php[/tt] has [tt]resourceMap[/tt] and [tt]aliasMap[/tt] arrays empty! The source site works without problems. I've run [tt]$modx->reloadContext('web')[/tt] and rebuilt aliases using
this script to no avail.
The source site is running MODX 2.3-dev from GitHub "develop" branch; the clone was switched to MODX 2.6-dev from GitHub "release-2.2" branch commit [tt]aad71df[/tt]. FURLs and alias_map are on.
The clone site is just that, a clone with exactly the same settings as source. Why it doesn't work?
[ed. note: gadamiak last edited this post 13 years, 11 months ago.]