Hey guys,

I just updated my yui menu module and I lost my dropdown menus, I put the old one back and they appeared again, would you please check this?

I would like to have my modules up to date.

Comments

jfha73’s picture

Title: Dropdown disspeared after update to new version » Dropdown dissapeared after update to new version

Hey guys, any news on this??? I still can't get my dropdown menus to work with this module's latest version (1.2).

pebosi’s picture

Which Version did you used before? Is it working if you downgradE?

Regards

bakyildiz’s picture

Status: Active » Needs review

Please use YUI 1.3 release & YUI MENU 1.2 release for production sites.
Sorry for inconvenience.

jfha73’s picture

It works perfectly fine with versions 1.1 of both, but when I update to YUI 1.3 and YUI menu 1.2 they stop working.

Renee S’s picture

The problem seems to be with the way it's loading, I get: Uncaught ReferenceError: YAHOO is not defined. It's putting the YUI stuff before any other scripts, and the YAHOO.util.Event.onContentReady("productsandservices", function () { declaration is throwing an error.

Hope that helps.

ropazo’s picture

I had spend a lot of time, buy I can´t make it work. I don't see the YUI Menu drop down.

I downgraded to "YUI 6.x-1.1-rc1" and "YUI Menu 6.x-1.1-rc3".

I have a local copy of YUI. When I reference it by full path (http://www.mysite.com/sites/files/lib/yui)... It works!!!

But, if I try to use a relative path (sites/lib/yui), It stop working. I have tried many combinations:

  • Change directory name to sites/lib/yui-2.6.0
  • Configure "Location of YUI library" as " sites/lib/yui-2.6.0"
  • Configure "Location of YUI library" as "sites/lib"

How do you do to make it work?

jfha73’s picture

All I can say is that when I disabled version 1.2 I also uninstalled it, to make sure it deleted its entries in the database, not just disabled, erased the YIU module folders (YUI and YIU menu) and copied the old 1.1 back, re-enabled them and it worked for me.

ropazo’s picture

Thanks a lot, it works.
After spending so many time in such an easy task, I have these suggestions:

  • Put "YUI 1.1-1 release & YUI MENU 1.1-1" as "Downloads - Recommended releases". The sentence "Please use YUI 1.1-1 release & YUI MENU 1.1-1 release for production sites. Sorry for inconvenience" is not enough because a structured grid and an automatic Drupal recommendations gives people to down load a wrong version.
  • Validate "YUI Common Settings -> Location of YUI library". These can be done by checking the presence of a selected file. Actually it's too easy to fail in this task and too hard to know you have failed. Some possible errors are including the "build" directory in the path, not including de YUI directory in the path, having a wrong version of YUI and others.
  • Discard the presence of "/" at the beginning and ending of "YUI Common Settings -> Location of YUI library". Making these automatic would make an easier task to configure "YUI Common Settings -> Location of YUI library".

I would like to contribute making these changes by my self, but at these time I don't have the required knowledge to be a contributor, I hope I'll be able to do such kind of work in a while.

Best regards,

Roberto Opazo
Acepta.com - Firma y factura electrónica

biteuljiouce’s picture

hello,

it happened to me with drupal 6.22 when I updated YUI and YUI Menu to :
YUI 1.3
YUI Menu 1.2
with a theme from template monster (#30846) (Jensen).

as Reinette said (#5)
I move the following code :
<?php print $head ?>
just before
</head>

It worked :)

PS :
have to do with :
drupal_set_html_head($script_body_to_html_head);
in file : yuimenu.module
causing the script being put above css and other js calls.