Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jeric 122 posts 192 karma points
    Oct 23, 2013 @ 13:10
    Jeric
    0

    Template get removed from DocTypes all the time

    I'm using uSync 1.3.1

    And I've created a template to be used on a specific DocTypes.

    The weird thing is that everytime when I assigned this template within the "Allowed template" for the DocType.
    The template will be shown in the DocType for a while and it seems to get reverted back or the "Allowed template" section became empty again.

    Not really sure what's going on? Is it a bug or something or am I missing something?

    Appreciate any help on this.

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Nov 19, 2013 @ 16:27
    Kevin Jump
    0

    Hi there was a bugget in some combinations of usync+umbraco around allowed templates.

    what version of umbraco / usync are you using ? -

    and try the latest version of uSync for your umbraco versions

    v1.3.3 for umbraco 4 and v1.5.4 for umbraco 6

  • Jeric 122 posts 192 karma points
    Nov 19, 2013 @ 18:40
    Jeric
    0

    I'm running umbraco V4.11.9

    uSync V1.3.1

     

     

  • Kevin Jump 2310 posts 14695 karma points MVP 7x c-trib
    Nov 21, 2013 @ 12:47
    Kevin Jump
    0

    Hi

    I've just had a play with 4.11.9 and usync 1.3.1 and i think i have found something that might cause your problem.

    When you change the allowed templates in umbraco and click save: umbraco fires the AfterSave event, this is what uSync then uses to save to disk. I think it's a bug (in umbraco 4.11.x) that the allowed templates aren't actually saved before the event is fired, so usync can't then write those changes out to disk.

    if then you click save again the changes are already there and uSync writes the correct file to disk

    if you only click save once and do no more changes then the usync file doesn't have the correct allowed templates next time your app pool restarts (e.g. you add a dll / change a config) then uSync writes the values in the sync file over the ones in umbraco removing the allowed templates.

    So work around for v4.11.x installs: click save twice when altering an allowed template. Allowing usync to be given the most upto date version of the doctype to save.

    it looks like this is an issue with all umbraco 4.11.x versions (just tried in in 4.11.10) - but it works as expected in 6.1.6 (not much consolation i know)

Please Sign in or register to post replies

Write your reply to:

Draft