I tried changing EnablePropertyValueConverters to false, and that seemed to fix this particular code, but it broke GetPropertyValue calls for other properties. Any suggestions as to what might be causing this and how to fix it?
Thanks again, Marc. I hit save on the image's media record. I also tried rebuilding the index by deleting the files in Internal\Index. Neither of these actions seemed to make a difference.
GetPropertyValue error on image after upgrade
After upgrading from 7.6.0 to 7.14.0, I am now getting an "Object reference not set to an instance" error when trying to get an ImagePicker property.
I tried changing EnablePropertyValueConverters to false, and that seemed to fix this particular code, but it broke GetPropertyValue calls for other properties. Any suggestions as to what might be causing this and how to fix it?
Hi Jose
With PropertyValueConverters enabled then you should be able to do this:
Essentially the property value converter for a single media picker will do the whole Umbraco.TypedMedia step for you...
Regards
Marc
Thanks Marc. The error occurs at GetPropertyValue. This line fails as well.
Hi Jose
Have you rebuilt your Examine InternalIndex since the upgrade?
and if you find the image in the backoffice media section and 'save' it again - does it work?
regards
Marc
Thanks again, Marc. I hit save on the image's media record. I also tried rebuilding the index by deleting the files in Internal\Index. Neither of these actions seemed to make a difference.
Hi Jose
Is it a single Media Picker or Multiple Media Picker?
If multiple then...
also does it blow up on
?
regards
Marc
It is a single Umbraco.MediaPicker (not MediaPicker2). It blows up with GetPropertyValue<int> as well.
is working on a reply...