Jump to:

1131 Posts in 1965 Topics by 402 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » Translated pages not showing after upgrade

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: 160 Views
  • ismooth
    Avatar
    Community Member
    20 Posts

    Translated pages not showing after upgrade Link to this post

    Hi,

    I'm currently running a site on SS 2.4. I've made SS 3.1.2 version of the system and am trying to migrate site to new version. On my SS 3 dev instance I've copied whole database from SS2.4 as well as assets/ folder, did a dev/build and set which theme to use. Everything looks to work fine, except when I try opening any page in a different language (done using translatable module)- then I get Getting started page with instructions on how to start using SS framework (with it's default blue header style).

    When I tested new SS 3 version of the system without copying the database, translation worked fine, but apparently something breaks it when I copy the database. Any ideas what can I do?

  • martimiz
    Avatar
    Forum Moderator
    1035 Posts

    Re: Translated pages not showing after upgrade Link to this post

    Do your translated pages use the same theme?

  • ismooth
    Avatar
    Community Member
    20 Posts

    Re: Translated pages not showing after upgrade Link to this post

    Yes, theme is the same, just adjusted for 3.1.2 version ('control' replaced with 'loop' or 'with' directives and so on).

  • martimiz
    Avatar
    Forum Moderator
    1035 Posts

    Re: Translated pages not showing after upgrade Link to this post

    Just to make sure - I meant do french pages use the same theme/templates as english pages - or whichever languages you are using

  • ismooth
    Avatar
    Community Member
    20 Posts

    Re: Translated pages not showing after upgrade Link to this post

    I would say yes. In CMS I just choose my theme, and then for every page I created translation (through CMS). Template files correspond to page type names / actions, and there are no separate templates for different languages.

    With clean install of SS 3.1.2 same translations work good. When I copy database from 2.4 version, no. Could it be that there are some differences in the way these translations are written in the database? But why would that give me design like when you run dev/build? I never experienced that, usually when something breaks layout with default controller shows up (light blue if I remember).

    Attached is page that I get.

    Attached Files
  • martimiz
    Avatar
    Forum Moderator
    1035 Posts

    Re: Translated pages not showing after upgrade Link to this post

    I'm not sure, but I found that sometimes ?flush=all seems to cure things in 3.12 that needed no curing in earlier versions. Did you try on a translated page?

  • ismooth
    Avatar
    Community Member
    20 Posts

    Re: Translated pages not showing after upgrade Link to this post

    I know what you mean , but I've already tried all that on default language as well as on translated pages. Also tried deleting cache directory, but nothing worked.

  • martimiz
    Avatar
    Forum Moderator
    1035 Posts

    Re: Translated pages not showing after upgrade Link to this post

    One thing I remomber, was that this happened when a page urlsegment was equal to an existing (controller)classname, but that probably isn't the case here? I hope someone else might know of other reasons for this behaviour, I don't really know at this point

    160 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.