On my site i have a consistent error found under the logs
"ERROR Umbraco.Core.Dynamics.DynamicInstanceHelper - An error occurred finding and executing extension method "GetValue" for type "Umbraco.Web.Models.DynamicPublishedContent". Types searched for extension methods were Umbraco.Web.Models.DynamicPublishedContent."
found within the logs. How could i narrow down what/where the issue is?
Personally, I wouldn't focus on this error, instead I would look to be removing the use of Dynamics from the site. They dynamics approach, although handy, is less performant and isn't supported in later version of Umbraco so could make upgrades/migrations harder so it would be an effective use of your time to remove it.
CurrentPage is a dynamic object property that is available in views that inherit from UmbracoTemplatePage, so instead of trying to access a property directly from CurrentPage, I'd be accessing properties with Model.Content.GetPropertyValue("propertyAlias")
Finding and executing extension method "GetValue"
On my site i have a consistent error found under the logs
"ERROR Umbraco.Core.Dynamics.DynamicInstanceHelper - An error occurred finding and executing extension method "GetValue" for type "Umbraco.Web.Models.DynamicPublishedContent". Types searched for extension methods were Umbraco.Web.Models.DynamicPublishedContent."
found within the logs. How could i narrow down what/where the issue is?
Ta
Hi J,
Personally, I wouldn't focus on this error, instead I would look to be removing the use of Dynamics from the site. They dynamics approach, although handy, is less performant and isn't supported in later version of Umbraco so could make upgrades/migrations harder so it would be an effective use of your time to remove it.
Nik
Hi Nik
What "Dynamics" are you referring to please?
Hi J,
In your views I suspect you are accessing things like:
CurrentPage
,Umbraco.Content
,Umbraco.Media
These all return dynamic objects instead of instances of IPublishedContent. So I would be looking to remove the use of these methods / properties:
e.g., Umbraco.Content becomes Umbraco.TypedContent,
CurrentPage is a dynamic object property that is available in views that inherit from UmbracoTemplatePage, so instead of trying to access a property directly from CurrentPage, I'd be accessing properties with
Model.Content.GetPropertyValue("propertyAlias")
Does that help?
Nik
Ok i think i know what you mean. Let me give it a try and see what happens.
Is there any page/doc to give me a breakdown of what the new value would be when converting?
Many thanks
is working on a reply...