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
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.
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:
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.
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:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237
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.
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
Just out of curiousity - did you have any adverse effects anywhere else in umbraco by setting that value?
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
Looks like it will be fixed in Umbraco 4.7.1.1 http://umbraco.codeplex.com/workitem/30273.
Jeroen
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"
4.7.1.1 is already out and it's fixed in there so you could also upgrade.
Jeroen
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.