ImageView Fatal error: Could not extract a stage height from

Posted by Community Admin on 04-Aug-2018 07:37

ImageView Fatal error: Could not extract a stage height from the CSS. Traced height: 0px

All Replies

Posted by Community Admin on 08-Jul-2015 00:00

I've dropped a ImageView control on a template and it generates the following error, albeit it seems to load the pictures?

Posted by Community Admin on 09-Jul-2015 00:00

I think this is caused when there are no pictures in the Custom Module to display.  I've added Debug="false" to the ImageView control which I believe suppresses the error from being generated. 

The only issue remains to show an alternative image when there are no images, or a message saying something like "Awaiting Images". 

The only way I can think of doing this is changing the import data to check the count of images and if it is zero add a pre-created related images with the text "Awaiting Images".  It would be nice if there was a <noimageview>put text here</noimageview> or something like that in the control.

Posted by Community Admin on 10-Jul-2015 00:00

Hi David,

In order to achieve your needs you can use the Conditional control in your template:

<%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" Assembly="Telerik.Sitefinity" %>
.....
<sf:Conditional If='<%# Eval("<the content needed>") != null && Eval("<the content needed>") != "" %>' runat="server">
   <Then>
         The markup to be rendered if True
  </Then>
   <Else>
         The markup to be rendered if False
  </Else>
</sf:Conditional>

I hope this helps.

Regards,
Svetoslav Manchev
Telerik
 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

Posted by Community Admin on 13-Jul-2015 00:00

I think on of the other reasons I am getting this error is that is that the control is timing out loading an image.  Sometimes it works, sometimes it does not.

Posted by Community Admin on 15-Jul-2015 00:00

Hi David,

Would you please provide more information about the scenario you have and/or the template used.

In addition, you can check that article, where some additional information is given regarding to possible reason of that error.

Regards,
Svetoslav Manchev
Telerik

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

Posted by Community Admin on 15-Jul-2015 00:00

Hi Svetoslav,

I've copied the template that I'm using below.  I think it is a timeout issues as if I refresh the page sometimes it will work fine, other times I get the error.

 

