Facing an error in creating cases and Inbound group email account

Hii Guys,
I am facing an error in SuiteCRM-7.14.4/vendor\smarty\smarty\libs\sysplugins\smarty_internal_compile_private_modifier.php on line 125. This same error is shown when I am opening Studio in Admin and also while creating any cases and while creating group inbound email account -

Due to this single error I am unable to open Studio, creating cases and saving any edit in inbound email account. Iā€™m a bit stuck on this. Would anyone mind giving me a hand?

Did you make any changes?

Set the correct permissions on the SuiteCRM directory (Linux):

  sudo chown -R www-data:www-data .
  sudo chmod -R 755 .
  sudo chmod -R 775 cache custom modules themes data upload
  sudo chmod 775 config_override.php 2>/dev/null