Skip to content

Fatal error when using Smarty 5 on newer civicrm versions #3

@codebymikey

Description

@codebymikey

The following exception is thrown:

Fatal error: Uncaught Error: Cannot access protected property Smarty\Smarty::$template_dir in /app/application/vendor/civicrm/civicrm-packages/smarty5/Smarty.php:37
Stack trace:
#0 /app/application/web/sites/default/files/civicrm/ext/com.aghstrategies.memberid/memberid.civix.php(99): Smarty->__get('template_dir')
#1 /app/application/web/sites/default/files/civicrm/ext/com.aghstrategies.memberid/memberid.php(66): _memberid_civix_civicrm_config(Object(CRM_Core_Config))
#2 /app/application/vendor/civicrm/civicrm-core/CRM/Utils/Hook.php(276): memberid_civicrm_config(Object(CRM_Core_Config), Array)
#3 /app/application/vendor/civicrm/civicrm-core/CRM/Utils/Hook/DrupalBase.php(73): CRM_Utils_Hook->runHooks(Array, 'civicrm_config', 2, Object(CRM_Core_Config), Array, NULL, NULL, NULL, NULL)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions