Jump to:

1169 Posts in 2694 Topics by 411 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » From 2.3.1 to 2.3.2 -> Lost all publication statusses

Ask questions about upgrading SilverStripe to the latest version.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1011 Views
  • Fuzz10
    Avatar
    Community Member
    787 Posts

    From 2.3.1 to 2.3.2 -> Lost all publication statusses Link to this post

    I have a site with quite a number of pages (several hundred) of which 60 to 70 percent are in "draft" (we are working on an archive and told the client to unpublish the "old" pages). After upgrading to 2.3.2 , it seems we have lost all publication statusses , so all we can do is publish-all pages , or go through the entire sitetree and publish the correct pages by hand.

    Is there a way to maintain the publication status while upgrading ?

  • Platypus
    Avatar
    Community Member
    43 Posts

    Re: From 2.3.1 to 2.3.2 -> Lost all publication statusses Link to this post

    This happened to the sitetrees of my websites also and made a lot of extra work. But the not working text alignment in the CMS is a much more frustrating factor (http://open.silverstripe.com/ticket/4251).

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: From 2.3.1 to 2.3.2 -> Lost all publication statusses Link to this post

    Does anyone know of a way to prevent this from happening ?

    I know I could temporarily put the pages under a different holder etc. , but I hate fiddling with MySQL on Silverstripe databases....

  • Sam
    Avatar
    Administrator
    679 Posts

    Re: From 2.3.1 to 2.3.2 -> Lost all publication statusses Link to this post

    Hi Fuzz,

    I haven't seen this issue myself. The publication statuses, ie the colours in the CMS tree, are determined by comparing the contents of SiteTree and SiteTree_Live. Could you look into these tables manually and see if they contain the right content?

    If they do, then we have a bug in the colour generation. If this is the case, it would be good if you could help us debug the issue:

    The relevant methods are getIsDeletedFromStage(), getExistsOnLive(), and getIsModifiedOnStage() in sapphire/core/model/SiteTree.php

    You could add some Debug::message() commands into those and see if you can work out why they're returning the wrong values.

    Hope this helps,
    Sam

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: From 2.3.1 to 2.3.2 -> Lost all publication statusses Link to this post

    Sam,

    Thanks for the reply.

    Okay, I had a good look at this yesterday (restoring and upgrading databases) , and have to refine my remarks , sorry about that.

    I'm sure it went wrong once (since I still have that database), but I can't for the live of me replicate it ....

    Indeed, the publication status draft/published remain intact when upgrading to 2.3.2 , instead, all published pages get the "changed" status (draft pages become "new) .... That is something I feel everyone can live with.....

    Odd thing is though ; this happens on our development machine , not in the production environment. Anyway , no biggy ...

    Thanks again !

    1011 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.