Line 411 of supercookie.module throws an error if the 'Update manager' in not activated.

    drupal_check_module('supercookie');

Comments

cs_shadow’s picture

Unable to reproduce the issue and AFAIK Update manager module is not required by drupal_check_module().

stopbox’s picture

Thanks for getting back to me.

Weird ... if I go to admin/people/supercookie I get there error message:

sites/all/modules/supercookie/supercookie.module on line 411

unless Update manager is enabled - in which case it doesn't happen.

Other than accessing the config page, the module seems to work fine even with Update manager disabled.

It must be something to do with our site being hosted on an Aegir platform.

natemow’s picture

Interesting. IIRC, Aegir automatically disables non-critical mods in their production environment (dblog, update, views_ui, etc.) ...which is smart, but sometimes irritating.

I'll try to re-create the issue locally and see if there's a possible workaround. In the meantime, you might consider drush vset to configure the mod's settings in your production environment.

badrange’s picture

I just installed the module with 'drush en supercookie' and when I tried to access the address 'admin/people/supercookie', I got the same error:

Fatal error: Call to undefined function drupal_check_module() in /vagrant/current/sites/all/modules/contrib/supercookie/supercookie.module on line 749

No Aegir involved.

  • natemow committed 2a825ae on 7.x-1.x
    Issue #2258019: drupal_check_module requires Update manager module
    
natemow’s picture

Status: Active » Fixed

Fix pushed and available in the 1.5 release.

Status: Fixed » Closed (fixed)

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