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

XF 1.2 There are templates that may be outdated

Discussion in 'Troubleshooting and Problems' started by AndyB, Jul 19, 2013.

  1. AndyB

    AndyB Well-Known Member

    I'm running 1.2b5

    When I log into my Admin CP I get the following message:

    There are templates that may be outdated. Click here to review them.

    Clicking the link I see the following:

    pic001.jpg

    I have two styles:

    1) Default Style
    2) Mobile Style <- this is a child of the Default Style

    I made changes to these three templates in the mobile style, is this the reason I'm getting the outdated template message?
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

    Yes. Click merge changes and update the templates as necessary and the message will go away.
     
  3. AndyB

    AndyB Well-Known Member

    I looked at the 'ad_above_top_breadcrumb' templates, both versions, the Default Style and the Mobile Style. I then merged the templates and then looked at both again, there was zero change to either one of them. So what actually occurred? It did remove the warning for that particular template.
     
  4. Jeremy

    Jeremy XenForo Moderator Staff Member

    The version of the mobile templates was showing as being older than that of its parent. This could have happened for a few reasons, but without knowing changes you made before, an exact reason is tough to pinpoint.
     
  5. AndyB

    AndyB Well-Known Member

    Using phpmyadmin, here's the second template which I have not merged yet. The version numbers are the same, so why does it say the mobile version is outdated and I should merge? Makes no sense to me.

    pic001.jpg
     
  6. Jeremy

    Jeremy XenForo Moderator Staff Member

    Last edit date is newer for its parent. So the system is most likely picking up on that.
     
  7. AndyB

    AndyB Well-Known Member

    I just compared the two templates and there is a difference. I made a change in the Default Style version. So it must be picking up on the change.

    This leads me to the question. What logic is used when I edit a Default Style template? Does it automatically update the child style (Mobile Style). What if I don't want it to update the child style.
     
    jauburn likes this.
  8. AndyB

    AndyB Well-Known Member

    When I merged the 'ad_below_bottom_breadcrumb' both the Default Style and the Mobile Style are now the same. The Default Style was used to update the Mobile Style. This worked out very well.
     
  9. Jeremy

    Jeremy XenForo Moderator Staff Member

    If the child style template is unchanged, yes, it will propagate down. If you edited the child style, then no, you'll get these warnings.
     
  10. AndyB

    AndyB Well-Known Member

    When I do the last merge (navigation template) I get this.

    pic001.jpg
     
  11. Jeremy

    Jeremy XenForo Moderator Staff Member

    Resolve using either. The one is a comment, the other is identical (spacing is different. I'd go parent for the second).
     
  12. AndyB

    AndyB Well-Known Member

    So on the last merge I wanted the Mobile Style version of the navigation template a little different. So I selected (Resolve using custom version) on both changes and it all worked out perfect. I don't get the outdated template messages any more.

    Thank you King Kovifor, I appreciate you holding my hand as I learn about these features.
     
  13. AndyB

    AndyB Well-Known Member

    Yes the first one is just a comment. But the second one the code needed to differ slightly. After the merge I had to clean up the Mobile Style slightly. Still no outdated template message. I assume if you edit the child template after editing the parent template, the outdated template message will not show.
     
  14. Jeremy

    Jeremy XenForo Moderator Staff Member

    No, its been brought up to date.
     

Share This Page