How to fix Smarty in civicrm 5.63.1

The error originates in the following include from sites/default/files/civicrm/templates_c/en_US/%%1D/1DB/1DB03A28%%CustomField.tpl.php

Message TypeError: Cannot access offset of type string on string in include() (line 31 of .../sites/default/files/civicrm/templates_c/en_US/%%1D/1DB/1DB03A28%%CustomField.tpl.php)

Then: #0... vendor/civicrm/civicrm-packages/Smarty/Smarty.class.php:include() line 1914.

  • Can you include steps to reproduce this?
    – Lars SG
    Jul 22, 2023 at 14:10
  • Yes please give context - what menu item are you clicking on that gives this error?
    – Coleman
    Jul 22, 2023 at 14:29

1 Answer 1


This was fixed but missed making into 5.63.1. See https://github.com/civicrm/civicrm-core/pull/26517#issuecomment-1636255789

You can apply the patch there.

  • Aha! I was thinking that we fixed those in 5.63.1.
    – Lars SG
    Jul 22, 2023 at 15:13

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.