Skip to content
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

Blank home page #92

Open
bdecarne opened this issue Nov 8, 2013 · 14 comments
Open

Blank home page #92

bdecarne opened this issue Nov 8, 2013 · 14 comments

Comments

@bdecarne
Copy link

bdecarne commented Nov 8, 2013

Hi,

On my 0.90.6 installation with only 1 node and 1 index i've got a blank home page. There is a javavascript error in app.js line 3038 :

Uncaught TypeError: Cannot read property 'attributes' of undefined 

Content of the "node" object :

node: Object
     cluster: undefined
     master_node: false
     name: "Unassigned"
     routings: Array[1]
     stats: undefined
@mobz mobz closed this as completed in a32f982 Nov 8, 2013
kulikov pushed a commit to kulikov/elasticsearch-head that referenced this issue Dec 3, 2013
@enumag
Copy link

enumag commented Jun 9, 2014

Hi, I also encountered this issue just now. Not always though. Sometimes ES head loads fine but in about 9/10 cases I got blank page.

Error from debugger says: TypeError: this.statEl.text(...).css is not a function on app.js:3996.

The whole line looks like this:

this.statEl.text( i18n.text("Header.ClusterNotConnected") ).css("background", "grey");

I've installed ES head just today so it should be up to date.

@enumag
Copy link

enumag commented Jun 9, 2014

Also it seems to be Firefox-only issue.

@huchenme
Copy link

this issue appears again in Chrome

@philipskokoh
Copy link
Collaborator

@huchenme: which elasticsearch version are you using?

@philipskokoh philipskokoh reopened this Jan 29, 2016
@huchenme
Copy link

2.1.1

@philipskokoh
Copy link
Collaborator

If you open Chrome developer tools (Ctrl+Shift+I), do you see any error messages?

@huchenme
Copy link

@philipskokoh I see Uncaught TypeError: this.statEl.text(...).css is not a function error

@philipskokoh
Copy link
Collaborator

Hmm.. I tested using elasticsearch 2.1.1. It works well on my side.

@philipskokoh
Copy link
Collaborator

@huchenme: I am unable to replicate your problem. Any more messages you see before that error?
You can try to install the elasticsearch-head plugin again, you may not install the latest version.

@huchenme
Copy link

huchenme commented Feb 1, 2016

@philipskokoh no, it is working in Safari, but in Chrome it is blank, console only have that message

@jthiesse
Copy link

jthiesse commented Feb 8, 2016

@philipskokoh I have the exact same behavior as @huchenme. Strange error in Chrome but loads fine in Safari. Version 2.1.1

@andyskipper
Copy link

I have this issue in Chrome as well - ES version 2.2.0, fresh install 20 minutes ago.

screen shot 2016-02-21 at 13 27 09

@andyskipper
Copy link

Just found the cause of this - if you have a Chrome extension such as Proper Blocker, it adds a script tag to the body. The i18n library used for translations mistakes this extra script tag for the one defining its dataset-langs attribute, hence can't load the translation strings.

The i18n library included is pretty fragile, and I'd suggest future versions look at alternatives.

TL;DR Disable Chrome extensions such as adblockers temporarily, as they may be inserting script tags which kill the localisation.

@andyskipper andyskipper mentioned this issue Feb 22, 2016
@mobz
Copy link
Owner

mobz commented Feb 22, 2016

@andyskipper I wonder if you could try running es with this patch to see if it fixes the script injection problem.
fix.92.patch.txt

( you can apply the patch with git apply fix.92.patch.txt in the root folder of elasticsearch-head

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants