Copied to clipboard

Flag this post as spam?

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


  • fabrice 104 posts 227 karma points
    May 01, 2014 @ 10:14
    fabrice
    0

    Latest Archetype and SEO Checker incompatibility

     

    Hello,

    I'm using Umbraco 7.1.1 and the latest Archetype (the latest source from https://github.com/imulus/Archetype, not the release version) and SEO checker.

    The Archetype works fine without SEO Checker, but as soon as I add SEO Checker to the project I have the following error in the Archetype :

    Umbraco.Core.Models.PublishedContent.<>c__DisplayClass12.<GetCompatConverters>b__f(IPropertyEditorValueConverter x) +55
       System.Linq.WhereSelectArrayIterator`2.MoveNext() +5911145
       System.Linq.<UnionIterator>d__88`1.MoveNext() +823
       System.Linq.WhereEnumerableIterator`1.MoveNext() +195
       System.Linq.Buffer`1..ctor(IEnumerable`1 source) +487
       System.Linq.Enumerable.ToArray(IEnumerable`1 source) +102
       Umbraco.Core.Models.PublishedContent.PublishedPropertyType.InitializeConverters() +216
       Archetype.Umbraco.Models.Property.CreateDummyPropertyType

     

    The Archetype source code in here : https://github.com/imulus/Archetype/blob/master/app/Umbraco/Umbraco.Archetype/Models/Property.cs

    is doing  :

     return new PublishedPropertyType(null,
                    new PropertyType(new DataTypeDefinition(-1, propertyEditorAlias)
                    {
                        Id = dataTypeId
                    }));

    line 84. And the constructor of PublishedPropertyType crashes when it does "InitializeConverters"

    Do you have any idea why ?

    Thank you very much

  • Richard Soeteman 4035 posts 12842 karma points MVP
    May 12, 2014 @ 11:31
    Richard Soeteman
    0

    Hi,

    Tried to reproduce this with the normal version and that works ok. Would it be possible to zip up the ArcheType package so I can test it in my environment?

    Thanks,

    Richard

  • fabrice 104 posts 227 karma points
    May 12, 2014 @ 15:14
    fabrice
    0

    OK thank you very much i'll do that.

    But since they have added a try/catch in the archetype just around this code so it might work now. i'll do a test and come back to you.

     

  • fabrice 104 posts 227 karma points
    May 13, 2014 @ 13:08
    fabrice
    0

    Hello,

    I just downloaded the latest ArcheType but I still have the same problem..

    I have uploaded the project here : https://dl.dropboxusercontent.com/u/871028/Shared/Umbraco7%20ArcheType.zip

    In the umbTextPage.cshtml I have added for test :

      ArchetypeModel newAT = Model.Content.GetPropertyValue<ArchetypeModel>("newAT");

                                @foreach (ArchetypeFieldsetModel fieldset in newAT)
                                {
                                    string test = fieldset.GetValue<string>("text");
                                    <div>@test</div>
                                }

    If you browse the "/getting-started/" page, you'll see the div with the archetype value (just a string with "sdfsdfsdf" in...)

    And if you install the SEO Checker package, then the Archetype crashes as discribed. If I delete SEO checker again, then it works again.

    Many thanks

     

  • Richard Soeteman 4035 posts 12842 karma points MVP
    May 13, 2014 @ 16:25
    Richard Soeteman
    0

    Hi Fabrice,

    Trying to setup my view like yours but I think I am missing a couple of using statements. Could you send the complete view? can also via mail [email protected] ?

    Thanks,

    Richard

  • fabrice 104 posts 227 karma points
    May 14, 2014 @ 13:50
    fabrice
    0

    Hello,

    In the dropbox zip file, you have the umbraco project with the database, views, archetype etc...

    I don't have anything more than that :)

     

  • Richard Soeteman 4035 posts 12842 karma points MVP
    May 14, 2014 @ 13:55
    Richard Soeteman
    0

    Sorry my fault picked the wrong zip ;-)

  • Richard Soeteman 4035 posts 12842 karma points MVP
    May 15, 2014 @ 16:26
    Richard Soeteman
    0

    Hi,

    I've just released the 1.5.2 version, that solves this issue.

    http://our.umbraco.org/projects/website-utilities/seo-checker

Please Sign in or register to post replies

Write your reply to:

Draft