Closed (fixed)
Project:
Yahoo YUI
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
29 Feb 2008 at 11:09 UTC
Updated:
22 Jun 2008 at 07:42 UTC
When activating cache in "normal" mode (most probably in "aggressive" mode too), the site becomes unaccessible for unregistered users with the following message:
"Fatal error: Call to undefined function: drupal_add_js() in /home/user/www/modules/yui/yui.module on line 33".
There was a similar problem in the gallery module which was fixed in 5.x-2.2: http://drupal.org/node/224598
Comments
Comment #1
bakyildiz commentedThanks for reference. Please try the yui version 2.3. Please feed back.
Comment #2
iwankgb commentedI've just updated yui and yui_menu, enabled normal caching and everything seems to be fine :]
Comment #3
bakyildiz commentedComment #4
bakyildiz commentedFixed. Use yui 6.x-1.1-1 and yuimenu 6.x-1.1-1
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #6
mustafau commentedI think this issue was fixed in a wrong way. You should not include common.inc inside a module file. That will lead to performance issues. Instead you should read suggested fix at http://api.drupal.org/api/function/hook_init/5.
Comment #7
bakyildiz commentedOne point is not clear in my mind. Should i remove the yui_init() function and move the 2 lines to yui_menu() like as follows ? Should it before the if($may_cache) line or after ? By the way many thanks for your advanced support.
Comment #8
mustafau commentedComment #9
bakyildiz commentedFixed in 5.x-1.x-dev and will ready in next release.
Comment #10
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.