Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Civix rebuild required #50

Open
webmaster-cses-org-uk opened this issue Oct 18, 2024 · 0 comments
Open

Civix rebuild required #50

webmaster-cses-org-uk opened this issue Oct 18, 2024 · 0 comments

Comments

@webmaster-cses-org-uk
Copy link
Contributor

This extension is not compatible with CiviCRM 5.74+ (I think, upgraded from 5.72.1 to 5.78.3) due to Smarty changes.

Attempting to load CiviCRM with this extension active results in the following error:

Cannot access protected property Smarty\Smarty::$template_dir

This seems to be related to old code in the civix.php file, specifically in the _civix_civicrm_config() routine.

  if (is_array($template->template_dir)) {
    array_unshift($template->template_dir, $extDir);
  }
  else {
    $template->template_dir = [$extDir, $template->template_dir];
  }

Looks like a civix rebuild is required. This code does not feature in later versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant