I got over my previous problem by editing siteCache.idx.php and changing any references to the old URL. Now I’ve got a different but similar problem.
Fatal error: Cannot redeclare preparesearchcontent() (previously declared in /home/username/public_html/sitename/modx/manager/includes/document.parser.class.inc.php(705) : eval()'d code:470) in /home/username/public_html/sitename/modx/manager/includes/document.parser.class.inc.php(705) : eval()'d code on line 479
I’ve searched the database for occurrences of the preparesearchcontent declaration and it appears only in a single snippet. Grepping the php files revealed it’s also present in modx/assets/cache/siteCache.idx.php. So, different error, same problem.
I wish I knew whether I could delete siteCache.idx.php, because apart from anything else I’d have the pleasure of destroying it (simple things for simple minds ;-)). Since I don’t know whether I can get away with that, I’ll follow ZAP’s suggestion and try to replace it with an original from the installer package.
Does anyone know how MODx caching works? Can any of the cache files be deleted (or blanked)?