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

Chrome Not Working #298

Closed
jiffydos opened this Issue Mar 28, 2016 · 15 comments

Comments

Projects
None yet
3 participants
@jiffydos

jiffydos commented Mar 28, 2016

Hello All,

Since about 2.1.4 I am no longer able to use a chrome browser to use facilemanger. Many of the buttons just do not do anything. I have tried using chrome on a Windows 10 PC, Windows 8.1 PC and latest MAC OS. Chrome and the OS are up-to-date in all cases. Safari and Firefox (on both platforms) work fine, so I'm using that for now. But, I had planned to deploy this to end users for DNS management. Not supporting Chrome would be a deal breaker.

Thanks!

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented Mar 28, 2016

This is the first I've heard of Chrome not working once the user is logged in. In fact, 95% of the development of fM is done with Chrome. However, it's done with either Windows 7 or Mac OS 10.6. Which version(s) of Chrome do you see issues with?

I have confirmed Version 49.0.2623.87 m on Win7 works.

@jiffydos

This comment has been minimized.

jiffydos commented Mar 29, 2016

Hello,

Thanks for your response. I realize that you primarily use Chrome which is where my confusion lies. Very odd indeed.

Why such an old version of Mac OS?

My version of Chrome on MAC OS X 10.11.14 is:

Version 50.0.2661.49 beta (64-bit)

My Version of Chrome on Windows 10 is:

Version 49.0.2623.110 m

Both have the same issue. For example, under forward domains, you cannot click the + sign to add more domains. You click it and all it does is add a # to the end of the URL and nothing else happens.

Thanks for your help!

Dave

On Mar 28, 2016, at 3:37 PM, WillyXJ notifications@github.com wrote:

This is the first I've heard of Chrome not working once the user is logged in. In fact, 95% of the development of fM is done with Chrome. However, it's done with either Windows 7 or Mac OS 10.6. Which version(s) of Chrome do you see issues with?

I have confirmed Version 49.0.2623.87 m on Win7 works.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented Mar 29, 2016

Hi Dave,

First, I meant Mac OS 10.8 - which is still several years old by now, but in my opinion, it's the last good version and I haven't had a need to upgrade (yet).

Second, I've upgraded Chrome on my Win7 box to 49.0.2683.110 m and the webapp still works. Adding domains and other things require jQuery (javascript). Could you please confirm your browser has javascript enabled?

image

@jiffydos

This comment has been minimized.

jiffydos commented Mar 29, 2016

Interesting… is there any chance it can be server side? (Note that it does work fine in the latest Firefox on both machines).

Yes… I do have that enabled on my Chrome browsers:

[cid:9C3950E9-518B-4602-8195-6C601E5AB389]

Dave

On Mar 29, 2016, at 10:47 AM, WillyXJ <notifications@github.commailto:notifications@github.com> wrote:

Hi Dave,

First, I meant Mac OS 10.8 - which is still several years old by now, but in my opinion, it's the last good version and I haven't had a need to upgrade (yet).

Second, I've upgraded Chrome on my Win7 box to 49.0.2683.110 m and the webapp still works. Adding domains and other things require jQuery (javascript). Could you please confirm your browser has javascript enabled?

[image]https://cloud.githubusercontent.com/assets/1309591/14112127/b213cd3c-f58a-11e5-8796-eccf15d8ef5b.png


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHubhttps://github.com//issues/298#issuecomment-202933779

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented Mar 29, 2016

Hi Dave,

If you watch your web server logs while trying to add a new domain, you should see one or more requests hit your logs if the client (Chrome) does send the request. You could try using an incognito window to see if that yields different results - this wouldn't be the fix, but perhaps point in the right direction. Something else you can try is to flush your Chrome browser cache - maybe you have some bad cache.

@jiffydos

This comment has been minimized.

jiffydos commented Mar 29, 2016

Hello,

Watching the apache logs show nothing requested at all when clicking the + to add another forward zone…. no matter how many times I click it.

I cleared the browser cache without success and even tried incognito mode, which also did nothing.

Very perplexing.

Dave

On Mar 29, 2016, at 2:29 PM, WillyXJ <notifications@github.commailto:notifications@github.com> wrote:

Hi Dave,

If you watch your web server logs while trying to add a new domain, you should see one or more requests hit your logs if the client (Chrome) does send the request. You could try using an incognito window to see if that yields different results - this wouldn't be the fix, but perhaps point in the right direction. Something else you can try is to flush your Chrome browser cache - maybe you have some bad cache.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHubhttps://github.com//issues/298#issuecomment-203039385

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented Mar 29, 2016

So this is definitely a client-side issue. On your zones page, could you please view the source and provide me with the ... section?

The most important part is these two lines that should be at the end:

<script src="/fM/server/fm-modules/facileManager/js/facileManager.php?ver=2.1.5" type="text/javascript" charset="utf-8"></script>
<script src="/fM/server/fm-modules/fmDNS/js/module.php?ver=2.1.8" type="text/javascript" charset="utf-8"></script>

Would you be able to provide me with the content of those two scripts as seen by your Chrome browser?

@peterschen

This comment has been minimized.

Contributor

peterschen commented Mar 30, 2016

I think I had the same problem. The thing is that the webserver answers the request with the wrong content-type. Instead of text/javascript there is something flunky like text coming from the webserver. I've added a header("Content-Type: text/javascript");to those two files and since then it works flawlessly.

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented Mar 30, 2016

@peterschen Did you put that line just before the echo statement?

@jiffydos Could you please test peterschen's fix to see if the issue is resolved? If so, I'd like to put the fix in the code.

@peterschen

This comment has been minimized.

Contributor

peterschen commented Mar 30, 2016

I put it between the require_once and echo statements.

@jiffydos

This comment has been minimized.

jiffydos commented Mar 30, 2016

Hello All,

What two files are we talking about. Sorry to not understand.

Dave

On Mar 30, 2016, at 12:06 PM, Christoph Petersen <notifications@github.commailto:notifications@github.com> wrote:

I put it between the require_once and echo statements.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHubhttps://github.com//issues/298#issuecomment-203505320

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented Mar 30, 2016

Hi Dave,

On your web server, these two files:

<docroot>/server/fm-modules/facileManager/js/facileManager.php
<docroot>/server/fm-modules/fmDNS/js/module.php

Please add header("Content-Type: text/javascript"); between the require_once and echo statements and see if that resolves the issue you have.

@jiffydos

This comment has been minimized.

jiffydos commented Mar 30, 2016

Excellent! yes! that fixed it.

Dave

On Mar 30, 2016, at 2:44 PM, WillyXJ <notifications@github.commailto:notifications@github.com> wrote:

Hi Dave,

On your web server, these two files:

/server/fm-modules/facileManager/js/facileManager.php
/server/fm-modules/fmDNS/js/module.php

Please add header("Content-Type: text/javascript"); between the require_once and echo statements and see if that resolves the issue you have.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHubhttps://github.com//issues/298#issuecomment-203573502

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented Mar 30, 2016

Great! Official fix will be included in the next release.

@jiffydos Thanks for the report!
@peterschen Thanks for the fix!

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented Apr 25, 2016

v2.2 has been released and contains this fix.

@WillyXJ WillyXJ closed this Apr 25, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment