sitecore8 - Sitecore's "Links" button doesn't work because of a null-reference exception -


i trying see item's linked items. doing on client's content management server. when click on navigate -> links, nothing happens. error in javascript console:

http://sitename.local/sitecore/shell/default.aspx?xmlcontrol=gallery.links&…de-de&vs=1&db=master&sc_content=master&showeditor=1&ribbon.rendertabs=true

failed load resource: server responded status of 500 (internal server error)

here's see in sitecore logs:

38424 19:09:30 error application error. exception: system.web.httpunhandledexception message: exception of type 'system.web.httpunhandledexception' thrown. source: system.web    @ system.web.ui.page.handleerror(exception e)    @ system.web.ui.page.processrequestmain(boolean includestagesbeforeasyncpoint, boolean includestagesafterasyncpoint)    @ system.web.ui.page.processrequest(boolean includestagesbeforeasyncpoint, boolean includestagesafterasyncpoint)    @ system.web.ui.page.processrequest()    @ system.web.ui.page.processrequest(httpcontext context)    @ system.web.httpapplication.callhandlerexecutionstep.system.web.httpapplication.iexecutionstep.execute()    @ system.web.httpapplication.executestep(iexecutionstep step, boolean& completedsynchronously)  nested exception  exception: system.reflection.targetinvocationexception message: exception has been thrown target of invocation. source: mscorlib    @ system.runtimemethodhandle.invokemethod(object target, object[] arguments, signature sig, boolean constructor)    @ system.reflection.runtimemethodinfo.unsafeinvokeinternal(object obj, object[] parameters, object[] arguments)    @ system.reflection.runtimemethodinfo.invoke(object obj, bindingflags invokeattr, binder binder, object[] parameters, cultureinfo culture)    @ sitecore.reflection.reflectionutil.invokemethod(methodinfo method, object[] parameters, object obj)    @ sitecore.web.ui.sheer.clientpage.onload(eventargs e)    @ system.web.ui.control.loadrecursive()    @ system.web.ui.page.processrequestmain(boolean includestagesbeforeasyncpoint, boolean includestagesafterasyncpoint)  nested exception  exception: system.argumentnullexception message: value cannot null. parameter name: owneritem source: sitecore.kernel    @ sitecore.diagnostics.assert.argumentnotnull(object argument, string argumentname)    @ sitecore.data.fields.field..ctor(id fieldid, item owneritem)    @ sitecore.shell.applications.contentmanager.galleries.links.gallerylinksform.getlinktooltip(item reference, itemlink link)    @ sitecore.shell.applications.contentmanager.galleries.links.gallerylinksform.renderreferences(stringbuilder result, list`1 references)    @ sitecore.shell.applications.contentmanager.galleries.links.gallerylinksform.onload(eventargs e) 

it looks owneritem argument null when creating item field.

this happens several different items—e.g. templates , sublayouts.

what causing issue , how fix it?

this issue registered bug in sitecore , fixed in sitecore 8.1 update 2 part of fixes merged 7.2 update 6: "includes relevant fixes sitecore 7.2 update-6"

https://dev.sitecore.net/downloads/sitecore%20experience%20platform/sitecore%2081/sitecore%20experience%20platform%2081%20update2/release%20notes

"452241: links dialog fails if cross-database links present" https://sdn.sitecore.net/products/sitecore%20v5/sitecore%20cms%207/releasenotes/changelog.aspx

to fix issue in sitecore 8.1 update 1, please install following patch:

  1. put attached sitecore.support.452241.dll file bin folder of solution.
  2. replace following string in website\sitecore\shell\applications\content manager\galleries\links\gallery links.xml dialog:
     <codebeside type="sitecore.shell.applications.contentmanager.galleries.links.gallerylinksform,sitecore.client"/> 

with new one:

     <codebeside type="sitecore.support.shell.applications.contentmanager.galleries.links.gallerylinksform,sitecore.support.452241"/> 

link of file can find here: https://www.dropbox.com/s/l36zqhwjtahl4q2/sitecore.support.452241.dll?dl=0


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -