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.
I'm doing some tests for compatibility with one problem module, so I do uninstallation of all modules.
While G2 uninstallation I've got:
Fatal error: Undefined constant 'G2\NODETYPE' in Z:\home\paris7.kz\www\emploi\sites\all\modules\g2\g2.install on line 206
I have G2 7.x-1.x-dev of 2011-02-25
Comments
Comment #1
fgmConfirmed: in current D7,
module_enable()
does amodule_load_include()
of the module before doing amodule_load_install()
to invoke thehook_install()
implementation, butdrupal_uninstall_modules()
does not, so g2_uninstall() was missing the G2 namespace constants from the module file.Fixed in today's dev version.
Comment #2
clashar CreditAttribution: clashar commentedfgm, thanks for quick fix