I've noticed recently on a site that I was receiving this error on a site did not have workbench moderation installed when a node is saved:

Fatal error: Call to undefined function workbench_moderation_node_type_moderated() in /,,,/contrib/linkchecker/linkchecker.module on line 2668

In order to fix this the module_exists check needs to surround the rest of the logic on that line, because if the module doesn't exist it can't find the workbench_moderation_node_type_moderated() method.

Comments

samberry created an issue. See original summary.

samberry’s picture

samberry’s picture

Just spotted a coding standards issue in my patch here.

quadrexdev’s picture

Version: 7.x-1.3 » 7.x-1.x-dev
Status: Active » Closed (outdated)
Issue tags: -, -

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.