<%@ Control Language="C#" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.DynamicModules.Web.UI.Frontend" TagPrefix="sf" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI.Fields" TagPrefix="sf" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" TagPrefix="sf" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Modules.Comments.Web.UI.Frontend" TagPrefix="sf" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Modules.Libraries.Web.UI" TagPrefix="sf" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Modules.Libraries.Web.UI.Images" TagPrefix="sf" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI.PublicControls" TagPrefix="sf" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Modules.Libraries.Web.UI.Images" TagPrefix="sf" %>
<%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Modules.Libraries.Web.UI" TagPrefix="sf" %>
<%@ Register Assembly="SitefinityWebApp" Namespace="SitefinityWebApp.CustomControls" TagPrefix="custom" %>
<%@ Import Namespace="Telerik.Sitefinity.Web.UI" %>
<%@ Import Namespace="Telerik.Sitefinity.Modules.Comments" %>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadTabStrip1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
<telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="RadMultiPage1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadTabStrip1" />
<telerik:AjaxUpdatedControl ControlID="RadMultiPage1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<sf:SitefinityLabel id="title" runat="server" WrapperTagName="div" HideIfNoText="true" HideIfNoTextMode="Server" CssClass="sfitemFieldLbl" />
<sf:DynamicDetailContainer id="detailContainer" runat="server">
<LayoutTemplate>
<div class="sfitemDetails sfdetails" data-sf-provider='<%# Eval("Provider.Name")%>' data-sf-id='<%# Eval("Id")%>' data-sf-type="Telerik.Sitefinity.DynamicModules.Model.DynamicContent">
<telerik:RadTabStrip ID="RadTabStrip1" runat=server RenderMode="Lightweight" MultiPageID="RadMultiPage1" SelectedIndex="0">
<Tabs>
<telerik:RadTab Text="Photographs" >
</telerik:RadTab>
<telerik:RadTab Text="Map" >
</telerik:RadTab>
<telerik:RadTab Text="Floorplans">
</telerik:RadTab>
</Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage ID="RadMultiPage1" Runat="server" SelectedIndex="0" >
<telerik:RadPageView runat="server" id="RadPageView1">
<sf:ImagesView ControlDefinitionName="ImagesFrontend" runat="server" MasterViewName="ImagesFrontendThumbnailsListStrip" Title="" UrlKeyPrefix="" Debug="false">
<RelatedDataDefinition RelatedFieldName="Images" RelatedItemType="Telerik.Sitefinity.DynamicTypes.Model.Properties.Property" RelationTypeToDisplay="Child" RelatedItemSource="DataItemContainer">
</RelatedDataDefinition>
<ControlDefinition ControlDefinitionName="ImagesFrontend" runat="server" ProviderName="OpenAccessDataProvider">
<Views>
<sf:ImagesViewMasterDefinition SortExpression="" ViewName="ImagesFrontendThumbnailsListBasic" runat="server">
</sf:ImagesViewMasterDefinition>
<sf:ImagesViewMasterDefinition SortExpression="" ViewName="ImagesFrontendThumbnailsListLightBox" runat="server">
</sf:ImagesViewMasterDefinition>
<sf:ImagesViewMasterDefinition SortExpression="" ViewName="ImagesFrontendThumbnailsListSimple" runat="server">
</sf:ImagesViewMasterDefinition>
<sf:ImagesViewMasterDefinition SortExpression="" ViewName="ImagesFrontendThumbnailsListStrip" runat="server">
</sf:ImagesViewMasterDefinition>
<sf:ImagesViewDetailDefinition ViewName="ImagesDetailView" runat="server">
</sf:ImagesViewDetailDefinition>
</Views>
</ControlDefinition >
</sf:ImagesView>
</telerik:RadPageView>
<telerik:RadPageView runat="server" id="RadPageView2">
<custom:CustomAddressField ID="map" runat="server" DataFieldName="Address" IsMapExpanded="true" AddressTemplate="" />
</telerik:RadPageView>
<telerik:RadPageView runat="server" id="RadPageView3">
<sf:Conditional If='<%# ((int)Eval("Floorplans.Count")) > 0 %>' runat="server">
<Then>
<sf:ImagesView ControlDefinitionName="ImagesFrontend" runat="server" MasterViewName="ImagesFrontendThumbnailsListStrip" Title="" UrlKeyPrefix="" Debug="false">
<RelatedDataDefinition RelatedFieldName="Floorplans" RelatedItemType="Telerik.Sitefinity.DynamicTypes.Model.Properties.Property" RelationTypeToDisplay="Child" RelatedItemSource="DataItemContainer">
</RelatedDataDefinition>
<ControlDefinition ControlDefinitionName="ImagesFrontend" runat="server" ProviderName="OpenAccessDataProvider">
<Views>
<sf:ImagesViewMasterDefinition SortExpression="" ViewName="ImagesFrontendThumbnailsListBasic" runat="server">
</sf:ImagesViewMasterDefinition>
<sf:ImagesViewMasterDefinition SortExpression="" ViewName="ImagesFrontendThumbnailsListLightBox" runat="server">
</sf:ImagesViewMasterDefinition>
<sf:ImagesViewMasterDefinition SortExpression="" ViewName="ImagesFrontendThumbnailsListSimple" runat="server">
</sf:ImagesViewMasterDefinition>
<sf:ImagesViewMasterDefinition SortExpression="" ViewName="ImagesFrontendThumbnailsListStrip" runat="server">
</sf:ImagesViewMasterDefinition>
<sf:ImagesViewDetailDefinition ViewName="ImagesDetailView" runat="server">
</sf:ImagesViewDetailDefinition>
</Views>
</ControlDefinition >
</sf:ImagesView>
</Then>
<Else>
<div style="text-align:center; background-color: white; height: 400px;">
<h6 style="line-height: 390px">Awaiting Floorplans</h6>
</div>
</Else>
</sf:Conditional>
</telerik:RadPageView>
</telerik:RadMultiPage>
<div class="property-features">
<h3>Features</h3>
<ul>
<li><sitefinity:TextField ID="TextField1" runat="server" DisplayMode="Read" Value='<%# Eval("Bullet1") %>' /></li>
<li><sitefinity:TextField ID="TextField2" runat="server" DisplayMode="Read" Value='<%# Eval("Bullet2") %>' /></li>
<li><sitefinity:TextField ID="TextField3" runat="server" DisplayMode="Read" Value='<%# Eval("Bullet3") %>' /></li>
<li><sitefinity:TextField ID="TextField4" runat="server" DisplayMode="Read" Value='<%# Eval("Bullet4") %>' /></li>
<li><sitefinity:TextField ID="TextField5" runat="server" DisplayMode="Read" Value='<%# Eval("Bullet5") %>' /></li>
</ul>
</div>
<h3>Description</h3>
<div class="property-description">
<sitefinity:TextField ID="TextField6" runat="server" DisplayMode="Read" Value='<%# Eval("Description") %>' />
</div>
<div class="property-paragraphs">
<sitefinity:TextField ID="TextField7" runat="server" DisplayMode="Read" Value='<%# Eval("Paragraphs") %>' />
</div>
</div>
</LayoutTemplate>
</sf:DynamicDetailContainer>

