Only Firefox not loading Moodle

Only Firefox not loading Moodle

Robb Kerr -
回帖数:25

Hi all, I have recently installed Moodle on Solaris 10. I am using one of the standard themes, but swapped the logos, and everything appears to be fine with all other settings. The problem is that firefox is not correctly loading the site: HERE The site looks fine on both Safari and IE, the problem seems to only be with FIrefox. Also all other Moodle sites load fine. I do not even know where to start so any advice would be greatly appreciated...
Thanks
Robb

回复Robb Kerr

Re: Only Firefox not loading Moodle

Howard Miller -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
What does "not loading" mean? What does it do (even a blank page is a useful clue)?
回复Howard Miller

Re: Only Firefox not loading Moodle

Robb Kerr -
Sorry, I should have been more clear. It is loading, and the text is loading (as well as the forms for username, password, etc.). The problem is that they are not organized on the page. The site is available at http://edu.cnue.ac.kr/english

Other moodle sites are loading fine. I have checked the site from a Mac and XP computer. I have attached a screenshot to show how the site is loading--the text and theme are not in the correct places.

Thanks for any help, and do not hesitate to ask for more information if required.

Regards
Robb
回复Robb Kerr

Re: Only Firefox not loading Moodle

Colin Fraser -
Documentation writers的头像 Testers的头像
Yes, I had a look at this in both IE and Firefox, and I'll have to admit, there seems nothing different in the coded pages, well, nothing I could see at a cursory glance. In short... dunno...
回复Robb Kerr

Re: Only Firefox not loading Moodle

Mauno Korpelainen -

One of the classic reasons for this behaviour is empty line (or some whitespaces) in config.php after last

?>

回复Mauno Korpelainen

Re: Only Firefox not loading Moodle

Colin Fraser -
Documentation writers的头像 Testers的头像
Had another look and you are using the formal white themes, have you changed something there?
回复Colin Fraser

Re: Only Firefox not loading Moodle

Robb Kerr -
Yes, I changed to formal white to check to see if there is anything that is different... no luck, still the same issue. One of the largest inconveniences is that I use a Mac, and Safari doesn't load the HTML editor, only Firefox will...
I will get one of the admins to take a look at the config.php file tomorrow and hope that there is a stray line somewhere...

Thanks for the suggestions.
回复Robb Kerr

Re: Only Firefox not loading Moodle

E. L. Cooper -
One question- do any standard themes load for you in firefox?
回复E. L. Cooper

Re: Only Firefox not loading Moodle

Robb Kerr -
No standard themes are working. They produce the same result.

Thanks,
Robb
回复Robb Kerr

Re: Only Firefox not loading Moodle

Robb Kerr -
Also, I checked the config.php file, and there are no spaces or lines after the ?> ...
回复Robb Kerr

Re: Only Firefox not loading Moodle

Colin Fraser -
Documentation writers的头像 Testers的头像
... if the HTMLEditor is not loading in Safari, or in IE, then there I would suggest something else is going on. Do you have any extraneous or unusual code in the config.php or index.php?Was there any issue at all in the setup process? I do not know how Solaris is configured to use web servers, so I assume it is using Apache, or is it a Sun native? Long shot that one, but never know. I am assuming that both PHP and MySQL were the products of choice and they are set up and running properly. Perhaps you need a look little further afield.

You set up a test server then migrated it? Or was it a straight installation to a production site?

回复Colin Fraser

Re: Only Firefox not loading Moodle

Robb Kerr -
Hi Colin,

