Copied to clipboard

Flag this post as spam?

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


  • Daniel Palm 35 posts 147 karma points
    Oct 23, 2014 @ 16:30
    Daniel Palm
    0

    Cannot open Document Type

    Hi all,

    All of a sudden: I cannot open any document types. I get an error message:

    Length cannot be less than zero.
    Parameter name: length

    I can create new ones; at least the name.

    I didn´t do any other changes to the system. Any thoughts?

    [ArgumentOutOfRangeException: Length cannot be less than zero.
    Parameter name: length]
       System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +10929307
       umbraco.controls.ContentTypeControlNew.FileNameToIconFileName(FileInfo file) +59
       System.Linq.WhereSelectArrayIterator`2.MoveNext() +66
       System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +460
       System.Linq.Enumerable.ToList(IEnumerable`1 source) +58
       umbraco.controls.ContentTypeControlNew.SetupInfoPane() +707
       umbraco.controls.ContentTypeControlNew.OnInit(EventArgs e) +31
       System.Web.UI.Control.InitRecursive(Control namingContainer) +134
       System.Web.UI.Control.InitRecursive(Control namingContainer) +290
       System.Web.UI.Control.InitRecursive(Control namingContainer) +290
       System.Web.UI.Control.InitRecursive(Control namingContainer) +290
       System.Web.UI.Control.InitRecursive(Control namingContainer) +290
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +489
  • Jan Skovgaard 11239 posts 23375 karma points MVP 6x admin c-trib
    Oct 23, 2014 @ 19:01
    Jan Skovgaard
    0

    Hi Daniel

    What exact version of Umbraco are you using? And what changes were you making when this started to happen?

    Looking forward to hearing from you.

    /Jan

  • Daniel Palm 35 posts 147 karma points
    Oct 23, 2014 @ 21:17
    Daniel Palm
    0

    I´m using Umbraco 6.2.2 with MS SQL Server

    When it happend; I was creating a new document type. I opened other document types earlier today without any problems. Between that I have been working with XSLT files and content files. No funny business with the server, database or config files.

    I´ve noticed that the same error occurs when I try to open a media type.

  • Jan Skovgaard 11239 posts 23375 karma points MVP 6x admin c-trib
    Oct 23, 2014 @ 21:59
    Jan Skovgaard
    0

    Hi Daniel

    Are you the only developer working on the site? And how about the content editing? Are there other content editors? If so has there been added any content today while you were working on other stuff? And could that content perhaps contain some weird characters, which could be the reason for this?

    2 years ago some of the other guys saw this issue in Umbraco 4.7.2 but it seemed to be content related http://our.umbraco.org/forum/using/ui-questions/27451-Length-cannot-be-less-than-zero-Parameter-name-length

    A long shot could be to empty the the /app_data/TEMP folder to see if it helps?

    Also have you had a look in the /app_data/logs file to see if it reveals further information?

    /Jan

  • Daniel Palm 35 posts 147 karma points
    Oct 23, 2014 @ 23:45
    Daniel Palm
    0

    No one, but me, have been working with site prior to the error.

    I tried to clear the TEMP folder. It didn´t make any difference.

    I really don´t know what to look for in the log files. Found a lot of "ERROR umbraco.editorControls.tinyMCE3.TinyMCE - [Thread 11] Error adding stylesheet to tinymce Id:1049". Probably unrelated.

    I remembered another thing I did before it went downhill: I uploaded an icon to the umbraco/images/umbraco/ folder.  

     

     

     

  • Daniel Palm 35 posts 147 karma points
    Oct 24, 2014 @ 08:54
    Daniel Palm
    101

    I solved it.

    I added an icon to the umbraco/images/umbraco/ folder prior to the first occurance of the error. For the first time ever, probably, I named the file using a special swedish character (ä). This caused the error.

  • Jan Skovgaard 11239 posts 23375 karma points MVP 6x admin c-trib
    Oct 26, 2014 @ 17:42
    Jan Skovgaard
    0

    Hi Daniel

    Glad to see you managed to figured it out and thanks for sharing the solution so others can benefit.

    Would you mind filing a bug report about this issue? I think it's something that should be handled so people don't get ugly error messages like that - at least a warning saying that such carachters are not allowed. Feel free to report the issue at the issue tracker here http://issues.umbraco.org/issues

    Cheers, Jan

  • Daniel Palm 35 posts 147 karma points
    Oct 26, 2014 @ 20:07
  • MuirisOG 371 posts 1259 karma points
    Nov 13, 2015 @ 16:34
    MuirisOG
    0

    I've just experienced the same error trying to import images from my old CMS.

    I think that the problem arose because in my custom media type, which has both an English title field and a Welsh Title field, the English title was missing (even though it wasn't compulsory).

    The mediaservice save(newImage) function fell over.

    I bypassed these images and it seems to work now again.

Please Sign in or register to post replies

Write your reply to:

Draft