Posted by Community Admin on 20-Jul-2015 00:00

Hello David,

Would you please also provide the error logs. To do so:
 > Remove all the files under ~\<your project>\App_Data\Sitefinity\Logs\... 
 > Reproduce the case
 > Attache all the files generated in the above mentioned folder

in order to check what could cause the issue?

Can you try the code that causing the issue out of tab strip control, thus we can confirm if te issue is related to not proper rendering in for example non active 'tab'.

Regards,
Svetoslav Manchev
Telerik

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

Posted by Community Admin on 23-Jul-2015 00:00

Hi Svetoslav,

 Murphy's Law, that I'm now struggling to reproduce this error.  Not sure what has changed, but will keep trying!

Posted by Community Admin on 24-Jul-2015 00:00

Just happened to me!

Here is the log:

----------------------------------------
Timestamp: 23/07/2015 14:57:47
Message: HandlingInstanceID: fcdec483-05b2-4045-bd07-c55e7bc9d344
An exception of type 'System.NullReferenceException' occurred and was caught.
-----------------------------------------------------------------------------
07/23/2015 15:57:47
Type : System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Object reference not set to an instance of an object.
Source : Telerik.Sitefinity
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : Void VerifySectionRegistered(System.Type)
HResult : -2147467261
Stack Trace :    at Telerik.Sitefinity.Configuration.Config.VerifySectionRegistered(Type sectionType)
   at Telerik.Sitefinity.Configuration.Config.GetSectionInternal(Type sectionType, Boolean safeMode)
   at Telerik.Sitefinity.Configuration.Config.GetSectionPrivate(Type sectionType, Boolean safeMode)
   at Telerik.Sitefinity.Configuration.Config.GetSectionPrivate[TSection](Boolean safeMode)
   at Telerik.Sitefinity.Localization.ResourceManager.get_ProvidersSettings()
   at Telerik.Sitefinity.Data.ManagerBase`1.GetProvidersSettings()
   at Telerik.Sitefinity.Data.ManagerBase`1.Initialize()
Additional Info:
MachineName : DAVID-PC8
TimeStamp : 23/07/2015 14:57:47
FullName : Telerik.Sitefinity.Utilities, Version=7.0.5100.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/5/ROOT-1-130821370603849932
ThreadIdentity : PAGROUP\david
WindowsIdentity : PAGROUP\david

