Copied to clipboard

Flag this post as spam?

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


  • Allan Hawkey 232 posts 303 karma points
    May 18, 2011 @ 17:29
    Allan Hawkey
    0

    Missing node in Content Tree

    I encountered an error while saving changes to a page in our installation of 4.5.2 this afternoon.

    Since then, the Content tree loads normally, except that the page I was editing does not appear.  I have tried:

    • reloading nodes - no effect
    • re-publishing the site from the Content node - no effect
    • re-publishing the parent page and all child pages - this gave an error part way through

    The parent page shows the missing page when trying to do a Sort - so the page is still there, and it's just hidden from the content tree.  And the public side of the page is still live, albeit without the changes I tried to make earlier.

    As I can't access the page via the content tree, I can't perform a rollback, or try to edit the page again.

    Any ideas on how I can get this page to re-appear?

    Thanks
    Allan

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    May 18, 2011 @ 22:20
    Jan Skovgaard
    0

    Hi Allan

    That's an odd one...

    Is it based on an other document type than the other nodes? If so is the document type alias then containing some weird characters perhaps?

    /Jan

  • Allan Hawkey 232 posts 303 karma points
    May 18, 2011 @ 23:20
    Allan Hawkey
    0

    Hi Jan

    Thanks for your reply.  No, the document type is the most common one used across our site.

    I've managed to get it back - looks like whatever error occurred on saving the page resulted in some orphan records in the database.  I don't like making changes manually in the database, but I've done so here and removed all traces (I think) of the version which was partly created during the save.  That has brought the page back, and I now seem to be able to edit it normally.

    Allan

  • Tom Fulton 2030 posts 4998 karma points c-trib
    May 19, 2011 @ 13:41
    Tom Fulton
    0

    Hi Allan,

    I have run into this issue a handful of times, and usually to fix I end up manually deleting the problem node from the database and having to recreate it.  I am curious to know how you managed to keep it - do you happen to have the SQL statements handy still or know which tables you updated?

    Thanks,
    Tom

  • Allan Hawkey 232 posts 303 karma points
    May 19, 2011 @ 13:58
    Allan Hawkey
    1

    Hi Tom

    I'm glad I'm not the only one to have experienced this!  My next step would have been to delete the node via the database, but instead I thought I'd try first just deleting the version of the node which was created when the initial error arose.  That required deleting records in 2 tables - from memory (and please don't rely on this!) I think the tables were ContentVersion and Document.

    After deleting the corrupt version, I was returned to the previous version of the node, which was displayed again in the Content Tree.  I have since made the changes I needed to make to that page, and have saved & published them successfully.

    Hope that helps!

    Thanks
    Allan

  • Tom Fulton 2030 posts 4998 karma points c-trib
    May 19, 2011 @ 14:00
    Tom Fulton
    0

    Thanks Allan, will take a look at that next time (hopefully there won't be a next time!).  I tried this once but was confused about how the versions worked in the DB.  Did you have to do any updates or just deletes?

    Thanks,
    Tom

  • Allan Hawkey 232 posts 303 karma points
    May 19, 2011 @ 14:06
    Allan Hawkey
    0

    Hi Tom

    Yes, like you, I hope there won't be a next time.  I didn't update any records, just deleted the ones which related to the corrupt version.  From what I could see, the published version was still the previous version anyway (which explains why the old version of the page was still live on the website), but I did look to check whether that would need updating - and concluded in my case yesterday that it didn't.

    Thanks
    Allan

Please Sign in or register to post replies

Write your reply to:

Draft