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

Not a Bug Disappeared templates

Discussion in 'Resolved Bug Reports' started by santamo, Jan 2, 2014.

  1. santamo

    santamo Active Member

    Disappeared templates in all styles. When I create a new template - it is in the list of templates, but there are not other templates in the list . Version 1.2.4. Server error no. What is the reason?


    All work - error from provider.
     
    Last edited: Jan 3, 2014
  2. Uniphix

    Uniphix Active Member

    I just had this same problem today, and I keep getting it sometimes. It is really annoying...
     
  3. Chris D

    Chris D XenForo Developer Staff Member

    Unfortunately it's likely to be user error or a similar issue.

    I've never experienced this myself.

    Could you try and describe the exact scenario. What style did you create the template in? Had you set any filters in the filter box? What can you do to replicate the issue? What version of XenForo?
     
  4. Jeremy P

    Jeremy P Well-Known Member

    I've been having serious issues with the template system since moving from 1.1 to 1.3. Not sure if it's related to this, but disappearing/missing templates were one of them.

    Rebuilding master data usually fixes whatever problem I'm having, though it's rather annoying to have to do that each time.

    In any case I figure it's down to something pretty specific since obviously it works fine for the majority of people. FWIW I did used to have TMS installed but I uninstalled it prior to upgrading as instructed, and the issues persist with all add-ons and APCu and OPCache disabled.

    Whenever I have a compelling reason to renew my license I suppose I'll file a support ticket and see if someone who's more familiar with the intricacies of the template system can track it down. I figure it's something between the built in TMS, the way templates are compiled, and the deferred system.
     
  5. Steve F

    Steve F Well-Known Member

    Trying to understand, exactly what templates are missing?

    Many hours here between numerous versions with zero missing templates kinda leads me to believe a add-on may be at fault or at the very least a "filter" not being seen by the end user. Meaning you filter the template list then when you are looking at the template list you won't see anything because the filter is active. I HAVE done this and can be deceiving.
     
    Chris D likes this.
  6. Chris D

    Chris D XenForo Developer Staff Member

    Was my first thought too.
     
  7. Chris D

    Chris D XenForo Developer Staff Member

    When this happens, before rebuilding master data, perform this database query:

    Code:
     SELECT * FROM xf_template WHERE title = 'template_name'
    Where template_name is the missing template.

    That should return a result for each template plus the master style.

    If it's in the database, it can't be missing from the list.

    Double check the filter is empty. Let us know whether it is missing in search results or in the template list. Double check your cookies as filters are saved there. Clear your cookies if necessary.
     
  8. Jeremy P

    Jeremy P Well-Known Member

    I am a developer by trade, and pretty familiar with XF internals, though I haven't had the need (or time) to take a look at what's changed with the template system since 1.1. I do realize how impossible this seems.

    I would provide more detailed information to debug this issue, but ever since I got everything working fine I've been too nervous to do anything that would cause these problems to happen again. When/if they do, I'll file a new bug report. My issues ran deeper than disappearing templates, I just wanted to chime in here in case somebody else were having similar issues.

    FWIW I did actually search through the database for one of my problems (not disappearing templates though) and found that xf_template and xf_template_compiled were out of sync.
     
    Chris D likes this.

Share This Page