The HTML editor is working fine in IE. The problem is that Safari does not allow the HTML editor to load (this is a constant with Safari, not only for me or my site). Solaris is running Apache, PHP and MySQL, but no lines of code have been added. Installation was normal, etc. I keep thinking that config.php might be the answer, and I will get the admin guys to look it over again (I don't have access to check). But if you, or anyone else, thinks of anything....


Thanks again.
回复Robb Kerr

Re: Only Firefox not loading Moodle

Howard Miller -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
This is very odd...

I can certainly confirm the problem but I'm rather annoyed with myself that I can't see why 微笑 Using Firebug, it is telling me that there are no styles but viewing the source I can see the links. I can click through the links and load the CSS pages which look OK.

Very odd...

So, what *did* you change? Even if it seems unrelated to this problem. What non-core code of any kind have you added (or taken away). Anything!
回复Howard Miller

Re: Only Firefox not loading Moodle

Dale Davies -
Particularly helpful Moodlers的头像 Plugin developers的头像
Hmm, seems like the style sheet is not being applied in Firefox. It loads fine when you browse directly to it, its a guess but I'd say this has something to do with the redirect to here http://203.234.120.27/english/login/index.php.

Perhaps (somehow) because of this Firefox is not loading/applying the stylesheet? A longshot but not sure what else to suggest.

回复Dale Davies

Re: Only Firefox not loading Moodle

Howard Miller -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
Well.... I tried it with the error console in Firefox and it shows no errors.

Again in Firebug, it shows the two GETs for the styles.php loading successfully. Return code 200.

Another possibility I have seen is a misconfigured server returning the wrong mime type. Not this time though.... both files are happily text/css.

A puzzle wrapped in an enigma!
回复Dale Davies

Re: Only Firefox not loading Moodle

Dale Davies -
Particularly helpful Moodlers的头像 Plugin developers的头像
On secod thoughts Im not so sure of that now, when you browse directly there is still doesnt get applied. But it does seem to have loaded. Hmm.
回复Dale Davies

Re: Only Firefox not loading Moodle

Howard Miller -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
I don't like the look of this in the headers being returned for the style sheet....

Content-Type: text/css;charset=euc_kr

Which is presumably Korean?? In particular, it's not an acceptable charset in the GETs Accept-Charset header (ISO-8859-1, utf-8)

So... my money is on a misconfigured web server.
回复Howard Miller

Re: Only Firefox not loading Moodle

Robb Kerr -
It is at least comforting to see that I am not the only one lost on this one...

Non-code changes:
Installed:
Nanogong module
Quickmail
email list (and removed it)
Installed a few themes
Changed the logos for formal white theme. No themes are loading correctly.

I have not made any changes to the php, any scripts, etc.

Hope that helps.
回复Robb Kerr

Re: Only Firefox not loading Moodle

Howard Miller -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
Rob,

See above. Pretty sure it's your Apache config returning a bogus charset. I'm out of my depth re. how to fix it though.

You probably need to start here (or something like it):

http://httpd.apache.org/docs/1.3/mod/mod_mime.html
回复Howard Miller

Re: Only Firefox not loading Moodle

Robb Kerr -
Thanks for the suggestion. That would be well beyond me as well, but I will put it to our sys admin. I am still left wondering why it is only with our Moodle site, not with any other though...
回复Robb Kerr

Re: Only Firefox not loading Moodle

Howard Miller -
Core developers的头像 Documentation writers的头像 Particularly helpful Moodlers的头像 Peer reviewers的头像 Plugin developers的头像
Moodle is a bit strange in that the css file is generated on the fly by a php script. I guess it is possible that has something to do with it. The headers for the CSS file are created by the PHP script but do not contain a charset (as far as I can see). This makes me think that something is rewriting the headers and that can only really be the web server.

That charset came from somewhere - it's probably unusual enough to track down where it's getting set and work back from there.

I wouldn't 100% discount a Moodle problem - I just don't think so.
回复Howard Miller

Re: Only Firefox not loading Moodle

E. L. Cooper -

Thr first thing I would try is an upgrade to latest weekly version. It may be as simple as a corrupt download or install.

Then then I would look into Apache and installed libraries.

回复E. L. Cooper

Re: Only Firefox not loading Moodle

Robb Kerr -
Hi,

Not sure if anyone is still interested in trying to isolate this issue, but I am! I am weary of installing an upgrade as we are mid-session right now, and I don't want any interruptions (I have never done an upgrade and am thus worried it would require a lot of time if something went wrong).
So, is there anything else that I can do short of an upgrade?

Thanks again for the suggestions thus far,

Robb
回复Robb Kerr

Re: Only Firefox not loading Moodle

Jet Batung Bakal -
I see that this problem is more on connection on website try again to install another one.... And observe the procedure on how you do it maybe you miss something that I could not figure right now... Again more on config.php and connecting to website.. check both of them and also your server were your moodle is installed....
回复Robb Kerr

Re: Only Firefox not loading Moodle

Alan Hovden -
I downloaded the moodle-cnue.php page and the english/theme/cnue_custom/styles.php page to try and see if I could fix your problem locally. I pointed to styles.php directly in the css link and the styles loaded. Have you checked the file path names? Are there capitals missing? Or spaces? IE is more lenient with case and spaces than Firefox. Just a thought as it seems to work for me.
回复Robb Kerr

Re: Only Firefox not loading Moodle

M. N. -
I think Howard is correct that the character set is the problem. I can see with Firebug that the HTTP request for the CSS is successful however when I go to the CSS tab for styles.php it says there are no styles rules. Clicking edit on the CSS tab will show the contents of the CSS, though so it seems like the browser cannot parse the styles because character set sent by your server is invalid.

The character set should have a hyphen ('euc-kr') instead of an underscore as it is now ('euc_kr') according to the official character sets at http://www.iana.org/assignments/character-sets