I am getting the following error on the status page. I cleared the cache and ran the function drupal_rebuild_theme_registry(). Still the problem is showing up. Please help.

Adv CSS/JS Agg - Closure	Closure theme function issue.labjs_closure
On the performance page clear the cache or just the theme registry if you know how to do that. If this is still an issue open up a bug on the advagg issue queue.
CommentFileSizeAuthor
#5 advagg-closure-1459640.patch540 bytesudvranto

Comments

udvranto’s picture

Using AdvAgg "6.x-1.6+19-dev".

udvranto’s picture

udvranto’s picture

Any suggestion?

udvranto’s picture

Status: Active » Needs review

I think this is what is needed in labjs.module. Please review.

 /**
  * Overrides theme_closure().
  *
  * We don't add script in footer if:
  * - LABjs is enabled;
  * - or both AdvAgg and advagg_closure are enabled.
  */
if (defined('MAINTENANCE_MODE') || (!variable_get('labjs_enabled', TRUE) && !(module_exists('advagg') && variable_get('advagg_enabled', ADVAGG_ENABLED) && variable_get('advagg_closure', ADVAGG_CLOSURE)))) {
  function labjs_closure($main = 0) {
    $footer = implode("\n", module_invoke_all('footer', $main));
    $footer .= drupal_get_js('footer');
    return $footer;
  }
}
udvranto’s picture

StatusFileSize
new540 bytes

Ignore the previous one. This one resolved the problem after a cache clean up.

jcisio’s picture

Status: Needs review » Fixed

Thanks udvranto. Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.