Redirect manager YSOD: No Media exists with id 'xxxx'
We are using SEOChecker in our Umbraco 6.1.6 site, and are having an issue resolving a 'No Media exists with id 'xxxx'. This YSOD pops up when I try to access SEOChecker's Redirect manager. My guess is that a redirect was created that redirects to a media node with id xxxx. This media item has since been deleted. It no longer lives in the recycle bin or in the media tree. Now, I can't manage the redirects using the SEOChecker section of umbraco.
Where do the redirects live? How should I go about resolving this?
Sorry that you run into this issue. Check the SEOChecker_PageNotFound table to delete the item, column documentID holds the media id. I think the event handler didn't get fired after the delete. That's why the record is still in. I'll make sure this gets improved.
Thanks! If anyone else runs into this, looks like it worked. I ran this query:
DELETE SEOChecker_PageNotFound WHERE SEOChecker_PageNotFound.DocumentID NOT IN (SELECT n.id FROM umbracoNode n) AND SEOChecker_PageNotFound.DocumentID != 0
I wouldn't just take my word for it though. Make sure you read this and it makes sense.
Redirect manager YSOD: No Media exists with id 'xxxx'
We are using SEOChecker in our Umbraco 6.1.6 site, and are having an issue resolving a 'No Media exists with id 'xxxx'. This YSOD pops up when I try to access SEOChecker's Redirect manager. My guess is that a redirect was created that redirects to a media node with id xxxx. This media item has since been deleted. It no longer lives in the recycle bin or in the media tree. Now, I can't manage the redirects using the SEOChecker section of umbraco.
Where do the redirects live? How should I go about resolving this?
Thanks in advance
Hi Mark,
Sorry that you run into this issue. Check the SEOChecker_PageNotFound table to delete the item, column documentID holds the media id. I think the event handler didn't get fired after the delete. That's why the record is still in. I'll make sure this gets improved.
Sorry for the hassle for now.
Best,
Richard
Thanks! If anyone else runs into this, looks like it worked. I ran this query:
DELETE SEOChecker_PageNotFound
WHERE SEOChecker_PageNotFound.DocumentID NOT IN (SELECT n.id FROM umbracoNode n)
AND SEOChecker_PageNotFound.DocumentID != 0
I wouldn't just take my word for it though. Make sure you read this and it makes sense.
is working on a reply...