After upgrading from 7.6.2 to 7.6.3 I get this error: String "1705" is not a valid udi. I have EnablePropertyValueConverters set to true in both 7.6.2 and 7.6.3. My Partial View Macro:
@page.imgPanel.Url didn't work. I'm using the Media Picker property editor. I have tried both the obsolete editor and the new one (version 2), without luck.
Double check all the child nodes to ensure they have an Image selected.
I'm guessing your code is passing true on
if (page.HasValue("imgPanel")) {
You may want to put in an extra NULL check as well
if (page.imgPanel != null) {
Ensure you are using 7.6.3, and set EnablePropertyValueConverters to true, and use the "version2" media type, and resave all your startPage.children nodes.
And republish the entire site, to clear out the XML cache
Was hoping that this issue resolved this, as the republishing any and all pages where we need to alter from the legacy to the new media picker is time consuming on large sites.. Also if a page is in an editing cycle, we can't publish the previous version again to generate the UDI :-(
String "nnnn" is not a valid udi
After upgrading from 7.6.2 to 7.6.3 I get this error: String "1705" is not a valid udi. I have EnablePropertyValueConverters set to true in both 7.6.2 and 7.6.3. My Partial View Macro:
The error comes from "@Umbraco.Media(page.imgPanel).Url" inside the img tag, because when commenting this row, the code works. Any ideas?
Have you tried just...
What kind of property editor are you using for "imgPanel" ?
@page.imgPanel.Url didn't work. I'm using the Media Picker property editor. I have tried both the obsolete editor and the new one (version 2), without luck.
Double check all the child nodes to ensure they have an Image selected.
I'm guessing your code is passing true on
You may want to put in an extra NULL check as well
Ensure you are using 7.6.3, and set EnablePropertyValueConverters to true, and use the "version2" media type, and resave all your startPage.children nodes.
And republish the entire site, to clear out the XML cache
Resaving all my startPage.children nodes and republish the entire site did the trick. Thank you!
Was hoping that this issue resolved this, as the republishing any and all pages where we need to alter from the legacy to the new media picker is time consuming on large sites.. Also if a page is in an editing cycle, we can't publish the previous version again to generate the UDI :-(
http://issues.umbraco.org/issue/U4-9974
"Plus the media picker is missing a check for the obsolete media picker."
The source to Object convertor only supports UDI's so no go for legacy ints..
we could do with a fallback to the
https://github.com/Jeavon/Umbraco-Core-Property-Value-Converters/blob/v3/Our.Umbraco.PropertyConverters/MediaPickerPropertyConverter.cs
simple workaround...