When AdvAgg is installed, I can't uninstall JS Aggregator. I get the following error message:
Fatal error: Cannot redeclare phptemplate_closure() (previously declared in /home/bioworld/public_html/sites/all/modules/advagg/advagg.module:226) in /home/bioworld/public_html/sites/all/modules/javascript_aggregator/javascript_aggregator.module on line 89

CommentFileSizeAuthor
#4 advagg-1158440-4.patch1.21 KBmikeytown2

Comments

philbar’s picture

Title: Cannot Uninstall JS Aggrigator » Cannot Uninstall JS Aggregator
mikeytown2’s picture

Category: bug » support

Looks like Javascript Aggregator doesn't play nicely with the closure hack: phptemplate_closure(). I check to make sure the function doesn't exist before trying to define it & I do it in hook_init so it shouldn't run till after the Javascript Aggregator has already been loaded: advagg_init(). If your having issues with getting Drupal to boot up, in your settings.php file add this in at the bottom

$conf['advagg_closure'] = FALSE;

Then uninstall the Javascript Aggregator and remove the line you just added to your settings.php file.

mikeytown2’s picture

Thinking about this situation I can handle it programmatically. When advagg is enabled, if Javascript Aggregator is already enabled I will then varaible_set('advagg_closure', FALSE); That should prevent any WSOD from happening, & i'll throw a warning via drupal_set_message to let the admin know that closure handling had been disabled because Javascript Aggregator is enabled & recommend they uninstall it before enabling advagg closure handling.

mikeytown2’s picture

Status: Active » Fixed
StatusFileSize
new1.21 KB

this patch has been committed. Will fix future installs; but won't help with yours; you need to do the settings.php trick.

Status: Fixed » Closed (fixed)

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