Changing URL on site asset caused asset does not exist errors


(James ) #1

Matrix 5.3

Hi, When changing the URL on a site asset I get quite a few of these errors:

Update Lookups HIPO Error Report (HIPO job was completed)
Type Description Reported
Warning Asset #20839 does not exist [SYS0087] 4th Dec 2017 10:33am
Error Could not update lookups for asset #20839, asset does not exist 4th Dec 2017 10:33am

The site appears to work OK with the new URL, but wonder if this was an issue? Not sure what doesn’t exist (as I can’t look it up)?


(Nic Hubbard) #2

Are you using a ./?a=123 style URL or a %globals_asset_url:123% url anywhere pointing to the old asset ID?


(James ) #3

Hi Nic, Thanks for replying. It’s quite possible as our editors do use those style of links. I’m not sure how I would search for them across our Matrix instance however. I don’t think the search in the matrix admin interface searches within assets though I could be wrong, or page content for that matter, I did try looking for these missing assets but the search returned nothing. I wondering if those assets were part of a previous design asset? They seem to be assets numbered a long time ago (as new assets are now much higher).


(Marcus Fong) #4

The “links” referred to by the Update Lookups HIPO would be links in the asset tree, as opposed to HTML links. I’d try running the system_integrity_invalid_links.php script:

https://matrix.squiz.net/manuals/server-administrator/chapters/system-integrity-scripts#system_integrity_invalid_links.php


(James ) #5

Much appreciated I’ll try it on a test copy and see if that gets rid of them. Are there any adverse affects from running these scripts?


(Marcus Fong) #6

In the case of system_integrity_invalid_links.php, any links it deletes would already have been broken (one of the assets no longer exists). So something’s already wrong in that situation, as you’ve observed.

While I can’t completely guarantee that there are no circumstances under which running that script could ever make things worse, I can say that I’ve used it many times on many Matrix instances and never seen any problems caused by it.


(James ) #7

Much appreciated I’ll give it a go