Skip to content

Better error handling for hooks #466

@benkeen

Description

@benkeen

When investigating #464 I found that if you delete a module folder that has an active hook for the {template_hook location="head_bottom"} template hook, you get a blank screen. It's unlikely to happen unless an upgrade went terribly wrong, or someone manually removed a module folder rather than uninstalled it. It's an easy fix: just add a check to confirm the existence of the folder prior to attempting to call it.

This can be reproduced by installing the File Upload, Data Visualization module then just deleting the folders & logging out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions