YUI not loading in fresh Moodle 2.3.2 installation

YUI not loading in fresh Moodle 2.3.2 installation

by Greg J Preece -
Number of replies: 5

I've installed a fresh copy of 2.3.2 for testing against (the very latest build). It's running on IIS/MS SQL 2005 at present. The installation went fine, no errors or warnings at all. However, when I get to the homepage, none of the menus will expand.

Pulling up Firebug, I see that the YUI files are basically not loading. Changing themes does not appear to affect this. Any ideas where I might have gone wrong, or what might be causing it? The files it's trying to load do appear to be present in lib/yui/2.9.0/build/dom and other locations that seem correct. Is this just a straight-up bug?

Firebug's errors below. TIA



"NetworkError: 404 not found - http://10.95.104.204/moodles/2_3/theme/yui_combo.php?2.9.0/build/assets/skins/sam/skin.css" "NetworkError: 404 not found - http://10.95.104.204/moodles/2_3/theme/yui_combo.php?3.5.1/build/cssreset/reset-min.css&3.5.1/build/cssfonts/fonts-min.css&3.5.1/build/cssgrids/grids-min.css&3.5.1/build/cssbase/base-min.css" "NetworkError: 404 not found - http://10.95.104.204/moodles/2_3/theme/yui_combo.php?2.9.0/build/yahoo/yahoo-min.js&2.9.0/build/dom/dom-min.js" "NetworkError: 404 not found - http://10.95.104.204/moodles/2_3/theme/yui_combo.php?3.5.1/build/yui/yui-min.js" "NetworkError: 404 not found - http://10.95.104.204/moodles/2_3/theme/yui_combo.php?2.9.0/build/assets/skins/sam/skin.css"
Average of ratings: -
In reply to Greg J Preece

Re: YUI not loading in fresh Moodle 2.3.2 installation

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Silly question.... have you checked the 'missing' files are actually there (stranger things!). Also, check your IIS error log (or whatever they call it) to see if there is more of a clue.
In reply to Howard Miller

Re: YUI not loading in fresh Moodle 2.3.2 installation

by Greg J Preece -

The files are definitely in place. It's quite odd, but I'm wondering if it has something to do with Windows file paths as opposed to Linux ones. On my other testing server, which runs Ubuntu 10.04, the exact same installer works just fine.

In reply to Greg J Preece

Re: YUI not loading in fresh Moodle 2.3.2 installation

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

you might also want to search for 'slasharguments' in the admin settings and turn it off.

In reply to Greg J Preece

Re: YUI not loading in fresh Moodle 2.3.2 installation

by Greg J Preece -

So after narrowing the issue down a bit, I had another search on the Moodle website and came up with this entry in the tracker:

http://tracker.moodle.org/browse/MDL-28382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#issue-tabs


Seems to be spot-on, but the fixes don't appear to be working for me. cgi.fix_pathinfo is set to 1 in my PHP ini file. Petr Skoda says in the comment thread on the tracker that he wrote a patch that should solve the issue, but the thread relates to IIS7, so I am wondering if this is related to me running IIS6.


Anyway, I added the $CFG->yuicomboloading = false; option to my config.php file, and that did have an effect. Now instead of getting five 404s when the page loads, I only get one! Looks to me like something is missing a conditional that checks for that parameter. The file that still doesn't load relates to navigation, which is a real pain because that JS controls the main menu! If I go to /admin/settings.php?section=ajax YUI combo loading shows as off, with an additional "defined in config.php" highlight, so it's definitely picking up on the setting at boot.


Time to go code diving!

In reply to Greg J Preece

Re: YUI not loading in fresh Moodle 2.3.2 installation

by baraa abd el-hady -

go to /admin/settings.php?section=ajax

and chose "Use online YUI libraries "

it will finish your problem.