Copied to clipboard

Flag this post as spam?

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


  • Niklas Hjelm 104 posts 125 karma points
    Jan 09, 2012 @ 12:39
    Niklas Hjelm
    0

    Check if unpublished then publish

    Hi!

    I've been having some trouble with pages getting unpublished for some reason. I haven't been able to find out why and have instead been thinking of a fix.

    This is the scenario.

    I post a link to a url which is published.

    A user clicks on the link and during the time from the post (let's say to twitter) to click the page gets unpublished and the user gets a 404. 

    My question is.

    Is there a way to get the id of the page that the user is trying to get, check if it's unpublished, and if so publish, and then return the page before the 404?

    Thanks / Niklas

     

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jan 09, 2012 @ 12:53
    Ismail Mayat
    0

    Niklas,

    If pages are unpublishing then it looks like you have a permissions issue.  Can you ensure that whatever account the app pool is running under has the correct permisssions to the umbraco install directory also ensure that the permissions propogate down. Then there is no need to build anything additional.

    Ps what version of umbraco are you using?

    Regards

    Ismail

  • Niklas Hjelm 104 posts 125 karma points
    Jan 09, 2012 @ 13:49
    Niklas Hjelm
    0

    Hi Ismail

    The site is under a hosted environment so I can't check the settings :/ I'm using the latest stable version. 

    Regards / Niklas

  • Niklas Hjelm 104 posts 125 karma points
    Jan 09, 2012 @ 13:57
    Niklas Hjelm
    0

    Could it be a trust issue btw. Are the new versions running medium trust?

Please Sign in or register to post replies

Write your reply to:

Draft