Category: ErrorLog
Priority: 0
EventId: 90030
Severity: Error
Title:Enterprise Library Exception Handling
Machine: DAVID-PC8
App Domain: /LM/W3SVC/5/ROOT-1-130821370603849932
ProcessId: 5332
Process Name: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Microsoft.VisualStudio.Web.Host.exe
Thread Name:
Win32 ThreadId:3412
Extended Properties:
----------------------------------------
----------------------------------------
Timestamp: 23/07/2015 14:57:52
Message: HandlingInstanceID: f5d0b028-d55c-4b31-a0e6-c0f7576e9389
An exception of type 'System.NullReferenceException' occurred and was caught.
-----------------------------------------------------------------------------
07/23/2015 15:57:52
Type : System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Object reference not set to an instance of an object.
Source : Telerik.Sitefinity
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : Void VerifySectionRegistered(System.Type)
HResult : -2147467261
Stack Trace :    at Telerik.Sitefinity.Configuration.Config.VerifySectionRegistered(Type sectionType)
   at Telerik.Sitefinity.Configuration.Config.GetSectionInternal(Type sectionType, Boolean safeMode)
   at Telerik.Sitefinity.Configuration.Config.GetSectionPrivate(Type sectionType, Boolean safeMode)
   at Telerik.Sitefinity.Configuration.Config.GetSectionPrivate[TSection](Boolean safeMode)
   at Telerik.Sitefinity.Localization.ResourceManager.get_ProvidersSettings()
   at Telerik.Sitefinity.Data.ManagerBase`1.GetProvidersSettings()
   at Telerik.Sitefinity.Data.ManagerBase`1.Initialize()
Additional Info:
MachineName : DAVID-PC8
TimeStamp : 23/07/2015 14:57:52
FullName : Telerik.Sitefinity.Utilities, Version=7.0.5100.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/5/ROOT-2-130821370705002368
ThreadIdentity : PAGROUP\david
WindowsIdentity : PAGROUP\david

Category: ErrorLog
Priority: 0
EventId: 90030
Severity: Error
Title:Enterprise Library Exception Handling
Machine: DAVID-PC8
App Domain: /LM/W3SVC/5/ROOT-2-130821370705002368
ProcessId: 5332
Process Name: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Microsoft.VisualStudio.Web.Host.exe
Thread Name:
Win32 ThreadId:3412
Extended Properties:
----------------------------------------
----------------------------------------
Timestamp: 23/07/2015 14:58:15
Message: HandlingInstanceID: 20d4e5d0-7aa6-4098-bf59-903f81b0060d
An exception of type 'System.NullReferenceException' occurred and was caught.
-----------------------------------------------------------------------------
07/23/2015 15:58:15
Type : System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Object reference not set to an instance of an object.
Source : Telerik.Sitefinity
Help link :
Data : System.Collections.ListDictionaryInternal
TargetSite : Void VerifySectionRegistered(System.Type)
HResult : -2147467261
Stack Trace :    at Telerik.Sitefinity.Configuration.Config.VerifySectionRegistered(Type sectionType)
   at Telerik.Sitefinity.Configuration.Config.GetSectionInternal(Type sectionType, Boolean safeMode)
   at Telerik.Sitefinity.Configuration.Config.GetSectionPrivate(Type sectionType, Boolean safeMode)
   at Telerik.Sitefinity.Configuration.Config.GetSectionPrivate[TSection](Boolean safeMode)
   at Telerik.Sitefinity.Localization.ResourceManager.get_ProvidersSettings()
   at Telerik.Sitefinity.Data.ManagerBase`1.GetProvidersSettings()
   at Telerik.Sitefinity.Data.ManagerBase`1.Initialize()
Additional Info:
MachineName : DAVID-PC8
TimeStamp : 23/07/2015 14:58:15
FullName : Telerik.Sitefinity.Utilities, Version=7.0.5100.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/5/ROOT-3-130821370898227896
ThreadIdentity : PAGROUP\david
WindowsIdentity : PAGROUP\david

Category: ErrorLog
Priority: 0
EventId: 90030
Severity: Error
Title:Enterprise Library Exception Handling
Machine: DAVID-PC8
App Domain: /LM/W3SVC/5/ROOT-3-130821370898227896
ProcessId: 5332
Process Name: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Microsoft.VisualStudio.Web.Host.exe
Thread Name:
Win32 ThreadId:10888
Extended Properties:
----------------------------------------

Posted by Community Admin on 29-Jul-2015 00:00

Hello David,

Looking on the error logs there is some data when getting configuration but in order to inspect what causing it I will need to debug your project locally as the error is very general and is hard to define what casing it.

So i would recommend you to open a support ticket for the issue in order to continue its deeper investigation..

Regards,
Svetoslav Manchev
Telerik

 
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
 

This thread is closed