bobthecow / genghis

The single-file MongoDB admin app
http://genghisapp.com
MIT License
1.45k stars 166 forks source link

I see no mongo servers #180

Open ghost opened 10 years ago

ghost commented 10 years ago

I installed the unpacked zip in ~/html/genhigs

In this dir I use .htaccess:

RewriteEngine On ``` ## Uncomment and update the path if Genghis is not in your web root. RewriteBase /genghis ## Use pretty URLs RewriteCond %{REQUEST_FILENAME} !-f RewriteRule (.*) genghis.php/$1 [L,QSA] ``` ##

I can access https:///genghis/genghis.php

I see a page with a Gengis Logo top left and the Text:

Genghis, by Justin Hileman.

Keyboard shortcuts available

but nothing else. No Navigation, so Server selction. What is my fault?

bobthecow commented 10 years ago

Does the page have any style? Do you see plain text, or a top bar and grey background and styled Genghis logo?

ghost commented 10 years ago

This afternoon I got a page without the welcome banner.

Now I open and see this.

What have I to enter to add my server?

Best Charly


Von: Justin Hileman [mailto:notifications@github.com] Gesendet: Dienstag, 8. Juli 2014 16:56 An: bobthecow/genghis Cc: oehlrich Betreff: Re: [genghis] I see no mongo servers (#180)

Does the page have any style? Do you see plain text, or a top bar and grey background and styled Genghis logo?

Reply to this email directly or view https://github.com/bobthecow/genghis/issues/180#issuecomment-48348149 it on GitHub. https://github.com/notifications/beacon/2545191__eyJzY29wZSI6Ik5ld3NpZXM6Qm VhY29uIiwiZXhwaXJlcyI6MTcyMDQ1MDU3NywiZGF0YSI6eyJpZCI6MzY0NjkzODR9fQ==--2605 0a70662801a6f8b6e42563322d36ea965062.gif

bobthecow commented 10 years ago

Do you mind posting a screenshot?

ghost commented 10 years ago

Well, I don't how to put in an screenshot here. My newest finding is, that it seems to be an IE11 issue because the output differs between Fireforx and IE11. In Firefox I get an Image with the thext "Welcome to Genghis The single-file MongoDB admin app" In IE11 I do not see this! Using Firefox I also see a box with "Servers" and an error that it can not connect to "localhost:27017". How can I add a new Server or Change the Default Connection to use "localhost:20623"?

ghost commented 10 years ago

Well, further investigations and I entered: mongodb://username:password@localhost:20623 and I get the connection, see databases and collections, Yippiiii!!

So my problem was drilled down to an IE11 issue.

bobthecow commented 10 years ago

I'm glad you worked it out :)

I'll leave this issue open until I get a chance to check out IE11 and see what's up. Thanks for letting me know.

cedx commented 10 years ago

Same issue here: Genghis is not working with IE11. In the JS console, I can see the following error: "jQuery is undefined".

The related call is located in the HEAD tag: jQuery(function() { Genghis.boot(''); });

bobthecow commented 10 years ago

jQuery is definitely defined in the JS asset. Are you seeing a 404 or other error when the app gets script.js?

cedx commented 10 years ago

All HTTP requests get a 200 status code, except for scripts.js: a 404 code is returned, and the MIME type is marked as application/json. If a use Chrome or Firefox, I get the expected 200 code and application/x-javascript type.

cedx commented 10 years ago

Some more info: if I try to download the file manually (typing http://my.genghis.vhost/assets/script.js?v=2.3.11 in IE address bar), the content seems OK (400 Kb containing Modernizr, Backbone, etc.).

If I create an assets folder and put the script.js file Inside, in order to let the Web server handle it instead of genghis.php script, the jQuery error disappears but I get another error : A "url" property or function must be specified (this error is also raised when using Chrome or Firefox, so it may be another issue or related to my MongoDB install).

So I think the problem is related to the way genghis.php script serve the assets. My Web server delivers JS files as application/javascript instead of application/x-javascript. Maybe a hidden bug in IE11 with the application/x-javascript MIME type?