Copied to clipboard

Flag this post as spam?

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


  • Johan 188 posts 380 karma points
    Sep 18, 2013 @ 16:08
    Johan
    0

    Multiple image croppers on a document type

    I get this message when i add multiple Image croppers on the same Document type.

    Multiple controls with the same ID 'ImageCropper' were found. FindControl requires that controls have unique IDs.

    This must be a bug? I'm running umbraco v 4.11.6

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Sep 18, 2013 @ 20:27
    Jan Skovgaard
    1

    Hi Johan

    Not that I know anything about what is the cause of this but I'm wondering if you have seen the cropup package by Niels Kühnel? It's really a fine piece of work and I think that your editors will love it.

    Perhaps it would be easier to simply switch?

    Check it out here http://our.umbraco.org/projects/website-utilities/eksponent-cropup

    Cheers, Jan

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Sep 18, 2013 @ 20:56
    Ali Sheikh Taheri
    0

    are they with 2 different alias?

  • Johan 188 posts 380 karma points
    Sep 19, 2013 @ 13:42
    Johan
    0

    @Jan: I've thought about it and am leaning on gonig down that road. But it's a pretty big site and the ocd side of me is going to want to change all crops to CropUp for the sake of consistency.

    @Ali: Yup, and none of their aliases is "ImageCropper"

  • Johan 188 posts 380 karma points
    Sep 19, 2013 @ 15:07
    Johan
    0

    Doh! Using CropUp resulted in a similar error message:

    Multiple controls with the same ID 'Container' were found. FindControl requires that controls have unique IDs.

    [HttpException (0x80004005): Multiple controls with the same ID 'Container' were found. FindControl requires that controls have unique IDs.]
       System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +233
       System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +311
       System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +311
       System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +311
       System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +311
       System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +311
       System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +311
       System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +311
       System.Web.UI.Control.FillNamedControlsTable(Control namingContainer, ControlCollection controls) +311
       System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +306
       System.Web.UI.Control.FindControl(String id) +12
       System.Web.UI.WebControls.BaseValidator.CheckControlValidationProperty(String name, String propertyName) +33
       System.Web.UI.WebControls.BaseValidator.ControlPropertiesValid() +40
       System.Web.UI.WebControls.BaseValidator.OnPreRender(EventArgs e) +36
       System.Web.UI.Control.PreRenderRecursiveInternal() +83
       System.Web.UI.Control.PreRenderRecursiveInternal() +168
       System.Web.UI.Control.PreRenderRecursiveInternal() +168
       System.Web.UI.Control.PreRenderRecursiveInternal() +168
       System.Web.UI.Control.PreRenderRecursiveInternal() +168
       System.Web.UI.Control.PreRenderRecursiveInternal() +168
       System.Web.UI.Control.PreRenderRecursiveInternal() +168
       System.Web.UI.Control.PreRenderRecursiveInternal() +168
       System.Web.UI.Control.PreRenderRecursiveInternal() +168
       System.Web.UI.Control.PreRenderRecursiveInternal() +168
       System.Web.UI.Control.PreRenderRecursiveInternal() +168
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +974

    Solving it by using both croppers now :(. Can anyone else get this to work? This must be a bug.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Sep 19, 2013 @ 21:45
    Jan Skovgaard
    0

    Hi Johan

    Coiuld you perhaps post a screendump with your document types setup?

    Have you tried giving the properties a totally different alias just to make sure that there are no duplicates? Coming to think about this error usually happening when inheriting document types etc.

    Looking forward to hearing from you.

    /Jan

  • Johan 188 posts 380 karma points
    Sep 20, 2013 @ 14:23
    Johan
    0

    I created a new clean document type in the root and added the following properties:

    Still the same error :(

  • Guido Adam 21 posts 65 karma points
    Nov 14, 2013 @ 15:50
    Guido Adam
    0

    This is by design, not a bug. When you create your own datatype of type 'image cropper', you'll see that the newly created datatype has the same 'unique' id as the native 'image cropper'. Since the controle are referenced by the guid, you can't use them on the same page.

    This goes for all datatypes.

Please Sign in or register to post replies

Write your reply to:

Draft