When running drush update-db, the module generated the following errors:
WD php: Notice: Constant AUTO_EXPIRE_NODE_TYPE already defined in require() (line 10 of [error]
/var/www/d6.anything-pages.com/webroot/sites/all/modules/auto_expire/auto_expire.inc).
WD php: Notice: Constant AUTO_EXPIRE_EMAIL already defined in require() (line 11 of [error]
/var/www/d6.anything-pages.com/webroot/sites/all/modules/auto_expire/auto_expire.inc).
WD php: Notice: Constant ADMINISTER_AUTO_EXPIRE already defined in require() (line 14 of [error]
/var/www/d6.anything-pages.com/webroot/sites/all/modules/auto_expire/auto_expire.inc).
WD php: Notice: Constant EXTEND_AUTO_EXPIRE_OWN already defined in require() (line 15 of [error]
/var/www/d6.anything-pages.com/webroot/sites/all/modules/auto_expire/auto_expire.inc).
WD php: Notice: Constant EXTEND_AUTO_EXPIRE_ALL already defined in require() (line 16 of [error]
/var/www/d6.anything-pages.com/webroot/sites/all/modules/auto_expire/auto_expire.inc).
WD php: Notice: Constant AUTO_EXPIRE_DAYS already defined in require() (line 18 of [error]
/var/www/d6.anything-pages.com/webroot/sites/all/modules/auto_expire/auto_expire.inc).
WD php: Notice: Constant AUTO_EXPIRE_WARN already defined in require() (line 19 of [error]
/var/www/d6.anything-pages.com/webroot/sites/all/modules/auto_expire/auto_expire.inc).
WD php: Notice: Constant AUTO_EXPIRE_PURGE already defined in require() (line 20 of [error]
/var/www/d6.anything-pages.com/webroot/sites/all/modules/auto_expire/auto_expire.inc).
Executing uc_recurring_update_6012
These errors are also appearing frequently in my watchdog error log. I am going to fix it and submit a patch.
Comments
Comment #1
lsiden commentedThe following patch fixes the problem:
diff --git a/sites/all/modules/auto_expire/auto_expire.install b/sites/all/modules/auto_expire/auto_expire.inst
index 8a70110..d12d725 100644
--- a/sites/all/modules/auto_expire/auto_expire.install
+++ b/sites/all/modules/auto_expire/auto_expire.install
@@ -6,7 +6,7 @@
* Install, update and uninstall functions for the Auto Expire module.
*/
-require 'auto_expire.inc';
+require_once 'auto_expire.inc';
/**
* Implementation of hook_schema().