Bug reports Found a bug? Post it here please.
Version 5.x > Bug reports > Cannot add links to pages via Media Library View modes: 
User avatar
Certified Developer v7
Certified  Developer v7
Nathoushka - 8/13/2012 9:34:33 AM
   
Cannot add links to pages via Media Library
We've got a problem on one of our site and it's annoying our client. They can't add links to their pages via the Media Library icon in the FCKEditor anymore.

Either the Media Library pop up ignores our selection, or we get an exception.

See the screeshot below:
Screenshot

And the exception my client is getting:
Message: Index was outside the bounds of the array. 
Stack Trace:
at CMSModules_Content_Controls_Dialogs_LinkMediaSelector_MediaView.GetArgumentsTable(String argument)
at CMSModules_Content_Controls_Dialogs_LinkMediaSelector_MediaView.GetItemUrl(String argument, Int32 height, Int32 width, Int32 maxSideSize, Boolean notAttachment)
at CMSModules_Content_Controls_Dialogs_LinkMediaSelector_MediaView.innermedia_GetListItemUrl(DataRow dr, Boolean isPreview, Boolean notAttachment)
at CMSModules_Content_Controls_Dialogs_LinkMediaSelector_InnerMediaView.ListViewControl_OnExternalDataBound(Object sender, String sourceName, Object parameter)
at CMS.UIControls.GridViewTemplate.BindData(Object sender, EventArgs e)
at System.Web.UI.Control.OnDataBinding(EventArgs e)
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.Control.DataBindChildren()
at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
at System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource)
at System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
at System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data)
at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
at System.Web.UI.WebControls.DataBoundControl.PerformSelect()
at CMSAdminControls_UI_UniGrid_UniGrid.ReloadData()
at CMSModules_Content_Controls_Dialogs_LinkMediaSelector_InnerMediaView.ReloadListView()
at CMSModules_Content_Controls_Dialogs_LinkMediaSelector_MediaView.Reload()
at CMSModules_Content_Controls_Dialogs_LinkMediaSelector_LinkMediaSelector.HandleFolderAction(String argument, Boolean reloadTree, Boolean callSelection)
at CMSModules_Content_Controls_Dialogs_LinkMediaSelector_LinkMediaSelector.EnsureLoadedData()
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at CMS.ExtendedControls.AbstractUserControl.OnLoad(EventArgs e)
at CMS.UIControls.CMSUserControl.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

What seems to be the problem?

I'm completely clueless about what could cause this error, as it was perfectly working last week...

Thanks!

User avatar
Certified Developer v7
Certified  Developer v7
Nathoushka - 8/13/2012 12:34:23 PM
   
RE:Cannot add links to pages via Media Library
While I haven't done any changes before and after the bugs occurred, it fixed itself without any changes on my end. Something strange is going on and I don't know what caused it.

At least, for now, it is now working, but seems like the bug occurred repeatedly between August 3 and 13.

If you know anything that could cause such a strange behaviour, I'd be interested to know.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 8/18/2012 5:26:08 PM
   
RE:Cannot add links to pages via Media Library
Hi,

this was really a bug which was fixed in version 5.5 R2 (in one of the latest hotfixes). I am sorry for inconvenience.

Best regards,
Ivana Tomnaickova