0

Every time I update Drupal core I get the error message,

Notice: Undefined variable: forum_term (line 764)

I've implemented this hack on forum.module to get rid of this problem.

How can I implement this change without hacking the core forum.module file?

1 Answer 1

0

You can take 3 different strategies to mitigate the problem the hack introduces.

  1. Don't Hack/Ignore the error: Without knowing the deeper context of when this happens, this could be (as the d.o. thread suggests) just a quirk of other contrib modules that show up during the update process. You'll need to do more investigation to see if this occurs during a critical code (e.g. a module update) and if it can be ignored.
  2. Don't Hack/Fix the error: Assuming the error is fundamentally a part of Drupal's forum module logic (i.e. not just something caused by a contrib module), you could submit a patch for the module to get it fixed for everyone that has the same issue.
  3. Patch Management: Depending on your own codebase, process, & issues, patching might be unavoidable here. If that's the case, you can create your own patch for Drupal core and create some process where it is consistently applied every time you need to you need to update your codebase.
1
  • Thanks, good advice! I'll start by your, "Don't Hack/Ignore the error" and keep watching the Log Messages. Commented Jun 29, 2016 at 20:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.