Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37670

YUI combo not found

$
0
0
by edu g.  

Hi,

I created a YUI extension in my theme. It works in localhost but when I deployed in my pre-production server, Moodle can't found the file.

My extension has name:

YUI.add('moodle-theme_planet-togglelistbox', function(Y) [...]

I explored the html generated in my pages to include the javascript of this module. The URL it generates is

http://example.org/moodle/theme/yui_combo.php?moodle/312/theme_planet/yui/togglelistbox/togglelistbox.js

and it says that my class is undefined. I opened the url in the browser and I got the contents of the file that are sent to my templates:

// Combo resource moodle/312/theme_planet/yui/togglelistbox/togglelistbox.js not found!

clearly my class is undefined. instead of my code there is an error message sad

this URL, in my localhost environment, has 308 instead of 312. I don't know how this number is generated.

My file has the correct permissions and owner in the server (LAMP). my dev environment, however, is windows. I thought about common problems like permissions, encoding, not uploading the correct files, etc.

I've been reading through and I saw that yui_combo has had problems in the past. I couldn't figure out what is wrong with my installation. I also tried using on-line YUI libraries.

any hints?

 


Viewing all articles
Browse latest Browse all 37670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>