Matrix Version: 5.4.3.1
We are working on moving from one site asset to another, and need to move our www.puc.edu URL to the new site asset.
I have a staging server, and using the replace_url.php
script to the current site to www.puc.edu/_oldsite worked fine. However, when using the script again to move newsite.puc.edu to www.puc.edu we are getting this error:
Fatal error: Uncaught exception ‘PDOException’ with message: 'SQLSTATE[23505]: Unique violation: 7 ERROR: duplicate key value violates unique constraint “ast_lookup_pk”
DETAIL: Key (url)=(www.puc.edu/__data/assets/image/0004/133465/DSC_0192.jpg) already exists.’ in [SYSTEM_ROOT]/core/lib/DAL/DAL.inc(612): PDOStatement->execute()
#1 [SYSTEM_ROOT]/scripts/replace_url.php(195): DAL::execPdoQuery(Object(PDOStatement))
Why would changing this URL cause an error with an image? We DO link in a lot of images from the old site, since we use shared content. Could this be the problem?