Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tim 43 posts 197 karma points
    Dec 08, 2020 @ 11:04
    Tim
    0

    Error when trying to restore content/media from the recycle bin

    We have a strange error that only seems to occur on one hosting environment. The local and test sites are fine, but the live one isn't. This is further complicated by us not having direct access to the live site.

    When content or media are deleted, you cannot restore them back using the restore menu item. Move works fine, restore however throws an error that it can't find the "relateParentDocumentOnDelete" relationship.

    Now, I know that under normal circumstances, when an item is deleted, a relationship is added for the item so that Umbraco knows where to put it back to. It looks like that's not happening maybe? We're waiting for someone from the client to confirm this.

    Does anyone know of anything that would stop the event firing that should set the relationship?

    As far as we can see, there's no errors in the logs at all.

  • Tim 43 posts 197 karma points
    Dec 14, 2020 @ 16:03
    Tim
    0

    A bit more info, the call to the relations api is returning a 404. E.g. calls to /umbraco/backoffice/UmbracoApi/Relation/GetByChildId?childId=3236&relationTypeAlias=relateParentDocumentOnDelete 404, even though the relationship is in the DB as expected, and the underlying API call does not return a 404.

    Usually you'd only get a 404 if Umbraco can't route to the API controller, but it's able to on all bar the one hosting environment. I'm stumped!

Please Sign in or register to post replies

Write your reply to:

Draft