Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: bakyildiz commentedThanks for reference. Please try the yui version 2.3. Please feed back.
Comment #2
iwankgb CreditAttribution: iwankgb commentedI've just updated yui and yui_menu, enabled normal caching and everything seems to be fine :]
Comment #3
bakyildiz CreditAttribution: bakyildiz commentedComment #4
bakyildiz CreditAttribution: bakyildiz commentedFixed. Use yui 6.x-1.1-1 and yuimenu 6.x-1.1-1
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #6
mustafau CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: mustafau commentedComment #9
bakyildiz CreditAttribution: bakyildiz commentedFixed in 5.x-1.x-dev and will ready in next release.
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.