1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

I will lost all my template changes when i update xenforo?

Discussion in 'XenForo Questions and Support' started by Regina Ortega, Mar 16, 2013.

  1. Regina Ortega

    Regina Ortega Active Member

    Hello, i was reading some guides to add some stuff, and i noticed that i could lose all my template changes when i upgrade to a new version of xen foro, is that true? How i can prevent, dont lose everything? :(

    For now, all changes are small, but if i keep editing it i dont wanna lose everything what i alread did :(
  2. Dodgeboard

    Dodgeboard Well-Known Member

    No - Templates that are changed are skipped. Upgrades do not overwrite your custom templates. They must be manually reverted to get the new features from an upgrade, then you must merge your custom changes back into the reverted template.
    Regina Ortega likes this.
  3. Chris D

    Chris D XenForo Developer Staff Member

    No it isn't true.

    If XenForo have made changes in the new version to templates you've already modified, then your modification take priority.

    This means the newly updated templates will contain your changes but they will be marked as "outdated".

    You will need to manually go to each outdated template, and work out which of your code you need to merge into which part of the new template.

    It's not a simple process, but realistically the only one that wouldn't cause major disruption or data loss.
    Regina Ortega likes this.
  4. havanaclub

    havanaclub Member

    You will lose ALL admin- & email template changes! There's no notice, there's no warning, it just happens while the upgrade!:(
  5. principia

    principia Well-Known Member

    You can use the TMS, this will make it a lot easier to deal with template edits.
  6. Mike

    Mike XenForo Developer Staff Member

    This is one of the many reasons you shouldn't have debug mode on if you don't know the caveats of the additional features it exposes. (And you should never have it globally enabled on a production site.)
    Biker, ArnyVee, Doctor and 1 other person like this.
  7. lostincable

    lostincable Active Member

    So if I understand this correctly when you upgrade Xenforo it upgrades and templates but marks them as "Outdated".

    Or does it not upgrade these templates?

    Once they have been marked as outdated what do you do then? Do you just go and verify your code and make sure its ok?
  8. Brogan

    Brogan XenForo Moderator Staff Member

    What are outdated templates and why do I need to revert them? Can't I just continue using the old ones?
    If a template is changed between releases, i.e. from 1.0.0 to 1.0.1, and you have manually edited it, then it will be marked as outdated. This is done because the software doesn't automatically overwrite those templates, thereby causing certain functionality which you have added to be lost. It is an indication that the core code has changed and you need to take action. The software will continue to function with these outdated templates but you may be missing important updates and bug fixes so it is recommended to revert and reapply any edits.

    Chris D likes this.

Share This Page