# Dashboard iframe triggers error

**URL:** <https://discuss.elastic.co/t/dashboard-iframe-triggers-error/91724>\
**Category:** Kibana\
**Created:** [July 4, 2017, 7:36am UTC](https://discuss.elastic.co/t/dashboard-iframe-triggers-error/91724 "2017-07-04T07:36:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manoj\_13](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Manoj\_13](https://discuss.elastic.co/u/Manoj_13)\
**Post date:** [July 4, 2017, 7:36am UTC](https://discuss.elastic.co/t/dashboard-iframe-triggers-error/91724/1 "2017-07-04T07:36:57Z")

</div>

Hi,

We are trying to use Kibana for generating visualisations and using their iframe on to our html pages.But recently when we are getting this error:

**Oops!**  
**Looks like something went wrong. Refreshing may do the trick.**

**Go back or clear your session**

\*\* Fatal Error\*\*  
**Uncaught TypeError: Cannot read property 'length' of undefined**

Can you help me with this?

---

<div class="post-metadata">

**Author:** ![elvarb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elvarb/32/44840_2.png) [@elvarb](https://discuss.elastic.co/u/elvarb)\
**Post date:** [July 4, 2017, 9:42am UTC](https://discuss.elastic.co/t/dashboard-iframe-triggers-error/91724/2 "2017-07-04T09:42:00Z")

</div>

Did you try using the browser developer tools to monitor what is failing?

Also, be aware that if the user can access kibana and view data in kibana he can access the whole elasticsearch cluster with [http://kibanaurl/elasticsearch/](http://kibanaurl/elasticsearch/)

---

<div class="post-metadata">

**Author:** ![Manoj\_13](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Manoj\_13](https://discuss.elastic.co/u/Manoj_13)\
**Post date:** [July 4, 2017, 11:23am UTC](https://discuss.elastic.co/t/dashboard-iframe-triggers-error/91724/3 "2017-07-04T11:23:14Z")

</div>

This is what the debugging console shows ,i couldn't figure this out

 ![](https://us1.discourse-cdn.com/elastic/original/3X/6/d/6da761bd802ef70d1fa8fdc130be81e8c35ec16c.png)

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [July 4, 2017, 11:43am UTC](https://discuss.elastic.co/t/dashboard-iframe-triggers-error/91724/4 "2017-07-04T11:43:59Z")

</div>

Hi @Manoj_13,

the errors visible on the screenshots look rather like follow-up errors. Are there any other exceptions being printed? And which Kibana version are you using?

---

<div class="post-metadata">

**Author:** ![Manoj\_13](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Manoj\_13](https://discuss.elastic.co/u/Manoj_13)\
**Post date:** [July 4, 2017, 12:10pm UTC](https://discuss.elastic.co/t/dashboard-iframe-triggers-error/91724/5 "2017-07-04T12:10:36Z")

</div>

Hi @weltenwort,

No other exceptions are shown up on the debugging console, I am using Kibana 5.0.1 .

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [July 4, 2017, 12:13pm UTC](https://discuss.elastic.co/t/dashboard-iframe-triggers-error/91724/6 "2017-07-04T12:13:16Z")

</div>

Does this happen with only one particular dashboard, with multiple or all of them? Do the dashboards render correctly when accessed in Kibana directly?

---

<div class="post-metadata">

**Author:** ![Manoj\_13](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Manoj\_13](https://discuss.elastic.co/u/Manoj_13)\
**Post date:** [July 4, 2017, 12:15pm UTC](https://discuss.elastic.co/t/dashboard-iframe-triggers-error/91724/7 "2017-07-04T12:15:27Z")

</div>

I have a set of dashboards , i place them in different tabs ,once kibana loads up the present tab shows right data with no errors, but if i move on to rest of the tabs they trigger this error.

All dashboards work fine when accessed in kibana directly.

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [July 4, 2017, 12:30pm UTC](https://discuss.elastic.co/t/dashboard-iframe-triggers-error/91724/8 "2017-07-04T12:30:29Z")

</div>

I suspect that you are experiencing the same effect described here: [https://github.com/elastic/kibana/issues/5810](https://github.com/elastic/kibana/issues/5810)

It seems that placing iframes in elements hidden via javascript is very prone to errors in some browsers. Please make sure that the javascript code and styles that manage your tabs do not initialize their size to 0. Maybe lazily putting the iframes into the tabs when they are activated can work around this.

---

<div class="post-metadata">

**Author:** ![Manoj\_13](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Manoj\_13](https://discuss.elastic.co/u/Manoj_13)\
**Post date:** [July 31, 2017, 9:20am UTC](https://discuss.elastic.co/t/dashboard-iframe-triggers-error/91724/9 "2017-07-31T09:20:02Z")

</div>

Thanks I found the Lazy Load solution quite effective while loading iFrames.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 28, 2017, 9:20am UTC](https://discuss.elastic.co/t/dashboard-iframe-triggers-error/91724/10 "2017-08-28T09:20:29Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
