Copied to clipboard

Flag this post as spam?

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


  • Hamish 96 posts 154 karma points
    Oct 18, 2011 @ 03:13
    Hamish
    0

    When saving an image in pixlr it breaks the ability to edit the media item

    After editing an image on Pixlr and saving it back to the project, I am getting the following error message when I try to edit the images information (e.g clicking on the edit link within a DAMP listing as well as when i try to edit the image item within the Media section.

    Server Error in '/' Application.

    The string was not recognized as a valid DateTime. There is an unknown word starting at index 19.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.FormatException: The string was not recognized as a valid DateTime. There is an unknown word starting at index 19.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


    Stack Trace:

    [FormatException: The string was not recognized as a valid DateTime. There is an unknown word starting at index 19.]
       System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) +3610402
       System.Convert.ToDateTime(String value) +83
       umbraco.editorControls.imagecropper.DataEditor.OnInit(EventArgs e) +2141
       System.Web.UI.Control.InitRecursive(Control namingContainer) +140
       System.Web.UI.Control.InitRecursive(Control namingContainer) +311
       System.Web.UI.Control.InitRecursive(Control namingContainer) +311
       System.Web.UI.Control.InitRecursive(Control namingContainer) +311
       System.Web.UI.Control.InitRecursive(Control namingContainer) +311
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +197
       System.Web.UI.ControlCollection.Add(Control child) +79
       umbraco.controls.ContentControl.addControlNew(Property p, TabPage tp, String Caption) +3679
       umbraco.controls.ContentControl.CreateChildControls() +610
       System.Web.UI.Control.EnsureChildControls() +102
       umbraco.controls.ContentControl.OnInit(EventArgs e) +32
       System.Web.UI.Control.InitRecursive(Control namingContainer) +140
       System.Web.UI.Control.AddedControl(Control control, Int32 index) +197
       System.Web.UI.ControlCollection.Add(Control child) +79
       umbraco.cms.presentation.editMedia.OnInit(EventArgs e) +515
       System.Web.UI.Control.InitRecursive(Control namingContainer) +140
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +480
    



    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237

  • Hamish 96 posts 154 karma points
    Oct 18, 2011 @ 03:22
    Hamish
    0

    After further analysis at looking at the umbraco.config xml file, the date format to the media item that has been updated using Pixlr differs from the default upload.

     

                <mediaItem>
    <Image id="1093" version="b255324a-09f1-4a95-97fb-3455e977a811" parentID="1088" level="3" writerID="0" nodeType="1032" template="0" sortOrder="5" createDate="2011-10-18T11:08:34" updateDate="2011-10-18T11:08:31" nodeName="13210KS0__85495_zoom" urlName="13210ks0__85495_zoom" writerName="admin" nodeTypeAlias="Image" path="-1,1087,1088,1093">
    .... BEFORE PLIXR UDPATE ....
    <crops>
    <crops date="18/10/2011 11:08:34">
    <crop name="Standard" x="0" y="217" x2="1136" y2="950" url="/media/108/13210ks0__85495_zoom_Standard.jpg" />
    </crops>
    </crops>
    </Image>
    </mediaItem>
    <mediaItem>
    <Image id="1089" version="9aba2996-fa4e-41e6-84d0-d2c08dd66f6f" parentID="1088" level="3" writerID="0" nodeType="1032" template="0" sortOrder="1" createDate="2011-10-18T11:07:43" updateDate="2011-10-18T11:07:40" nodeName="kaldewei-ellipso-duo" urlName="kaldewei-ellipso-duo" writerName="admin" nodeTypeAlias="Image" path="-1,1087,1088,1089">
    .... AFTER PLIXR UDPATE ....
    <crops>
    <crops date="18/10/2011 2:03:03 p.m.">
    <crop name="Standard" x="0" y="27" x2="511" y2="356" url="/media/88/kaldewei-ellipso-duo_Standard.jpg" />
    <crop name="Square" x="63" y="0" x2="448" y2="385" url="/media/88/kaldewei-ellipso-duo_Square.jpg" />
    </crops>
    </crops>
    </Image>
    </mediaItem>
  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Oct 18, 2011 @ 09:29
    Jeroen Breuer
    1

    Hi Hamish,

    I've also encountered this bug before and it's probably a bug in Umbraco. Have a look at this workitem: http://umbraco.codeplex.com/workitem/30273. You can try to reproduce what's in there.

    I fixed it by setting a culture in the web.config like this:

    <globalization requestEncoding="UTF-8" responseEncoding="UTF-8" culture="en-GB" />

    This happens because the image cropper stores a date and because the different cultures it can get stored different. After adding the culture in the web.config I don't know if it's fixed for the current media items (those already have the wrong date and won't work anymore), but if you create a new media item and try to change that with pixlr it should work.

    Jeroen

  • Hamish 96 posts 154 karma points
    Oct 21, 2011 @ 02:24
    Hamish
    0

    Just out of curiousity - did you have any adverse effects anywhere else in umbraco by setting that value?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Oct 23, 2011 @ 19:41
    Jeroen Breuer
    0

    I used it on a few websites and I had no other problems. Didn't use it on multilingual websites, but I think that also shouldn't cause any trouble.

    Jeroen

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Dec 22, 2011 @ 14:27
    Jeroen Breuer
    0

    Looks like it will be fixed in Umbraco 4.7.1.1 http://umbraco.codeplex.com/workitem/30273.

    Jeroen

  • Roel Snetselaar 151 posts 305 karma points
    Jan 23, 2012 @ 21:41
    Roel Snetselaar
    0

    Experienced kind of the same issue today On 4.7.1

    I got a different date format after creating a new image using DAMP. Adding the culture to the web.config solved it: culture="en-GB"

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jan 23, 2012 @ 22:02
    Jeroen Breuer
    0

    4.7.1.1 is already out and it's fixed in there so you could also upgrade.

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft