-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not find constructor warning in logs #4
Comments
I added a constructor with Field signature which should eliminate the exception. However, I need to look more into the reason why this constructor is required, because none of other custom fields seem to need it. |
Hi, This fix seems to cause other errors. For example if you call Item.Links.GetValidLinks() then it throws the following exception: ManagedPoolThread #19 09:31:33 ERROR Could not update index entry. Action: 'Saved', Item: '{FA745EEE-94B8-4FFC-AFB6-1BDA853ED91E}' Nested Exception Exception: System.NullReferenceException This gets called, for this example, when the item is updated in the search index, then this error comes up in the logs... |
Hi we face a similar issue using this component on Sitecore 7.2 (rev. 140228) The issue arises when we publish an item that uses the image cropper module. And we get the following error message in the body of the publishing wizard Job started: Publish to 'web'|#Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. |
Hello, I work in @rangler2's development team, we still have no solution for this. Thanks |
Hi @mihaela-radu , I could not reproduce this in Sitecore 8.1, but could you maybe try to add the field to the fieldTypes configuration and see if that fixes the Exceptions? Greetz, |
Try this patch
|
Hi,
Since using the module I have Lots of these warnings in the Sitecore logs:
ManagedPoolThread #10 15:20:11 WARN Could not find constructor in ReflectionUtil.CreateObject: JCore.SitecoreModules.ImageCropping.Data.Fields.ExtendedImageField. The constructor parameters may not match or it may be an abstract class. Parameter info: Count: 1. Parameter types: Sitecore.Data.Fields.Field
Not sure exactly when they occur but seem to be a lot when installing packaged items. Have you had this in your logs?
Thanks
The text was updated successfully, but these errors were encountered: