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.
At URL de/node/2/webform/components/7?destination=node/2/webform
in my dblog
Token is installed, but disabled on this site.
Comment | File | Size | Author |
---|---|---|---|
#7 | webform-warning_theme_hook-2038141-6.patch | 2.58 KB | DanChadwick |
#2 | webform_token_exists-2038141.patch | 475 bytes | quicksketch |
Comments
Comment #1
quicksketchOh geez. This is because module_load_include() will work on disabled modules. We have this code currently:
We can fix this simply by adding a module_exists() call first, which oddly will return FALSE if the module exists but is not enabled.
Comment #2
quicksketchThis should fix it. Committed to 7.x-4.x.
Comment #3
hass CreditAttribution: hass commentedok :-)
Comment #5
tinkerbelle CreditAttribution: tinkerbelle commentedHi, I'm still seeing this error in 7.x-4.1... Token module is not installed or present at all, so I'm sorry if this should actually be a separate issue!
Seems to be caused by the code at lines 4031-4034 in webform.module:
Comment #7
DanChadwick CreditAttribution: DanChadwick commentedRight you are. I guess almost everyone has Token installed or isn't noticing the error. I re-factored the function while the hood was up.
Committed to 7.x-4.x and 8.x.
Comment #8
tinkerbelle CreditAttribution: tinkerbelle commentedAwesome, cheers!
Comment #10
DanChadwick CreditAttribution: DanChadwick commented