Extension cannot be installed on newer versions of CiviCRM 5.77.1 or newer due to Smarty4, Smarty5 incompatibility
Extension cannot be installed on newer versions of CiviCRM 5.77.1 or newer due to Smarty4, Smarty5 incompatibility.
Unable to load template 'file:CRM/Cronplus/Admin/Page/Job.tpl' in 'file:CRM/common/CMSPrint.tpl'
By default, Smarty4, Smarty5 are enabled in civicrm.settings.php as shown below. These lines need to be commented for this extension to work.
/**
* Specify a Smarty autoload file.
*
* Smarty5 is the version of Smarty we are in the process of adopting. To enable it
* un-comment the line describing the path. Note that this will become always enabled in
* the near future - this opt-in setting is transitional.
*/
/*
if (!defined('CIVICRM_SMARTY_AUTOLOAD_PATH') && getenv('CIVICRM_SMARTY_AUTOLOAD_PATH') === FALSE) {
// enable by default for dev & demo sites for now - will soon enable by default for all new installs.
if (CIVICRM_UF === 'UnitTests' || strpos(CIVICRM_UF_BASEURL, 'localhost') !== FALSE || strpos(CIVICRM_UF_BASEURL, 'demo.civicrm.org') !== FALSE
|| strpos(CIVICRM_UF_BASEURL, 'http://build') !== FALSE
) {
if (is_dir($civicrm_root . '/packages')) {
define('CIVICRM_SMARTY_AUTOLOAD_PATH', $civicrm_root . '/packages/smarty5/Smarty.php');
}
elseif (is_dir($civicrm_root . '/../civicrm-packages')) {
define('CIVICRM_SMARTY_AUTOLOAD_PATH', $civicrm_root . '/../civicrm-packages/smarty5/Smarty.php');
}
}
}
*/
/*
// If not set above we should default the Smarty version to Smarty4 which is our stable version.
// This will not work for all composer-based installs @todo.
if (!defined('CIVICRM_SMARTY_AUTOLOAD_PATH') && getenv('CIVICRM_SMARTY_AUTOLOAD_PATH') === FALSE) {
if (is_dir($civicrm_root . '/packages')) {
define('CIVICRM_SMARTY_AUTOLOAD_PATH', $civicrm_root . '/packages/smarty4/vendor/autoload.php');
}
elseif (is_dir($civicrm_root . '/../civicrm-packages')) {
define('CIVICRM_SMARTY_AUTOLOAD_PATH', $civicrm_root . '/../civicrm-packages/smarty4/vendor/autoload.php');
}
}*/